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

a painter wants to know the amount of paint needed to paint only the walls and t

ID: 3873139 • Letter: A

Question

a painter wants to know the amount of paint needed to paint only the walls and the interior side of the door in a room. The chosen paint covers 100 square feet per gallon. There are two windows. The room is 12 feet long, 10 feet wide, and 8 feet tall. The two windows are 5 by 3 feet, and 6 by 2 feet. here is the algorithm, (1) Start (2) Calculate the total surface area of the inside walls of the room (3) Total surface area= 2(lb+bh+bl) where “l” is the Length, “b” is the Breadth, “h” is the Height. (4) Subtract from the Total surface area, the area of the window. (5) Divide the new Total surface area with the amount of paint per unit area. (6) Amount=Toatal surface area (TSA)/100. (7) Print the amount on screen. Trying to write the python code for the solution?

Explanation / Answer

#The program is as per the algorithm given in the question

total_area = 2*(12*10 + 8*10 + 12*10)
window_area = 5*3 + 6 *2
total_area = total_area - window_area
paint_required = total_area/100
print(paint_required)

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