//problem 1.15 w=9810 h=2 l=2 b=1 a=l*b p=w*a*h h1=h+(b*l*l*l/(12*b*l*l)) disp(p,"total pressure") disp(h1,"location of its centre of pressure")