Question: Programming language is C++ PA 12-2 (25 points) Write a program that includes three functions, one each to calculate the volume of a rectangular solid

Programming language is C++

Programming language is C++ PA 12-2 (25 points) Write a program that

PA 12-2 (25 points) Write a program that includes three functions, one each to calculate the volume of a rectangular solid assume height 1), a sphere, and a cone. Pass the necessary parameters to the appropriate function then return the volume to the main program and output results. Allow the user to run the program multiple time and decide when to quit. D:ACodeBlocks-EP1CodeBlocks-EP1Marsh2050Vbin\DebuglMarsh2050.exe what shape would you 1like the volume for? (b-block; s-sphere; c-cone) s what is the radius of your sphere? 5.5 The volume of your sphere is 696.909 units Would you like to input another shape? (y or n) y what shape would you like the volume for? (b-block; s-sphere; c-cone)C what is the radius of your cone? 4.3 what is the height of your cone? 10.5 The volume of your cone is 203.308 units Would you like to input another shape? (y or n) y at shape would you like the volume for? (b-block; s-sphere; c-cone) b what is the 1ength of your block? 32.3 what is the width of your block? 54.7 The volume of your block is 1766.81 units. Would you like to input another shape? Cy or n)n

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!