Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Guide To Client Server Databases

Authors: Joe Salemi

2nd Edition

1562763105, 978-1562763107

More Books

Students also viewed these Databases questions

Question

13. Evaluate lim (In(x 1) + 1)).

Answered: 1 week ago