summaryrefslogtreecommitdiff
path: root/2741/CH1/EX1.7/7.sce
blob: b527a4c316ed6525caa147e76ebaca2d14e7513e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
clc
clear
//Input data
Pt=100;//Pressure of air when the bulb is placed in hot water in cm of Hg
P100=109.3;//Pressure of air in a constant volume thermometer at 100 degree centigrade in cm of Hg
P0=80;//Pressure of air in a constant volume thermometer at 0 degree centigrade in cm of Hg

//Calculations
t=((Pt-P0)/(P100-P0))*100;//The temperature of the hot water in degree centigrade

//Output data
printf('The temperature of the hot water is %3.2f degree centigrade',t)