summaryrefslogtreecommitdiff
path: root/1460/CH7/EX7.4/7_4.sce
blob: 9b3838c21982fcd9b7c4af1101063592b16626a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
clc
//initialization of variables
T1=300 //F
disp("From steam tables,")
h1=269.59 //B/lbm
h2=1179.7 //B/lbm
s1=0.4369 //B/lbm R
s2=1.6350 //B/lbm R
//calculations
dh=h2-h1
ds=s2-s1
//results
printf("Change in enthalpy = %.1f B/lbm",dh)
printf("\n Change in entropy = %.4f B/lbm R",ds)