summaryrefslogtreecommitdiff
path: root/24/CH19/EX19.4/Example19_4.sce
blob: 9a51f1ad393d701c207634bbf8965c760979241d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
//Given that
Mc = 75 //in g
To = 312  //in degree C
Mw = 220  //in g
Cb = 45  //in cal/K
Ti = 12  //in degree C
Sc = 0.0923  //in cal/g.K
Cb = 45  //in cal/K
Sw = 1  //in cal/g.K

//Sample Problem 19-4
printf("**Sample Problem 19-4**\n")
Tf = (Sc*Mc*To + Cb*Ti + Sw*Mw*Ti)/(Sw*Mw + Cb + Sc*Mc)
printf("The final temprature of the system is %f degree C", Tf)