I A painting company 60 square has determined that for metres of wall space every 2,...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
I A painting company 60 square has determined that for metres of wall space every 2, one gallon of point and five hours of labour required. The company Charges. be 32-50 labour. will per we would like to calculate the total cost of a paint job given the Square metres painted and the price of the paint per gallon. Space to be of hour The problem: Python function that will performs calculations. Specifically, you will produce an estimate of the total cast as follows. The problem is to write a these cost Cost estimated = 1.01843 X Cost total 1.01843 X (Costpaint + labour) The cost of the paint is calculated by multiplying the number of gallons number_ -of-gallons by the price the paint per gallon price_per_gallon. Cast paint = number_of_gallons x price _per_gallon. The labour charges are calculated as the total labour required multiplied by 32.50 of = hours x 32.50 - Jor hours labour charges Your inchiridual number is tied to the total cast so that there is some margin of error in the estimates 2 for example, if 360 square metres the wall space to be painted is of the paint per gallon is 14.00, then the number and the price can be calculated as the surface as follows: number_of- gallons Lue C'est paint can calculate. = surface 60 = of gallons divided 360 = 6 60 = number_of_gallons x price - per-gallon X 6 x 14.00 = 84.00 e 1.01843 x Cast = 1070-89 Laot by 60 The total Amber hours of labour are hour = 5x6 Labour charges 9. total If the individual number is 1.01843, then the the job paint Crounded to two decimals) s : Cost of Cost estimated = 30 haus in total. We can calculate 30 x 32.50 = 975.00 hours x 32.50 = I T T total = 1.01843 x (84.00 975.00) 5 7 | 3 1.) Develop the problem using the the an initial decomposition of Chevron notation (> and >>) From module materials Include decomposition in your Solution document. your 17) Build your decomposition for part (i), develop an algorithm for solving the problem. Include this algorithing in your solution document. 11) write a Python junction definition following ii) the instructions below A Write a single. Python Junction that implements the algorithing you wrote for part (11) Your Junction must be a translation of your algorithm from part (ii) The juncton should have two arguments : one for the wall space to be painted surface and another argument for the price of paint per gallon price.per_gallon. The Junction should have one return value. for the estimated cost Cost estimated. which is a double Crounded to two decimals) 10). Test the function by calling it with the arguments 360 and 14.00 in your python program I A painting company 60 square has determined that for metres of wall space every 2, one gallon of point and five hours of labour required. The company Charges. be 32-50 labour. will per we would like to calculate the total cost of a paint job given the Square metres painted and the price of the paint per gallon. Space to be of hour The problem: Python function that will performs calculations. Specifically, you will produce an estimate of the total cast as follows. The problem is to write a these cost Cost estimated = 1.01843 X Cost total 1.01843 X (Costpaint + labour) The cost of the paint is calculated by multiplying the number of gallons number_ -of-gallons by the price the paint per gallon price_per_gallon. Cast paint = number_of_gallons x price _per_gallon. The labour charges are calculated as the total labour required multiplied by 32.50 of = hours x 32.50 - Jor hours labour charges Your inchiridual number is tied to the total cast so that there is some margin of error in the estimates 2 for example, if 360 square metres the wall space to be painted is of the paint per gallon is 14.00, then the number and the price can be calculated as the surface as follows: number_of- gallons Lue C'est paint can calculate. = surface 60 = of gallons divided 360 = 6 60 = number_of_gallons x price - per-gallon X 6 x 14.00 = 84.00 e 1.01843 x Cast = 1070-89 Laot by 60 The total Amber hours of labour are hour = 5x6 Labour charges 9. total If the individual number is 1.01843, then the the job paint Crounded to two decimals) s : Cost of Cost estimated = 30 haus in total. We can calculate 30 x 32.50 = 975.00 hours x 32.50 = I T T total = 1.01843 x (84.00 975.00) 5 7 | 3 1.) Develop the problem using the the an initial decomposition of Chevron notation (> and >>) From module materials Include decomposition in your Solution document. your 17) Build your decomposition for part (i), develop an algorithm for solving the problem. Include this algorithing in your solution document. 11) write a Python junction definition following ii) the instructions below A Write a single. Python Junction that implements the algorithing you wrote for part (11) Your Junction must be a translation of your algorithm from part (ii) The juncton should have two arguments : one for the wall space to be painted surface and another argument for the price of paint per gallon price.per_gallon. The Junction should have one return value. for the estimated cost Cost estimated. which is a double Crounded to two decimals) 10). Test the function by calling it with the arguments 360 and 14.00 in your python program
Expert Answer:
Related Book For
Starting Out With Java From Control Structures Through Data Structures
ISBN: 9780133957051
6th Edition
Authors: Tony Gaddis
Posted Date:
Students also viewed these programming questions
-
"All Boeing airplanes are certified and delivered to the highest levels of safety consistent with industry standards. Airplanes are delivered with baseline configuration, which includes a standard...
-
Artistic Solutions, a painting company, has determined that for every 160 square feet of wall space, one gallon of paint and three hours of labor are required. The company charges $28.00 per hour for...
-
Planning is one of the most important management functions in any business. A front office managers first step in planning should involve determine the departments goals. Planning also includes...
-
Use a calculator to evaluate an ordinary annuity formula \[A=m\left[\frac{\left(1+\frac{r}{n}ight)^{n t}-1}{\frac{r}{n}}ight]\] for \(m, r\), and \(t\) (respectively) given in Problems 7-22. Assume...
-
The stockholders equity section of Jumes Corporations balance sheet consists of common stock ($8 par) $1,000,000 and retained earnings $300,000. A 10% stock dividend (12,500 shares) is declared when...
-
We discovered that 1,013 GSS respondents in 2010 watched television for an average of 3.01 hr/day, with a standard deviation of 2.65 hr. Answer the following questions assuming the distribution of...
-
What is the distinction between the ready and waiting states of process scheduling?
-
Define the following terms, using graphs or equations to illustrate your answers wherever feasible: a. Portfolio; feasible set; efficient portfolio; efficient frontier b. Indifference curve; optimal...
-
Coach Rocknute likes his football players fast, big, and obedient. If player A is better than player B in two of these three characteristics, then Coach Rocknute prefers A to B, but if B is better...
-
The airport branch of a car rental company maintains a fleet of 50 SUVs. The interarrival time between requests for an SUV is 2.4 hours, on average, with a standard deviation of 2.4 hours. There is...
-
You are analyzing the XYZ company. Its current stock price is $20. After reviewing XYZs financial data, you find that last years earnings were $2.5 per share. The Firms ROE is 12%, and you expect it...
-
Sarfaraz has been signed to a three year, Rs10 million contract. The details provide for an immediate cash bonus of Rs.1 million. The player is to receive Rs.2 million in salary at the end of the...
-
What are the ethical considerations surrounding delegation, particularly in scenarios where decision-making authority is transferred to subordinates with varying degrees of experience and expertise?
-
In what ways does effective delegation serve as a catalyst for talent development and succession planning within hierarchical structures, ensuring continuity and resilience in leadership pipelines?
-
What are the key factors that leaders must consider when delegating authority and responsibilities to subordinates in order to foster a culture of empowerment and accountability ?
-
John, who is age 47, makes $300,000 in salary in 2020. If John decides to make the maximum contribution to his SIMPLE IRA, how much is the total contribution amount (including the employer match) ?
-
On December 31, 2014, William Company provided services to a customer. In exchange, they accepted $5,000 in cash plus a note receivable with a face value of $225,000, a due date of December 31, 2016,...
-
Prairie Outfitters, Inc., a retailer, accepts paymnent through credit cards. During August, credit card sales amounted to $12,000. The processor charges a 3% fee. Assuming that the credit card...
-
A hotels occupancy rate is calculated as follows: Occupancy rate = Number of rooms occupied Total number of rooms Write a program that calculates the occupancy rate for each floor of a hotel. The...
-
What is the purpose of testing a program with sample data or input?
-
Convert the following for loop to a while loop: for (int x = 50; x > 0; x--) { System.out.println(x + " seconds to go."); }
-
Can you create a graphic that highlights each incidence where Fairmont was not in compliance with company policy that requires explicit approval of all hours of eighty hours or more?
-
Assume that your data analytics examination related to employee records resulted in the following summary table for employees with annual salaries greater than $75,000: Assume that your data...
-
Why was Adelphia cable company formed?
Study smarter with the SolutionInn App