blob: f67c3c558eebc8b5c0c031b4ca5378958ddd5056 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
clc
//initialisation of variables
p=5//ft
p1=200//ft
t1=70//F
t2=10//F
h1=23.90//ft
h2=79.36//hp
s1=0.17015//ft
p2=84.82//psia
h3=87.87//Btu
g=42.4//ft
//CALCULATIONS
W=p*p1/(h2-h1)//lb per min
W1=W*(h3-h2)//Btu per min
H=W1/g//hp
//RESULTS
printf('the horse power is =% f hp',H)
|