//Width of gate(in m): w=5; //Depth of water(in m): D=4; //Density of water(in kg/m^3); d=999; //Accelration deto gravity(in m/sec^2): g=9.81; //Value of a (in m): a=4; //Point where force acts(in m): l=5;