blob: 827b851c48894a00e6402f782046b9d8a8862383 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
//initialisation of variables
w= 62.4 //lb/ft^3
za= 150 //ft
zd= 80 //ft
g= 32.2 //ft/sec^2
w= 62.4 //lb/ft^3
v1= 5.25 //ft/sec
//CALCULATIONS
p= (w/144)*(za-zd-145*v1^2/(2*g))
//RESULTS
printf ('pressure = %.3f lbs/in^2',p)
|