Tamanna S.

asked • 01/20/23

gallons of paint

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

  1. Display the number of gallons of paint needed and total area.
  2. Ask the user for the width of the room.
  3. Divide the area by 400.
  4. Calculate the area (length X width).
  5. Display the number of gallons.
  6. Display the total area.
  7. Ask the user for the length of the room.

Construct your solution here

  1. Ask the user for the length and width of the room.
  2. Calculate the number of gallons of paint needed.


1 Expert Answer

By:

Sarah L. answered • 07/25/23

Tutor
5 (4)

BFA in Drawing, Painting, and Printmaking

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.