Write an algorithm to compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second. The formula to compute the volume flow rate per second is given by:
R= d/2
Area= *r squared
Volume= area* v