Question: Write a program that will call a function to calculate the area of a circle, and call another function to calculate the circumference of a

 Write a program that will call a function to calculate the

Write a program that will call a function to calculate the area of a circle, and call another function to calculate the circumference of a circle. The main function should prompt the user for the radius, and print out the area and circumference after they have been calculated by the called function. The program should have a While or Do While Loop that keeps prompting the user for the Radius, till the user enters a Sentinel of-1 DO NOT USE GLOBAL VARIABLES in the program. PI should be declared as a global constant with a value of 3.14. Sample Run1: 7, 100, 50,-1 Sample Run2: 2,4, 6, 8, 10,-1

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!