summaryrefslogtreecommitdiff
path: root/1100/CH5/EX5.2/5_2.sce
blob: f7eff7a79bbd015f053fd347587e1d3071638b9f (plain)
1
2
3
4
5
6
7
8
9
10
11
clc
//initialisation of variables
m= 2 //lb
T2= 35 //F
cv= 1.2 //Btu/lb F
Q= 34 //Btu
//CALCULATIONS
U= m*cv*T2
W= Q-U
//RESULTS
printf ('Change in internal enenrgy = %.f Btu',W)