clc //initialisation of variables g=20//ft k=10^-1//cm/sec g1=3.28*10^-3//fps w=2//ft w1=30//ft //CALCULATIONS Q=(1/2)*(g1)*[(g^2)-(2^2)]/(w1)//cfs //RESULTS printf('the flow into a foot of gallery=% f cfs',Q)