summaryrefslogtreecommitdiff
path: root/1460/CH4/EX4.7/4_7.sce
blob: 3df6261be7f2db38706a621a3150b23a3f1b7d49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//Initialization of variables
w1=100 //lbm
w2=2 //lbm
h1=127 //B/lbm
h2=125 //B/lbm
hc=401 //B/lbm
//calculations
ht1=w1*h1
ht2=w2*h2
ht3=(w1+w2)*hc
Q=ht3-ht1-ht2
//results
printf("Heat liberated = %d B/sec",Q)