Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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 the length and width (in feet) of: The door Each window The bookshelf And the length, width, and height of the room. The program outputs: The amount of paint needed to paint the walls of the room.and there should be test case 1 with input values of :
55 32 33 77 33 22 15 2 225 240 14
output should be
What is the length of the door in feet? 55 What is the width of the door in feet? 32 What is the length of the window in feet? 33 What is the width of the window in feet? 77 What is the length of the room in feet? 33 What is the width of the room in feet? 22 What is the height of the room in feet? 15 What is the area that can be painted with on gallon of paint? 2 You need -2596 gallons of paint. 225 240 14
Test case 2
With Input values
14 5 10 10.5 15 3.72 15.23 11.243 92.77 103.4 21.5
The output values should be
What is the length of the door in feet? 14 What is the width of the door in feet? 5 What is the length of the window in feet? 10 What is the width of the window in feet? 10.5 What is the length of the room in feet? What is the width of the room in feet? What is the height of the room in feet? What is the area that can be painted with on gallon of paint? You need 0.172398 gallons of paint. 15 3.72 15.23 11.243 92.77 103.4 21.5 as stated by codey in mindtap.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started