Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

1:18 LTE Objective Write a simple program to demonstrate input, computation, and output using several variables. The main purpose of this homework is to review

image text in transcribed
1:18 LTE Objective Write a simple program to demonstrate input, computation, and output using several variables. The main purpose of this homework is to review the understanding of loops Problemm Using python, write a program to input the length, width, and height of a rectangular room, all in feet. Using this information and the nominal coverage for a given paint, compute the amount of paint needed to cover the four walls and ceiling, assuming no doors or windows. Output the whole number of gallons of paint needed. Also, compute and output the number of 4x4 floor tiles need to cover the floor of the room. Assume one gallon of paint will cover 400 square feet, and that the tiles cover 4x4" neglecting any gaps. Requirements Submit to Blackboard a single python file named meaningful variable names and constants as needed Example Assume a room of length 10 feet, width 12 feet and height 8 feet. The area of the walls would be: IO ft x 8 ft = 80 sq. ft. (2 walls this size) 12 ft x 8 ft 96 sq. ft. (2 walls this size) The area of the ceiling would be 10ftx12ft-120 sq. ft. The total area would then be: 2 x 80 sq ft.+2 x96 sqft120 sq ft- 472 sq. ft. 472 sq. ft / 400 sq. ft per gallon 1.18 gallons thus 2 gallons Given the size of the tiles, it is necessary to use nine (9) tiles to cover one square foot of the floor. The area of the floor would be: 0 ft x 12ft=120 sq. ft. This would require: 9 tiles per q. f 120 sq. ft. 1080 tiles. Sample Output Enter the length of the room in feet: 10 Enter the width of the room in feet: 12 Enter the height of the room in feet: 8 The total paint needed to cover the walls and ceiling is 2 gallons. The total number of tiles to cover the floor is 1080. Bonus: (10%) As an optional bonus, allow the user to input the dimensions of the room in feet and inches

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

Concepts of Database Management

Authors: Philip J. Pratt, Joseph J. Adamski

7th edition

978-1111825911, 1111825912, 978-1133684374, 1133684378, 978-111182591

More Books

Students also viewed these Databases questions

Question

LO3 Outline strategic compensation decisions.

Answered: 1 week ago