Question: can i get the MATLAB Program using Functional Files 1. The tank in a water tower has the geometry shown in Figure 1.1 (the lower
1. The tank in a water tower has the geometry shown in Figure 1.1 (the lower part is a cylinder and the upper part is an inverted frustum cone). Inside the tank there is a float that indicates the level of the water. If the water level is quite low, in the cylinder part, the volume is simply the cylinder volume of water. If the water level is midrange in the cone part, the total volume of water includes the filled cylinder part and the partially filled cone part. Write a MATLAB Program using Functional Files of decisional structures to determine the volume of the water in the tank from the position (height h) of the float. Design the algorithm so that it returns (the program output) the volume for all cases where the water depth is less than the tank height. Return an error message if h> tank height and if h is negative. 46 m Volume of water in the cylinder: rh V = 112.52h 16 m h Volume of water in the cone: 19 m V = n(h 19)(12.52 +12.5rn + rik) 5+ 1905 (h 19) 25 m where Th = 12.5+ Figure
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
