diff options
Diffstat (limited to '2741/CH1/EX1.7/7.sce')
-rwxr-xr-x | 2741/CH1/EX1.7/7.sce | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/2741/CH1/EX1.7/7.sce b/2741/CH1/EX1.7/7.sce new file mode 100755 index 000000000..b527a4c31 --- /dev/null +++ b/2741/CH1/EX1.7/7.sce @@ -0,0 +1,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)
|