summaryrefslogtreecommitdiff
path: root/2837/CH10/EX10.6/Ex10_6.sce
blob: 14e556b3fa5995f907e98155146931a67aaab1aa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
clc
clear
//Initialization of variables
disp("From table 1 of keenan and keynes,")
h1=1204.8 //Btu/lb
q=174 //Btu/lb
//calculations
h2=h1+q
p2=30 //psia
t2=720 //F
//results
printf("Final state of steam is %d psia and %d F",p2,t2)
printf("\n Final enthalpy is %.1f Btu/lb",h2)