summaryrefslogtreecommitdiff
path: root/926/CH2/EX2.4
diff options
context:
space:
mode:
authorprashantsinalkar2017-10-10 12:27:19 +0530
committerprashantsinalkar2017-10-10 12:27:19 +0530
commit7f60ea012dd2524dae921a2a35adbf7ef21f2bb6 (patch)
treedbb9e3ddb5fc829e7c5c7e6be99b2c4ba356132c /926/CH2/EX2.4
parentb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (diff)
downloadScilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.gz
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.tar.bz2
Scilab-TBC-Uploads-7f60ea012dd2524dae921a2a35adbf7ef21f2bb6.zip
initial commit / add all books
Diffstat (limited to '926/CH2/EX2.4')
-rw-r--r--926/CH2/EX2.4/Chapter2_Example4.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/926/CH2/EX2.4/Chapter2_Example4.sce b/926/CH2/EX2.4/Chapter2_Example4.sce
new file mode 100644
index 000000000..db1bb49a9
--- /dev/null
+++ b/926/CH2/EX2.4/Chapter2_Example4.sce
@@ -0,0 +1,25 @@
+//Hougen O.A., Watson K.M., Ragatz R.A., 2004. Chemical process principles Part-1: Material and Energy Balances(II Edition). CBS Publishers & Distributors, New Delhi, pp 504
+
+//Chapter-2, illustration 4, Page 36
+//Title: Expressing weight percent into mole percent
+//=============================================================================
+clear
+clc
+
+//INPUT
+W = 100; //Weight of solution in grams(Basis of calculation)
+w1 = 40; //Weight of sodium carbonate present in solution in grams
+MW = [106,18.02]; //Molecular weight of sodium carbonate and water respectively in g/g-mole
+
+//CALCULATION
+n1 = w1/MW(1); //To find the no of moles of sodium carbonate in g mole
+n2 = (W-w1)/MW(2); //To find the no of moles of water in g mole
+N = n1+n2; //Calculation of total no of moles in g mole
+x1 = n1*100/N; //Mole % of sodium carbonate
+x2 = n2*100/N; //Mole % of water
+
+//OUTPUT
+mprintf('\n mole percent of Na2CO3 = %4.2f',x1);
+mprintf('\n mole percent of H2O = %3.1f',x2);
+
+//================================END OF PROGRAM=============================== \ No newline at end of file