The Painting Company has determined that for every 112 square feet of wall space:
One gallon of paint at $9.53 per gallon is required if total square feet is 2000 or less. If square footage is greater than 2000, paint is $10.50 per gallon.
8 hours of labor at $35 per hour is required.
A hazardous material disposal fee of 7.5% of the total paint cost is required.
Create a function called paintJobCost which allows the user to provide the total number of square feet for the paint job and produces an itemized list of charges that includes:
Number of gallons of paint required.
Total Cost of the Paint (Paint Cost x Gallons Required)
Hours of labor required to paint (8 hrs per 112 sq ft)
Total Cost of the Labor.
The hazardous material fee.
The total cost of the paint job. (Paint Cost + Labor Cost + Hazardous Material fee)
Your function, when called, must display all the above information exactly as shown below.
Expected Output
Call the paintJobCost function where the total square footage of the paint job is 1800. Square Footage Paint Required Paint Cost 16.07 gal $153.16 Labor Hours 128.57 hrs Labor Cost $4,500.00 Hazard Fee $11.49 TOTAL COST OF PAINT JOB $4,664.65 Call the paintjobCost function where the total square footage of the paint job is 2700. Square Footage Paint Required 2700 24.11 gal Paint Cost $253.12 Labor Hours 192.86 hrs Labor Cost $6,750.00 Hazard Fee $18.98 TOTAL COST OF PAINT JOB $7,022.11 Call the paintJobCost function where the total square footage of the paint job is 3200. Square Footage Paint Required Paint Cost 3200 28.57 gal $300.00 Labor Hours 228.57 hrs Labor Cost $8,000.00 Hazard Fee $22.50 TOTAL COST OF PAINT JOB $8,322.50

Respuesta :

Answer:

Answered below

Explanation:

#Program is written in Python.

sq_feet = int(input ("Enter paint area by square feet: ")

gallons = float(input (" Enter number of gallons: ")

paint_job_cost(sq_ft, gallons)

#Function

def paint_job_cost(sq_ft, gal){

gallon_cost = 0

cost_per_hour = 35

if sq_ft <= 2000:

 gallon_cost = 9.53

else:

gallon_cost = 10.50

paint_cost = gal * gallon_cost

labour_hours = 8 * (sq_ft/112)

total_labour_cost = labour_hours * cost_per_hour

hazard_fee = 0.075 * paint_cost

total_cost = paint_cost + total_labour_cost + hazard fee

print (paint_cost)

print(labour_hours)

print (total_labour_cost)

print (hazard_fee)

print(total_cost)

}