Question: ***C# programming*** Write a program called CircleComputation , which prompts user for a radius as a decimal and compute the area and circumference of the

***C# programming***

Write a program called CircleComputation, which prompts user for a radius as a decimal and compute the area and circumference of the circle rounded to 2 decimal places. Allow the user to continue inputting circle radius values to produce new outputs. The output shall look like:

Circle computations

Enter the unit for measurements: meter

Enter the radius of the circle (in meters): 1.2

For a circle of radius 1.2 meters,

The area is: 4.52 square meters

The circumference is: 7.53 meters

Hints: is kept in a constant called Math.PI. The user input will be a string so use Convert.ToDouble(...) or Double.Parse(...)

Grading Criteria: Exe file (compiled version) submitted. 2 Source files submitted. 2 Program compiles as submitted. 2 Program has no logic errors. 3 Program uses Math.PI for the value of . 3 Program requests unit of measurement and reports results using that unit. 3 Program requests radius of circle for computation and echoes that value. 3 Program correctly interprets input value as a double or rejects invalid input. 3 Program correctly calculates and reports area of the circle. 3 Program correctly calculates and reports circumference of the circle. 3 Program loops to allow user to enter a new radius. 3

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!