summaryrefslogtreecommitdiff
path: root/3769/CH7/EX7.7/Ex7_7.sce
blob: 13ee9d50ce461c9eae169ad07f8c4c229db5f0ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
clear
//Given
m=1
c=1
a=100                  //W
b=15
t=7.5                   //second
P=1                     //KW
C=860                     //Kcal

//Calculation
A=m*c*(a-b)
B=P*t/60.0
D=B*C
n=A*a/D

//Result
printf("\n Efficiency of the kettle is %0.1f  percentage",n)