summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.9/7_9.sce
diff options
context:
space:
mode:
Diffstat (limited to '2192/CH7/EX7.9/7_9.sce')
-rwxr-xr-x2192/CH7/EX7.9/7_9.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2192/CH7/EX7.9/7_9.sce b/2192/CH7/EX7.9/7_9.sce
new file mode 100755
index 000000000..558fd896f
--- /dev/null
+++ b/2192/CH7/EX7.9/7_9.sce
@@ -0,0 +1,17 @@
+clc,clear
+printf('Example 7.9\n\n')
+
+SA_plate= 2.54^2
+thickness= 0.05 //thickness of deposit
+density=9 //density of nickel
+W=SA_plate*thickness*density //masss of deposit
+
+CE_Ni=59; CE_Ag=108; //chemical equivalents
+ECE_Ag=0.001118 //electrochemical equivalents
+ECE_Ni = ECE_Ag*((CE_Ni/2)/CE_Ag) //valancy of Ni is 2
+
+I=20
+T=W/(ECE_Ni*I)
+printf('Time taken for deposition = %.0f seconds\n',T)
+printf('or <%d hours,%d minutes,%d seconds>',T/3600,60*((T/3600)- floor(T/3600) ) , 60*((60*((T/3600)- floor(T/3600) ) )-floor(60*((T/3600)- floor(T/3600) ) )))
+