Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Attempt writing the following program. Use multiline comments to write the pseud

ID: 3558889 • Letter: A

Question

Attempt writing the following program. Use multiline comments to write the pseudocode solution for the problem solution then use Python to complete this program.

A Paint job Estimator Program

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 of labor. Design a modular program that asks the user to enter the square feet of wall space to be painted and the price 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

The total cost of the paint job

Consider using the following modules

getSquareFeet

getPricePerGallon

calcGallons

calcHours

calcPaintCost

calcLabourCharge

calcTotal

You should define the functions to have parameters and should return the appropriate values.

Explanation / Answer

"""
using following modules
1.getSquarefeet() gets the area of the wall
2.getPricePerGallon() gets the price per gallon of paint
3.calcGallons() calculate the gallon of paints required to paint the wall
4.calcHours() calculate the Hours of labour required
5.calcPaintCost() calculate cost of the painting
6.calcLabourCharge() calculate labour charge
7.calcTotal() calculate the final result and print
"""
unit_area = 115
gallon_per_area = 1
hours_per_area = 1
labour_charge = 20
def getSquarefeet():
temp = input(" Enter the squarefeet of the wall ")
return int(temp)
  
def getPricePerGallon():
temp = input(" Enter the price per gallon of paint")
return int(temp)

def calcGallons(area):
gallon = area / unit_area* gallon_per_area# 1 gallon is required to paint 115
print(str(gallon) + " Gallons of paint is required")
return gallon
  
def calcHours(area):
hours = area / unit_area * hours_per_area
print(str(hours) + "Hours are required")
return hours
  
def calcPaintCost(area):
paint_cost = calcGallons(area) * getPricePerGallon()
print("paint cost is " + str(paint_cost) + " $")
return paint_cost
  
def calcLabourCharge(area):
lab_charge = calcHours(area) * labour_charge
print("labour charge is " + str(lab_charge) + " $")
return lab_charge
  
def calcTotal(area):
total = calcLabourCharge(area) + calcPaintCost(area)
print("Total cost is " + str(total) + " $")
  
area = getSquarefeet()
calcTotal(area)