Click to follow our Afritutor YouTube Channel, subscribe and click notifications and get updates on new learning videos
<=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: 742 times For Better experience and learning,for video answers, after video ends playing, click next question in the questions list!!!
Share in: