Question: C++ Week8 Lab : Area Calculator3.0 Create a program that display a menu and ask the user to make a selection fon You should use

 C++ Week8 Lab : Area Calculator3.0 Create a program that display
a menu and ask the user to make a selection fon You
C++

Week8 Lab : Area Calculator3.0 Create a program that display a menu and ask the user to make a selection fon You should use do-while loop to achieve the result. Note: Bold words are output while non-bold words are input. Console Sample Area Calculator Menu 1. Calculate Cirele Area 2. Calculate Reetangle Area 3. Calculate Trlangle Xrea 4. Puit the Program Enter your choice: 0 Please enter a valid aenu choiee: 5 Please enter a velid menu choice: 1 Enter radius: 3 The eirele area is: 28.27 Area Calculator Menu 1. Calculate Cirele Area 2. Caleulate Rectangle Ares 3. Caleulate Triangle Area 4. Quit the Program Enter your ehoice: 2 Enter width:2 Enter height:? The rectangle area ist 6 Axes Cnleulator Menu 1. Caleulate Cirele Area 2. Caleulate Reetangle Area 3. Caleulate Triangle Aren 4. Quit the Progran Entex youx ehoice: 2 Entex side1:? Enter side2: 4 Enter side 3:5 The rectangle srea is: 6 Enter your ehoice: 4 Byet Specifications - For calculating circle area, 3 's value will be 3.14 - For calculating triangle area, the user is prompted to enter the lengths of the three sides of the triangle. The program then uses Heron's formula to calculate the area of the triangle, and outputs the result. - For Heron's formula, should be like: area =sqrt(s+(sa)(sb)(sc)) where s==(a+b+c)/ - The cmath library is used to compute the square root using the sqrt function. - Assume the input number for calculation are all valid numbers. - The program should tell user only accept the valid input choices. - The program should accept decimal entres like 35.5 and 14.25. - There is no requirement of precision for the output. - The program should continue automatically until user enter 4

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!