#importing modules
import math
from __future__ import division
#Variable declaration
r=0.1249; #atomic radius(nm)
n=2; #number of atoms
#Calculation
a=4*r/math.sqrt(3); #edge length(m)
V=a**3; #volume(nm**3)
v=4*math.pi*r**3*n/3; #volume of atoms(nm**3)
Fv=V-v; #free volume/unit cell(nm**3)
#Result
print "free volume/unit cell is",round(Fv,6),"nm**3"
#importing modules
import math
from __future__ import division
#Variable declaration
n=2; #number of atoms
M=6.94; #atomic weight(kg)
rho=530; #density(kg/m**3)
Na=6.02*10**26; #avagadro number
#Calculation
a3=n*M/(rho*Na);
a=a3**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10,3),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
n=2; #number of atoms
M=55.85; #atomic weight(kg)
rho=7860; #density(kg/m**3)
Na=6.02*10**26; #avagadro number
#Calculation
a3=n*M/(rho*Na);
a=a3**(1/3); #lattice constant(m)
#Result
print "lattice constant is",round(a*10**10,2),"angstrom"
#importing modules
import math
from __future__ import division
#Variable declaration
a=0.356*10**-9; #lattice constant(m)
n=8; #number of atoms
#Calculation
N=n/a**3; #number of atoms per m**3
#Result
print "#number of atoms per m**3 is",round(N/10**27,1),"*10**27"
#importing modules
import math
from __future__ import division
#Variable declaration
a=3.5; #lattice constant(angstrom)
#Calculation
A=a**2;
N=10**7*10**7/A; #number of atoms per sq. mm
#Result
print "number of atoms per sq. mm is",round(N/10**12,2),"*10**12"
#importing modules
import math
from __future__ import division
#Variable declaration
n=8; #number of atoms
a=5.62*10**-10; #lattice constant(m)
M=72.59; #atomic weight(kg)
Na=6.02*10**26; #avagadro number
#Calculation
rho=n*M/(a**3*Na); #density(kg/m**3)
#Result
print "density is",round(rho,1),"kg/m**3"