Question: Write a full C++ program that computes the volume of a sphere of radius, r, (V_sphere = 4/3 pir^3) and the Area of a sphere

 Write a full C++ program that computes the volume of a

Write a full C++ program that computes the volume of a sphere of radius, r, (V_sphere = 4/3 pir^3) and the Area of a sphere (A_sphere = 4 pi r^2/h) where h is some division(a section of) of the area. It starts by asking the user for a value of r and if r > 0 but 100 cm than the program calculates the area of a sphere but it must ask for the h value or the division(or part of the area) wanted of the sphere in that case. It outputs the area of the sphere along with the h value. The program continues (it asks for another value of r then returns) until r=0 which causes it to terminate. If r is out of the range then your program should produce a message to the user stating that fact. Flow chart last program

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!