Question: 2. Write the algorithm and write the C++ code that calculates and prints the volume of the water in a cone shape tank, as shown
2. Write the algorithm and write the C++ code that calculates and prints the volume of the water in a cone shape tank, as shown in Figure 2. The radius of the cone base is known =4 meters. The height of the water level can be given by the user and the radius of the top water level is given by the user. Notice: the volume of the water in the tank can be calculated by the following equation: V=3h(r12+r1r2+r22) The value of is =3.14159 Figure 2: Cone Shape Water Tank
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
