summaryrefslogtreecommitdiff
path: root/24/CH8/EX8.8/Example8_8.sce
blob: 34dfc33ea36bc936a04f113445dc4384f5644fc7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Given that
m = 6.0  //in kg
Vo = 7.8  //in m/s
Yo = 8.5  //in meter
Y = 11.1  //in meter
g = 9.8  //in m/s^2

//Sample Problem 8-8
printf("**Sample Problem 8-8**\n")
//initial mechanical energy
Mi = .5* m* Vo^2 + m* g* Yo
//final mechanical energy
Mf = 0 + m* g* Y
Eth = Mi - Mf
printf("The thermal energy generated is equal to %fJ", Eth)