#importing modules
import math
from __future__ import division
#Variable declaration
rho_s=10.5*10**3; #density(kg/m**3)
NA=6.02*10**26; #avagadro number(per k mol)
MA=107.9; #atomic mass
sigma=6.8*10**7; #conductance(ohm-1 m-1)
e=1.6*10**-19; #charge(coulomb)
#Calculation
n=rho_s*NA/MA; #density of electrons
mew=sigma/(n*e); #mobility of electrons(m**2/Vs)
#Result
print "density of electrons is",round(n/10**28,2),"*10**28"
print "mobility of electrons is",round(mew*10**2,3),"*10**-2 m**2 V-1 s-1"
#importing modules
import math
from __future__ import division
#Variable declaration
d=8.92*10**3; #density(kg/m**3)
rho=1.73*10**-8; #resistivity of copper(ohm m)
NA=6.02*10**26; #avagadro number(per k mol)
Aw=63.5; #atomic weight
m=9.1*10**-31; #mass(kg)
e=1.6*10**-19; #charge(coulomb)
#Calculation
n=d*NA/Aw; #density of electrons
mew=1/(rho*n*e); #mobility of electrons(m**2/Vs)
t=m/(n*e**2*rho); #average time of collision(s)
#Result
print "mobility of electrons is",round(mew*10**2,3),"*10**-2 m V-1 s-1"
print "average time of collision is",round(t*10**14,2),"*10**-14 s"
#importing modules
import math
from __future__ import division
#Variable declaration
P=1.54*10**-8; #resistance(ohm m)
n=5.8*10**28; #number of electrons(per m**3)
m=9.108*10**-31; #mass(kg)
e=1.602*10**-19; #charge(coulomb)
#Calculation
t=m/(n*e**2*P); #relaxation time of conduction electrons(s)
#Result
print "relaxation time of conduction electrons is",round(t*10**14,2),"*10**-14 s"
#importing modules
import math
from __future__ import division
#Variable declaration
R=0.06; #resistance(ohm)
I=15; #current(A)
D=5; #length(m)
MA=26.98; #atomic mass
rho_s=2.7*10**3; #density(kg/m**3)
NA=6.025*10**26; #avagadro number(per k mol)
e=1.602*10**-19; #charge(coulomb)
#Calculation
n=3*rho_s*NA/MA; #free electron concentration(electrons/m**2)
mew=1/(n*e*rho_s*10**-11); #mobility(m s-1 V-1)
E=I*R/D; #electric field(V/m)
vd=mew*E; #drift velocity of electrons(m/s)
#Result
print "free electron concentration is",round(n/10**29,4),"*10**29 electrons/m**2"
print "mobility is",round(mew*10**3,3),"*10**-3 m s-1 V-1"
print "drift velocity of electrons is",round(vd*10**3,2),"*10**-3 m s-1"