summaryrefslogtreecommitdiff
path: root/884/CH5/EX5.4
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /884/CH5/EX5.4
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 '884/CH5/EX5.4')
-rwxr-xr-x884/CH5/EX5.4/Example5_4.sce19
1 files changed, 19 insertions, 0 deletions
diff --git a/884/CH5/EX5.4/Example5_4.sce b/884/CH5/EX5.4/Example5_4.sce
new file mode 100755
index 000000000..b2d8c91c3
--- /dev/null
+++ b/884/CH5/EX5.4/Example5_4.sce
@@ -0,0 +1,19 @@
+//Ideal Gas Equation
+
+clear;
+clc;
+
+printf("\t Example 5.4\n");
+
+m=7.4;//mass of NH3, g
+
+//at STP for NH3 for 1mole of NH3
+V1=22.41;// volume, L
+NH3=17.03;//molar mass of NH3, g
+
+n=m/NH3;//moles of NH3
+V=n*V1;//volume, L
+
+printf("\t the volume of NH3 under given conditions is : %4.2f L\n",V);
+
+//End