From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 2741/CH1/EX1.7/7.sce | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 2741/CH1/EX1.7/7.sce (limited to '2741/CH1/EX1.7/7.sce') 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) -- cgit