A painting company has determined that for every 112 SQ Ft of wall space, one gallon of paint, and eight hours of labor will be required. The company charges $52.00 per hour for labor. Write a program that asks the user to enter the square feet of wall space to be painted and the price of the paint per gallon. The program should display the following data: Number of Gallons of Paint Required The hours of lab required The cost of paint The labour charges The Total Cost of the Job You should create and utilize separate functions to calculate each of the five values above, in addition to a function that is responsible for displaying the final output to the user.

Respuesta :

Answer:wall = int(input("Enter the length of the wall in square feet: "))

paint_price = float(input("Enter the price of an paint bucket: "))

def gallons(sqft):

   return round(sqft/112, 2)

def labour():

   return gallons(wall) * 8

def paint_cost():

   return paint_price * gallons(wall)

def labour_charge():

   return labour() * 52.00

def total():

   return paint_cost() + labour_charge()

print(f"Number of Gallons of Paint Required: {gallons(wall)}")

print(f"The hours of lab required: {labour()}hours")

print(f"The cost of paint: ${paint_cost()}")

print(f"The labour charges: ${labour_charge()}")

print(f"The Total Cost of the Job: ${round(total(), 2)}")

Explanation:

The python program prompts the user for input of the length of a wall in square feet and the price of a gallon of paint. Five functions, gallons(), labour(), paint_cost(), labour_charge() and total() are used to calculate the total cost of the job based on the number of paint and the labour charges.

ACCESS MORE