summaryrefslogtreecommitdiff
path: root/2735/CH16/EX16.14/Ex16_14.sce
blob: be3dced6397be14d68b93fbbff32a4f949d3e418 (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
clear
//Initialization of variables
dH=-2369859 //Btu
r=1.986 //Gas constant
dn=5.5 //Change in number of moles
T=536.7 //R
//calculations
dQ=dH+dn*r*T
//results
printf("Higher heating value = %d Btu",dQ)