Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 :

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

New Trends In Databases And Information Systems Adbis 2019 Short Papers Workshops Bbigap Qauca Sembdm Simpda M2p Madeisd And Doctoral Consortium Bled Slovenia September 8 11 2019 Proceedings

Authors: Tatjana Welzer ,Johann Eder ,Vili Podgorelec ,Robert Wrembel ,Mirjana Ivanovic ,Johann Gamper ,Mikolaj Morzy ,Theodoros Tzouramanis ,Jerome Darmont

1st Edition

3030302776, 978-3030302771

More Books

Students also viewed these Databases questions