summaryrefslogtreecommitdiff
path: root/1571/CH3/EX3.9/Chapter3_Example9.sce
blob: fb103d9d76f6f7dcdef860aa2b24eb298de48e06 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
clc
clear

//INPUT DATA
h=10000;//vertical height of water fall in cm
v=5;//volume disharged per sec in litres
J=4.18;//joule's constant in j/cal
g=981;//accelaration due to gravity in cm/sec^2

//CALCULATIONS
m=v*1000;//mass of water disharged per sec in gm
w=m*h*g;//work done in falling through 100m in erg
H=w/(J*10^7);//quantity of heat produced in cal
T=H/m;//rise in temperature in deg.C

//OUTPUT
mprintf('the quantity of heat produced is %3f cal \n the rise in temperature is %3.2f deg.C',H,T)