Question: please do it in pdf file 1. Write the algorithm and the C++ code that calculates and prints the cylindrical volume of the water in


1. Write the algorithm and the C++ code that calculates and prints the cylindrical volume of the water in the tank, shown in Figure 1. The height of the water level can be given by the user and the radius of the tank is known, =2 meters. Notice: the volume of the cylinder shape is: V=r2h The value of is =3.14159. Figure 1: Cylindrical Water Tank 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) 3- Find the errors in the following C++code: \#include using namespace std; main() \{ string name = "Omer"; int ID=123 cout "Student information," end; cout " The Student name is : "; cout name endl; cout " Student ID is: "; cout ID
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
