Question: Write a program in Python that prompts the user for information (radius, side, height, width, etc) about at least three geometry shapes. Possible geometry shapes:

Write a program in Python that prompts the user for information (radius, side, height, width, etc) about at least three geometry shapes.

Possible geometry shapes: circle, ellipse, rectangle, square, equilateral triangle, right triangle, isosceles triangle, triangle, parallelogram, rhombus and trapezoid.

Use the information to:

- calculate the areas of these shapes;

- print the areas;

- print the sum of the areas;

- print the average of the areas;

- print the larger of the areas;

- print the smaller of the areas.

Hint: Python defines max and min functions that accept a sequence of values, each separated with comma.

Show the results on screen.

Remember: the user will only see what is on screen not what is inside the code. So, use clear and explanatory information.

For the coding, use:

- in-program comments

- logic

- accuracy

- efficiency

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!