Question: IN C++ You are to write a program which will get the following variables from the user. Length, Width, Height, Radius, Base. You should also

IN C++

You are to write a program which will get the following variables from the user.

Length, Width, Height, Radius, Base.

You should also have variables for Pi as 3.14 and choice1 and choice2.

Your program will first ask the following:

Press 1 to calculate Area

Press 2 to calculate Perimeter

The choice will be saved in choice1.

You should then ask another choice:

Press 1 for Rectangle

Press 2 for Triangle

Press 3 for Circle

You have all the data required to calculate these except the Perimeter of the triangle. Only in this case will you ask the user to input lengths of side1, side2 and side3.

**You can do the shapes first and then the area/perimeter if you prefer**

Display the data neatly to the user.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!