In: Computer Science
A painting company has determined that for every 115 square feet of wall space, one gallon of paint and eight hours of labor will be required. The company charges $20.00 per hour for labor. Design a modular 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:
The number of gallons of paint required
The hours of labor required
The cost of the paint
The labor charges T
he total cost of the paint job
Using Python
main.py
wallSize = int(input("Enter the size of the wall space to be painted(in sq ft): "))
price = int(input("Enter the price of the paint(per gallon): $"))
numOfGallons = wallSize / 115
numOfHours = numOfGallons * 8
costOfPaint = price * numOfGallons
laborCharge = numOfHours * 20
totalCost = costOfPaint + laborCharge
print("Number of Gallons of paint: ",numOfGallons)
print("Hours of labor required: ",numOfHours)
print("Cost of the paint: $",costOfPaint)
print("Labor charges: $",laborCharge)
print("Total cost of paint job: $",totalCost)
Indentation:
Output: