Question: Problem A: All shapes and sizes (well... just two) (20 points) Make a program that asks the user whether they want to compute the volume

Problem A: All shapes and sizes (well... just two) (20 points) Make a program that asks the user whether they want to compute the volume for a sphere or cone by indicating s or c, respectively. This input should be case insensitive, so if they enter a capital S or C it should still go to sphere or cone, respectively. Then ask for the needed measurements and use the following formulas to compute the volume:Sphere:Cone:

Example 1 (user input is underlined): Do you want info for a sphere or cone (s/c)? S

What is the radius? 2.5

Volume is:65.4498

IN C++ CODE PLEASE

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!