From b1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b Mon Sep 17 00:00:00 2001 From: priyanka Date: Wed, 24 Jun 2015 15:03:17 +0530 Subject: initial commit / add all books --- 884/CH19/EX19.9/Example19_9.sce | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 884/CH19/EX19.9/Example19_9.sce (limited to '884/CH19/EX19.9/Example19_9.sce') 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 -- cgit