Question
PLEASE SOLVE USING A C++ SOFTWARE USING C++ The program should ask the user which shape is he/she interested in, and print a menu of
PLEASE SOLVE USING A C++ SOFTWARE
USING C++
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 :
CAUsers\ah100\OneDrive\Documents\devc++ Projects\cpp.proj_output.exe Please choose the number of the shape you are interested in: 1. Square Circle Tringle Cube Sphere amid 2. 3. 4. 5. 6. 7. Cone 8. Trapezoid Pentagon Cuboid /rectangular prism 9. 10. greate, so you would 1ike to know more about the square. please insert the length of one side: 2. the area of this square is: 5.29 the circunference of this square is: 9.2 lease choose the number of the shape you are interested in: |1. 2. Square Circle repeat Tringle Cube Sphere yamid Cone 3. 4. 5. Trapezoid Pentagon Cubodd /rectangular prism 9. 10
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