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

Create pseudocode and a python program. They must basically implement the follow

ID: 651226 • Letter: C

Question

Create pseudocode and a python program.
They must basically implement the following structure:
The main() gathers the values input by the user. Then it calls a module, passing (sending) those values to that module. The module calculates and displays the paint estimate results.

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:

Explanation / Answer

import calculate


def cost(t,c):
   res = float(t)/115
   res1 = res*8
   print "The number of gallons of paint required : "+str(res)
   print "The hours of labor required : "+str(res1)
   print "The cost of the paint "+str(c*res)
   print "The labor charges "+str(20*res1)
   print "The total cost of the paint job "+str(c*res + 20*res1)

def main():
   print "Enter square feet of wall space to be painted : ",
   t = int(input())
   print "Enter price of the paint per gallon : ",
   c = int(input())
   cost(t,c)

main()

for using module move thd function cost(t,c) in calculate.py in same folder and then run the program after compiling both files

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote