Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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++
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)nStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started