Question: C++ Programming This program will display a menu asking the user if they wish to calculate the Diameter, Circumference, Area of a circle, or -1
C++ Programming
This program will display a menu asking the user if they wish to calculate the Diameter, Circumference, Area of a circle, or -1 to exit the program. After the user chooses their option, the program will ask the user for the radius of the circle as a double data type. The program will then display the result of the calculation. The program should insure that the user does not enter a menu choice other than 1 through 3 or -1. The program should continue to offer the menu until the user enters a -1. Also the program should insure that the user does not enter a number less than 0.0 for the radius.
The menu should display as:
Please enter 1 for Diameter:
Please enter 2 for Circumference:
Please enter 3 for Area: Please enter -1 to quit:
Formulas for Circles:
diameter = radius * 2
circumference = 2 * pi * radius
area = radius * radius * pi
pi = 3.14159
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
