summaryrefslogtreecommitdiff
path: root/632/CH4/EX4.6
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /632/CH4/EX4.6
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 '632/CH4/EX4.6')
-rwxr-xr-x632/CH4/EX4.6/example4_6.sce22
1 files changed, 22 insertions, 0 deletions
diff --git a/632/CH4/EX4.6/example4_6.sce b/632/CH4/EX4.6/example4_6.sce
new file mode 100755
index 000000000..1f12157e4
--- /dev/null
+++ b/632/CH4/EX4.6/example4_6.sce
@@ -0,0 +1,22 @@
+//clc()
+Vper1 = 70;//% ( 1 = HCl)
+Vper2 = 20;//% ( 2 = Cl2)
+Vper3 = 10;//% ( 3 = CCl4)
+M1 = 36.45;
+M2 = 70.90;
+M3 = 153.8;
+m1 = Vper1 * M1;
+m2 = Vper2 * M2;
+m3 = Vper3 * M3;
+mper1 = m1 * 100/(m1+ m2 + m3);
+mper2 = m2 * 100/(m1+ m2 + m3);
+mper3 = m3 * 100/(m1+ m2 + m3);
+disp(mper1," (a) weight percent of HCl= ")
+disp(mper2,"weight percent of Cl2= ")
+disp(mper3,"weight percent of CCl4= ")
+m = (m1 + m2 + m3)/(Vper1 + Vper2 + Vper3);
+disp("kg",m,"(b)average molecular weight = ")
+v = 22.4143;//m^3/kmol
+Vtotal = v * (Vper1 + Vper2 + Vper3);
+D = (m1 + m2 + m3)/Vtotal;
+disp("kg/m^3",D,"(c)Density at standard condiions = ") \ No newline at end of file