Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is another project you can submit. So it is either the old one or this one. This project is about shapes and their calculations.

This is another project you can submit. So it is either the old one or this one. This project is about shapes and their calculations. The program should ask the user which shape is he/she interested in, and print a menu of 10 different shapes (2d and 3d). Example: Square Circle Tringle Cube Sphere Pyramid Cone Trapezoid Pentagon Cuboid /rectangular prism

The user chooses one option.

You need to have 10 different functions defined. One function for each shape. In each function, you ask the user about the required info (relevant to this shape) then you calculate and print the following: If 2D shape : Area Circumference If 3D shape: Volume Surface area Put the whole thing in a loop, so if the user would like to select different shape they can without shutting the application down.

Here is a sample output : image text in transcribed

Clusers ah100 OneDrive Documents\devc++ Projects\cpp proj_output.exe Please choose the number of the shape you are interested in: Square Circle Tringle Cube Sphere Pyramid Cone Trapezoid Pentagon 10. Cuboid /rectangular prism 7. greate, so you would like to know more about the square. please insert the length of one side: The area of this square is: 5.29 the circumference of this square is: 9.2 Flease choose the number of the shape you are interested in: Square Circle Tringle Cube Sphere Pyramid Cone Trapezoid Pentagon Cuboid /rectangular prism > repeat

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

More Books

Students also viewed these Databases questions