summaryrefslogtreecommitdiff
path: root/2141/CH5/EX5.4/Ex5_4.sce
blob: 46f6e17bb59a95d7c883d0d64778e1e30473e9f6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

clc
//initialisation of variables
i=20 //amp
v=12.8 //v
h=25 //Btu
Q=-i*v// 1 watt Btu/hr
w=3.412//Bhu/hr
//CALCULATIONS
W=Q*w//Btu/hr
E=-h-W//Btu/hr
//RESULTS
printf('The internal energy increasing=% f Btu/hr',E)