blob: 1aebcbbe63d26ea50955f7d0bb037fb3eee1f9eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
clc
//initialisation of variables
clear
d= 6//ft
x= 4 //ft
w= 62.4 //lbf/in^2
//CALCULATIONS
Ig= %pi*d^4/64
A= %pi*d^2/4
Io= Ig+A*x^2
h= Io/(A*x)
P= w*A*x
//RESULTS
printf ('Depth of centre of pressure = %.2f ft',h)
printf (' \n Total pressure on plate = %.f Lb',P-7)
|