clc //initialisation of variables W= 3000 //tons m= 15 //tons x= 30 //ft s= 1/30 //CALCULATIONS GM= m*x/(W*s) //RESULTS printf (' Manometric height = %.1f ft',GM)