You need to write a program that will calculate how much paint is needed to paint a room. One gallon of paint covers approximately 400 square feet of a room. The program needs to ask the user for the length and width of the room and then show the user the area of the room and the number of gallons of paint.
Drag from here
- Display the number of gallons of paint needed and total area.
- Ask the user for the width of the room.
- Divide the area by 400.
- Calculate the area (length X width).
- Display the number of gallons.
- Display the total area.
- Ask the user for the length of the room.
Construct your solution here
- Ask the user for the length and width of the room.
- Calculate the number of gallons of paint needed.