blob: 2940c50c8b92d95d5d33d65796740f33c2448636 (
plain)
1
2
3
4
5
6
7
8
9
10
|
clc
//initialization of variables
P=80 //lb/in^2
x=0.9 //quality
hg=1183.1 //B/lbm
hfg=901.1 //B/lbm
//calculations
h=hg-(1-x)*hfg
//results
printf("Enthalpy of steam = %.1f B/lbm",h)
|