summaryrefslogtreecommitdiff
path: root/2741/CH1/EX1.7/7.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2741/CH1/EX1.7/7.sce
downloadScilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.gz
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.tar.bz2
Scilab-TBC-Uploads-b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b.zip
initial commit / add all books
Diffstat (limited to '2741/CH1/EX1.7/7.sce')
-rwxr-xr-x2741/CH1/EX1.7/7.sce12
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)