summaryrefslogtreecommitdiff
path: root/884/CH19/EX19.9
diff options
context:
space:
mode:
Diffstat (limited to '884/CH19/EX19.9')
-rwxr-xr-x884/CH19/EX19.9/Example19_9.sce24
1 files changed, 24 insertions, 0 deletions
diff --git a/884/CH19/EX19.9/Example19_9.sce b/884/CH19/EX19.9/Example19_9.sce
new file mode 100755
index 000000000..07527a10c
--- /dev/null
+++ b/884/CH19/EX19.9/Example19_9.sce
@@ -0,0 +1,24 @@
+//quantitative aspects of electrolysis
+
+clear;
+clc;
+
+printf("\t Example 19.9\n");
+
+t=7.44*3600;//time, sec
+A=1.26;//current in ampere
+q=A*t;//charge passed, coulomb
+F=96500;//faraday constant, J/V mol
+ne=q/F;//moles of electrons
+nO2=ne/4;//moles of oxygen
+nH2=ne/2;//moles of H2
+
+R=0.0821;//gas constant, L atm/K
+T=273;//temperature in Kelvin
+P=1;//pressure in atm
+VO2=nO2*R*T/P;//volume of oxygen gas generated
+VH2=nH2*R*T/P;//volume of H2 gas generated
+
+printf("\t the volume of O2 gas and H2 gas generated are : %4.2f L and %4.2f L respectively\n",VO2,VH2);
+
+//End