Question: Write a program that reads the radius of a circle ( as an integer value ) and computes and prints the diameter ( as an

Write a program that reads the radius of a circle (as an integer value) and computes and prints
the diameter (as an integer), the circumference and the area as double (2 decimal places). Use the value 3.14159 for (as const double PI=3.14159). The output should look like the one below.
For the following problem, perform each of these steps:
a) Read the problem statement.
b) Formulate the algorithm using pseudocode and top-down, stepwise refinement.
c) Write a C++ program.
d) Test, debug and execute the C++ program.

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 Programming Questions!