From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2345/CH2/EX2.21/Ex2_21.sce | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 2345/CH2/EX2.21/Ex2_21.sce (limited to '2345/CH2/EX2.21/Ex2_21.sce') diff --git a/2345/CH2/EX2.21/Ex2_21.sce b/2345/CH2/EX2.21/Ex2_21.sce new file mode 100755 index 000000000..9a6263ced --- /dev/null +++ b/2345/CH2/EX2.21/Ex2_21.sce @@ -0,0 +1,15 @@ +//Finding time +//Example 2.21(pg. 58) +clc +clear +m=3.6//mass in kg +S=4200//specific heat of water +T2=95,T1=15// temp in degree C +H=m*S*(T2-T1)//heat utilised in J +printf('Heat utilised is %7.2f Joules \n',H) +e=0.84//efficiency of kettle +Ei=H/e//Energy input in J +printf('Energy input is %8.2f Joules \n',Ei) +W=1000//rating of kettle in watts +t=(Ei/W)/60//time taken in min +printf('Thus time taken is %2.1f min \n',t) -- cgit