summaryrefslogtreecommitdiff
path: root/926/CH2/EX2.5/Chapter2_Example5.sce
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.5/Chapter2_Example5.sce
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.5/Chapter2_Example5.sce')
-rw-r--r--926/CH2/EX2.5/Chapter2_Example5.sce25
1 files changed, 25 insertions, 0 deletions
diff --git a/926/CH2/EX2.5/Chapter2_Example5.sce b/926/CH2/EX2.5/Chapter2_Example5.sce
new file mode 100644
index 000000000..fa61b39bf
--- /dev/null
+++ b/926/CH2/EX2.5/Chapter2_Example5.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 5, Page 37
+//Title: Expressing mole percent into weight percent
+//=============================================================================
+clear
+clc
+
+//INPUT
+N = 100; //Total no of moles of solution in g mole(Basis of calculation)
+n1 = 25; //No of moles of napthalene present in solution in g mole
+MW = [128.1,78.1]; //Molecular weight of napthalene and benzene in g/g mole
+
+//CALCULATION
+w1 = n1*MW(1); //Weight of napthalene present in the solution in grams
+w2 = (N-n1)*MW(2); //Weight of benzene present in the solution in grams
+W = w1+w2; //Total weight of solution in grams
+m1 = w1*100/W; //Weight % of napthalene in solution
+m2 = w2*100/W; //Weight % of benzene in solution
+
+//OUTPUT
+mprintf('\n Weight percent of napthalene = %3.1f',m1);
+mprintf('\n Weight percent of benzene = %3.1f',m2);
+
+//===========================END OF PROGRAM==================================== \ No newline at end of file