summaryrefslogtreecommitdiff
path: root/2192/CH7/EX7.7/7_7.sce
blob: 46638b15a4c04f57a34b1c3859d3b6b592b6ba7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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)