Question: When prompting the user you must always include text which lets the user know what should be inputted. Output each floating-point value with two digits
When prompting the user you must always include text which lets the user know what should be inputted.
Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print('{:.2f}'.format(your_value))
Write a program that prompts the user to input a wall's height and width as floats. Based on the wall's height and width calculate and display the following output:
- The wall's area with two digits after the decimal point.
- The amount of paint in gallons needed to paint the wall with two digits after the decimal point. Assume a gallon of paint covers 325 square feet.
- The number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon.
Example program run:
Enter wall height (feet): 12.2 Enter wall width (feet): 14.6 Wall area: 178.12 square feet Paint needed: 0.55 gallons Cans needed: 1 can(s)
Chpt 3 Programming Assignmen x + learn.maricopa.edu/courses/1171847/assignments/10318809 BP Modules Syllabus Online Tutoring Thunderbird Tech Support When prompting the user you must always include text which lets the user know what should be inputted. Output each floating-point value with two digits after the decimal point, which can be achieved as follows: print("{:.2f}'.format(your_value)) Write a program that prompts the user to input a wall's height and width as floats. Based on the wall's height and width calculate and display the following output: - The wall's area with two digits after the decimal point. - The amount of paint in gallons needed to paint the wall with two digits after the decimal point. Assume a gallon of paint covers 325 square feet. - The number of 1 gallon cans needed to paint the wall. Hint: Use a math function to round up to the nearest gallon. 0 0 0 Example program run: Enter wall height (feet): 12.2 Enter wall width (feet): 14.6 wall area: 178.12 square feet Paint needed: 0.55 gallons Cans needed: 1 canis) Save the program as paint_estimator.py and attach the paint_estimator.py file. Add the following comments to top of your .py file: # Your name # Chpt 3 All programs must include comments in your code. Not including comments in your code or random comments that do not pertain to your code will result in points being deducted. Previous > Type here to search O BI 4:01 PM 1/27/2021
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts

