summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.7/7_7.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.7/7_7.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.7/7_7.sce')
-rwxr-xr-x2192/CH7/EX7.7/7_7.sce17
1 files changed, 17 insertions, 0 deletions
diff --git a/2192/CH7/EX7.7/7_7.sce b/2192/CH7/EX7.7/7_7.sce
new file mode 100755
index 000000000..46638b15a
--- /dev/null
+++ b/2192/CH7/EX7.7/7_7.sce
@@ -0,0 +1,17 @@
+clc,clear
+printf('Example 7.7\n\n')
+
+
+SA_cylinder=%pi*(20/100)*(30/100) //total surface are of cylinder
+thickness=1 //thickness of nickel coating
+Volume = SA_cylinder *thickness
+Density = 8.9//density of Nickel
+Mass= Density * Volume
+
+Z=0.000304 //electrochemical equivalent of nickel
+T=2*60*60 //rime in seconds
+I = Mass/(Z*T) //current
+
+volts=10
+Energy=volts*I*T /(1000*3600) //energy consumed in 2 hours
+printf('Electrical energy used = %f kWh',Energy)