Lexi A.

asked • 07/20/22

Write a Program in C++ that calculates the amount of paint needed to paint the walls of a room?

A room has one door, two windows, and a built-in bookshelf and it needs to be painted. Suppose that one gallon of paint can paint 120 square feet.

Write a program that prompts the user to input (in feet):

  1. The length and width of the door
  2. The length and width of each window
  3. The length and width of the bookshelf
  4. The length, width, and height of the room
  5. The area that can be painted with one gallon of paint

The program outputs:

  1. The amount of paint needed to paint the walls of the room.


1 Expert Answer

By:

Donald W. answered • 07/21/22

Tutor
5.0 (214)

Senior Software Engineer with over 25 years of industry experience

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.