Question: Write a program in C that prompts the user for information (radius, side, height, width, ...) about at least three geometry shapes. Possible geometry shapes:
Write a program in C that prompts the user for information (radius, side, height, width, ...) 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;
- calculate the sum of the areas;
- calculate the average of the areas;
- calculate the perimeters of these shapes;
- calculate the sum of the perimeters; and
- calculate the average of the perimeters.
Show the results on screen, using formatted output.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
