Get the answers you need at Westonci.ca, where our expert community is dedicated to providing you with accurate information. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
Sagot :
Answer:
Follows are the code to the given question:
Wallsize = int(input("Enter the size of wall space for painting(in sq ft): "))#defining variable Wallsize for input value
rate = int(input("Enter the price of the paint(per gallon): $"))#defining variable rate for input value
per_Gallon = Wallsize/115#defining a variable per_Gallon that calculate its value
print("Number of Gallons of paint: ",per_Gallon)#print value with message
total_Hours = per_Gallon * 8#defining a variable total_Hours that calculate its value
print("Hours of labor required: ",total_Hours)#print value with message
paint_Cost = rate * per_Gallon#defining a variable paint_Cost that calculate its value
print("Cost of the paint: $",paint_Cost)#print value with message
labor_Charge = total_Hours * 20#defining a variable labor_Charge that calculate its value
print("Labor charges: $",labor_Charge)#print value with message
total_Cost = paint_Cost + labor_Charge#defining a variable total_Cost that calculate its value
print("Total cost of paint job: $",total_Cost)#print value with message
Output:
Enter the size of wall space for painting(in sq ft): 800
Enter the price of the paint(per gallon): $33
Number of Gallons of paint: 6.956521739130435
Hours of labor required: 55.65217391304348
Cost of the paint: $ 229.56521739130434
Labor charges: $ 1113.0434782608695
Total cost of paint job: $ 1342.6086956521738
Explanation:
Please find the complete question in the attached file.
In this code, the "Wallsize and rate" two variable is defined that is used for input the value from the user-end, after input the value multiple variables"
per_Gallon, total_Hours,paint_Cost, labor_Charge, and total_Cost" is declared, in which it calculates its respective value and prints the value with the message value.
We appreciate your time on our site. Don't hesitate to return whenever you have more questions or need further clarification. Thanks for using our service. We're always here to provide accurate and up-to-date answers to all your queries. Find reliable answers at Westonci.ca. Visit us again for the latest updates and expert advice.