summaryrefslogtreecommitdiff
path: root/858/CH1/EX1.4
diff options
context:
space:
mode:
Diffstat (limited to '858/CH1/EX1.4')
-rwxr-xr-x858/CH1/EX1.4/example_4.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/858/CH1/EX1.4/example_4.sce b/858/CH1/EX1.4/example_4.sce
new file mode 100755
index 000000000..af15455ac
--- /dev/null
+++ b/858/CH1/EX1.4/example_4.sce
@@ -0,0 +1,17 @@
+clc
+clear
+printf("example 1.4 page number 24\n\n")
+//to find volume of NH3 dissolvable in water
+
+p=1 //atm
+H=2.7 //atm
+x=p/H;
+
+mole_ratio = (x)/(1-x);
+moles_of_water=(100*1000)/18;
+moles_of_NH3=mole_ratio*moles_of_water;
+
+printf("moles of NH3 dissolved = %f\n\n",moles_of_NH3)
+
+volume_NH3=(moles_of_NH3*22.4*293)/273;
+printf("volume of NH3 dissolved = %f liters",volume_NH3)