Question: Python program to compute the areas of three different shapes. Prompt for the necessary information, then compute and display the area, as follows: Make sure

Python program to compute the areas of three different shapes. Prompt for the necessary information, then compute and display the area, as follows:

Make sure that your program can appropriately handle decimal values as well as whole numbers.

SquareThe area is the length of a side squared.

RectangleThe area is the length multiplied by the width.

CircleThe area is Pi (you can use 3.14) multiplied by the radius squared.

What is the length of a side of the square? 5

The area of the square is: 25.0

What is the length of the rectangle? 6

What is the width of the rectangle? 7

The area of the rectangle is: 42.0

What is the radius of the circle? 5

The area of the circle is: 78.5

What is the length of a side of the square? 3.5

The area of the square is: 12.25

What is the length of the rectangle? 6

What is the width of the rectangle? 7.5

The area of the rectangle is: 45.0

What is the radius of the circle? 8.2

The area of the circle is: 211.1336

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!