Question: Write a C++ program that will calculate and print the volume of a sphere and the volume of right circular cone For the volume of
Write a C++ program that will calculate and print the volume of a sphere and the volume of right circular cone For the volume of the sphere, use the following formula V-4/3. PI You will ask the user to enter a value for r where Pi = 3.1415, r is the radius and the dot is multiplication For the volume of the right circular code, use the following formula V=h/3 . Pl . r You will ask the user to enter values for h and r where Pl 3.1415, h is the height, r is the radius and dot is multiplication Declare PI as a constant. Make sure to prompt the user for input and to label your output Once finished copy your code and PrtScr of output to a word document and then upload here
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
