blob: ea6a4465bae18c862c6ff075336491ce7123d72b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
clc
clear
//Initialization of variables
disp("From table 1 of keenan and keynes,")
p=400 //psia
t1=700 //F
p2=85 //psia
//calculations
s2=1.6398 //units/lb
t2=350 //F
//results
printf("Final state of steam is %d psia and %d F",p2,t2)
|