Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 Technology And Management Computers And Information Processing Systems For Business

Authors: Robert C. Goldstein

1st Edition

0471887374, 978-0471887379

More Books

Students also viewed these Databases questions