Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am usung python in Windows paintTheRoom (length, width, height) Write the function paintTheRoom (length, width, height) that takes three floats for length, width, and

I am usung python in Windows
image text in transcribed
paintTheRoom (length, width, height) Write the function paintTheRoom (length, width, height) that takes three floats for length, width, and height of the 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. The function returns the whole number of gallons of paint needed. Assume one gallon of paint will cover 400 square feet. You need to round up the required gallon number. Sample Code Run Assume a room of length 10 feet, width 12 feet and height 8 feet. The area of the walls would be: 10 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: 10 ft x 12 ft = 120 sq.ft. The total area would then be: 2 x 80 sq ft. + 2 x 96 sq. ft. + 120 sq. ft = 472 sq. ft. 472 sq. ft / 400 sq. ft per gallon = 1.18 gallons thus 2

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

Essentials of Database Management

Authors: Jeffrey A. Hoffer, Heikki Topi, Ramesh Venkataraman

1st edition

ISBN: 133405680, 9780133547702 , 978-0133405682

More Books

Students also viewed these Databases questions

Question

What are the key business issues facing Jan?

Answered: 1 week ago

Question

Why do HCMSs exist? Do they change over time?

Answered: 1 week ago