Question: Write a program that will ask the user for the radius of a circle. The calculator will then compute the area, circumference, and diameter of
Write a program that will ask the user for the radius of a circle. The calculator will then compute the area, circumference, and diameter of the circle. Once computed, the program should then display these values on the screen formatted in fixed-point notation to 2 decimal places of precision.
A Full-Credit Sample Run:
Enter the radius of a circle: 2.1 Area: 13.85 Diameter: 4.20 Circumference: 13.19
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
