summaryrefslogtreecommitdiff
path: root/2345/CH2/EX2.20/Ex2_20.sce
blob: 3e741fb5e9ea6b9279d38c172e8bf1b696683940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Finding heat efficiency
//Example 2.20(pg. 57)
clc
clear
m=1//mass in kg
S=4200//specific heat of water
T2=100,T1=15// temp in degree C
H=m*S*(T2-T1)//heat utilised in J
printf('Heat utilised is %6.2f Joules \n',H)
W=500//wattage rating of kettle in volts
t=15*60// time in sec
Hd=W*t//heat developed in J
printf('Heat developed is %6.2f Joules \n',Hd)
He=(H/Hd)*100//Heat efficiency
printf('Thus heat efficiency is %3.2f percent',He)