Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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:

image text in transcribed

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.794

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

Database Systems A Practical Approach To Design Implementation And Management

Authors: THOMAS CONNOLLY

6th Edition

9353438918, 978-9353438913

More Books

Students also viewed these Databases questions

Question

How wide are Salary Structure Ranges?

Answered: 1 week ago