clc //initialisation of variables d=120//ft w=16//ft d1=120/0.8//ft p=60*0.8//ft h=2//ft v=18.74*0.8//ft s=95.23//ft s1=0.8//ft //CALCULATIONS W=d-h*p//ft S=s*s1//ft //RESULTS printf('in succession from the intersection of the upstream slop=% f ft',S)