Question: Write C++ program to find the area and the circumference of a circle given the radius. Output the results with one digit after the decimal
Write C++ program to find the area and the circumference of a circle given the radius. Output the results with one digit after the decimal place. For these programs, do not use pointers.
Formulas: area = PI * radius * radius
circumference = 2 * PI * radius
Declare PI = 3.14159 as a constant GLOBAL variable.
Part A:
Write a C++ program including two Call-By-Value functions that prompts the user for a circle radius in meters and outputs the circle area and circumference. Use two functions, one that returns the area and one that returns the circumference. Use the data type double for all variables.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
