clc //Initialization of variables V=3 //fps y=1 //ft L=4 //ft //calculations H= (V*y/3.33)^(2/3) P=L-H //results printf("Height of weir = %.2f ft",P)