IDNLearn.com offers expert insights and community wisdom to answer your queries. Our platform is designed to provide reliable and thorough answers to all your questions, no matter the topic.
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.
Thank you for being part of this discussion. Keep exploring, asking questions, and sharing your insights with the community. Together, we can find the best solutions. IDNLearn.com has the solutions you’re looking for. Thanks for visiting, and see you next time for more reliable information.