<=Back
Write a C++ program that has:
•One class named shapes
•Two objects named sphere and circle
•A member function that calculates the area of a circle;
•A member function that calculates the function that calculates the volume of a sphere
The program should prompt the user to enter a radius, compute the area of a circle and the volume of the sphere using the radius entered and then output the radius, area and volume
 Viewed: 600 times
Share in: