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

//INPUT DATA 
h=5000;//height of the niagara falls in cm
J=4.2*10^7;//joules constant in ergs per cal
g=981;//accelaration due to gravity in cm/sec^2

//CALCULATIIONS
w=h*g;//work done per unit mass in ergs/gn
T=w/J;//rise in temperature in deg.C

//OUTPUT
mprintf('the rise in temperature is %3.2f deg.C',T)