Question: Write a program that asks for a value for the radius of a circle. The program should then compute the circumference and area You should

 Write a program that asks for a value for the radius

Write a program that asks for a value for the radius of a circle. The program should then compute the circumference and area You should have a user loop There should be a void Banner() function that welcomes the user There should be a void function called GetValue(). There should be a value-returning function that calculates the circumference called ComputeCircumference(). There should be a void function that calculates the area called ComputeArea(). There should be a value-returning function call GoAgain() whose return type is bool. There should be a void function called OutputData() that outputs the radius, the circumference, and the area of the circle in a beautiful format. The user loop should look like do {GetValue(radius); circumference = ComputeCircumference(radius); ComputeArea(radius, area); OutputData(radius, circumference, area);} while (GoAgain()); The function GoAgain() should ask the user if they want to execute the loop again. If yes, then GoAgain() should return true; else it should return false. Note that ComputeCircumference() is a value-returning function and ComputeArea is a Void function. In this case, the argument area should be passed by reference

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!