Question
Using python IDLE: When prompting the user you must always include text which lets the user know what should be inputted. The surface area and
Using python IDLE:
When prompting the user you must always include text which lets the user know what should be inputted.
The surface area and volume of a rectangular solid are calculated using the following formulas
Write a program that prompts the user to enter values for the length (float), width (float) and height (float) for the rectangular solid.
The program should calculate and display the surface area and volume of the rectangular solid.
The surface area and volume should be formatted as fixed-point numbers with 3 decimal places.
Here is a sample run of the program:
Save the program in a file named rectangle.py and attach the rectangle.py file
Add the following comments to top of your .py file:
# Your name # PA_3
VOLUME AND SURFACE AREA OF A RECTANGULAR SOLID For a rectangular solid with length L, width W, and height H : Volume: V = LWH Surface Area: S = 2LH + 2LW + 2WH w Enter the length of the rectangular solid: 6.77 Enter the width of the rectangular solid: 8.1 Enter the height of the rectangular solid: 9.333 The surface area of the rectangular solid is 387.237 The volume of the rectangular solid is 511.794 VOLUME AND SURFACE AREA OF A RECTANGULAR SOLID For a rectangular solid with length L, width W, and height H : Volume: V = LWH Surface Area: S = 2LH + 2LW + 2WH w Enter the length of the rectangular solid: 6.77 Enter the width of the rectangular solid: 8.1 Enter the height of the rectangular solid: 9.333 The surface area of the rectangular solid is 387.237 The volume of the rectangular solid is 511.794Step 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