Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Generate a Python program that will determine and display how many gallons of paint is needed to paint the walls of a room when you

Generate a Python program that will determine and display how many gallons of paint is needed to paint the walls of a room when you know the length, height, and number of walls. For this program, a gallon of paint will cover 375 square feet. You can assume that all walls use the same length and height.
Use variables for the length, height and the number of walls. Have the user enter these 3 values. The total square footage is calculated by multiplying the length, height and the number of walls. Gallons of paint needed is calculated by taking the total square footage and divide this number by the 375.
Your program should display the height, length, number of the walls, and the total gallons of paint needed. Be sure to be descriptive in your communication to the User.
3. Grading Criteria (Point Value):
Documentation Requirements
(1) Your last name is contained in the program file name
(2) Include the 3 Opening Comments, program comments
(2) Create a flowchart that documents your program
(*) Coding Techniques not covered in class are documented
Program Requirements
(4) Properly generate the instructions to receive input and display output
(1) Create the needed variables
(4) Utilizes the arithmetic formulas that include the variables to correctly calculate amount of paint needed
Display Requirements (must successfully run to earn these points)
(4) Your program successfully runs with no errors
(2) Displays the correct result, and the result is clearly labeled with spacing and understandable to the user (Mom test)

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

Graph Databases New Opportunities For Connected Data

Authors: Ian Robinson, Jim Webber, Emil Eifrem

2nd Edition

1491930896, 978-1491930892

More Books

Students also viewed these Databases questions