Question: Write a C++ program to calculate the area and circumference of the circle. The structure of the program is as follow: a) Declare two variables
Write a C++ program to calculate the area and circumference of the circle. The structure of the program is as follow: a) Declare two variables namely radius, and pi. b) Initialize the variables by asking the user. c) Call the two functions areaCircle() and circumferenceCircle() from the main function. d) Write a function to calculate the area of the rectangle called areaCircle) e) Write a function to calculate the area of the rectangle called circumferenceCircle 1) Write prototypes for all the possible functions in the code. g) Display the result for each operation in the function itself Note: steps a, b, and c write them in the main function. In addition, plequals to 3.14. Area of Circle- pi x radius? Circumference of Circle= 2 x pi x radius
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
