blob: 1e594e12d4141bdfc8f83d94a98c71ea733b6f52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
clc
//initialisation of variables
sp= 0.87
d= 12 //ft
W= 62.4 //lb/ft^3
Wa= 30 //lb/in^2
//CALCULATIONS
A= %pi*d^2/4
w= W*sp
x= Wa*144/(w)
P= w*A*x
h= x+(A*d^2/16/(A*x))
//RESULTS
printf ('force exerted by the oil upon the gate = %.f lb ',P)
printf ('\n position of centre of pressure = %.3f ft ',h)
|