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