summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.5/7_5.sce
diff options
context:
space:
mode:
authorpriyanka2015-06-24 15:03:17 +0530
committerpriyanka2015-06-24 15:03:17 +0530
commitb1f5c3f8d6671b4331cef1dcebdf63b7a43a3a2b (patch)
treeab291cffc65280e58ac82470ba63fbcca7805165 /2192/CH7/EX7.5/7_5.sce
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 '2192/CH7/EX7.5/7_5.sce')
-rwxr-xr-x2192/CH7/EX7.5/7_5.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2192/CH7/EX7.5/7_5.sce b/2192/CH7/EX7.5/7_5.sce
new file mode 100755
index 000000000..62df85bdb
--- /dev/null
+++ b/2192/CH7/EX7.5/7_5.sce
@@ -0,0 +1,17 @@
+clc,clear
+printf('Example 7.5\n\n')
+
+D= 8.9 //density of nickel
+A=200 //area of plate
+thickness=0.2/10 //thicknes of coating
+V=200*thickness //volume of material to be plated
+W= V* D //weight of material to be deposited
+Z= 0.0003043 //Electrochemical equivalent of nickel
+Q = W / (Z*90/100) //Q is quantity of electricity
+printf('Quantity of electricity = %.1f A-hr\n',Q/3600)
+
+current_density = 190*10^-4 //current density in A/ cm^2
+current = current_density *A
+T=Q /current //time taken
+printf('Time taken = %f 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) ) )))