0.230 points, 35 minutes with hemispherical ends each having the same radius, R, of 0.75m. The pressure vessel shown at right is made up of a cylinder with a radius R of 0.75m and a length L.
The volume of water, V, is given by the expression V = hR - h. If the water level does not exceed the level of the lower hemisphere, then V = hR - h. If the water level is somewhere in the straight section in the middle, then the volume is given by the following expression V = (R^2)h - (1/3)(h^3). If the water level is in the upper hemisphere, then the volume is given by the following expression: V = 2(R^3) + RL + Rh - L - R - h - L - R.
Your function should have one input for water level (h) and one output for water volume (V).