Question: Problem 1 : Write a C + + program that acts as a shape calculator. Prompt the user to enter the name of a shape

Problem 1: Write a C++ program that acts as a shape calculator. Prompt the user to enter the name of a shape they want to calculate the area or perimeter for. The options should be: Square, Triangle, Circle. Next ask the user whether they want to calculate the area or perimeter of the chosen shape. Based on the chosen shape and calculation type, prompt the user to enter the required measurements: Square: Side length (integer), Triangle: Base length (integer) and height (integer), Circle: Radius (integer). Calculate the requested value (area or perimeter) based on the chosen shape and user-provided measurements and print the final result on the screen with an appropriate message.
 Problem 1: Write a C++ program that acts as a shape

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!