Question: Write a program, circle.cpp, that inputs double radius of circle. It should print for given this radius, the circumference of the circle, the area of

 Write a program, circle.cpp, that inputs double radius of circle. It

Write a program, circle.cpp, that inputs double radius of circle. It should print for given this radius, the circumference of the circle, the area of the circle, the surface area of a sphere with that radius and the area of a sphere with that radius. Here are the formulas for computation: circumference 2 . ? . r Circle Area . r2 Sphere Surface Area 4 . ? . Sphere Volume4/3.t - r* Define a constant for t before main in your program const double pi 3.14159265358; You are required to write functions that do the following compute and return the circumference of a circle given the radius (parameter) compute and return the area of a circle given the radius (parameter) compute and return the sphere surface area given the radius (parameter) compute and return the sphere area given the radius (parameter) print the results given the values of the circumference, area, surface, and volume (four parameters, no return value) A sample run might be (user input in bold) Enter a radius: 7.5 Circumference Sphere Surface ...706.858 47.124 Sphere Volume 1767.146 The output should follow the format shown above (values printed with 3 digits after the decimal, in a field width of 10 characters)

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!