blob: ce633a9900ffa102db897ea363e6885dfa56aba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
clc
//initialization of varaibles
T=250 //F
disp("From table 1,")
p=29.825 //psia
hg=1164 //B/lb
vg=13.821 //cu ft/lb
//calculations
ug=hg-(p)*144*vg/778
//results
printf("Internal energy of the gas = %.1f B/lb",ug)
|