Question: must be in cpp. thank you. A room has one door, two windows, and a built-in bookshelf and it needs to be painted. Suppose that

must be in cpp. thank you.

must be in cpp. thank you. A room has one door, two

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 200 square feet. Write a program that prompts the user to input the lengths and widths of the door, each window, the bookshelf; and the length, width, and height of the room (in feet). The program outputs the amount of paint needed to paint the walls of the room (in gallons). Documentation (up to -2 and noted why). Should have a block at the top with their name, date, help given/received, etc. Should also have inline documentation explaining code (this is what is meant by documentation for each successive project. hould have a constant fir SF-PER-GALLON for the # of square feet a gallon of paint covers (200). Doesn't have to be that exact name (-2 if not present) Not having the constant in all caps (-1) .Should have variables of type double for each of the inputs (-2 if not present) Must prompt clearly for all inputs (2 windows, door, room size, and bookshelf size (-2 if prompts not clear) .Up to 5 points ll be deducted for messy, odd, inefficient coding practices. If so, it will be noted why .Incorect Output (-7 if totally off, -3 if close (if you say 2 gallons for example) and note why... most likely formulas used to calculate area or rounding of ints instead of doubles for sizes. Formatting not required on decimal places yet If output contains a decimal value (such as 2.51667 gallons) (2). Cannot have partial gallons. Missing gallons as the unit on output (1) TEST: Room: Height: 8, Width: 10, Length: 12. Door Length(height) 7, Width: 3. First Window: Length: 3, width: 2. Second Window: Length: 4, width 2. Bookshelf: length: 6, width: 2.5 Output: 2 gallons (not 1.51 gallons)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!