import math
#initialisation of variables
nb=0.4
pb=385 #in mm
nt=0.6
pt=139 #in mm
#CALCULATIONS
Pb=pb*nb
Pt=pt*nt
PT=Pb+Pt
Xt=Pt/PT
#RESULTS
Xt=round(Xt,3)
print 'mole fraction of benzene vapour=',Xt,'f'
import math
#initialisation of variables
K=1.25*10**6
m=1000 #in gms
M=18.02 #in gms
#CALCULATIONS
nco2=760*m/(M*K)
#RESULTS
nco2=round(nco2,2)
print 'moles of carbon dioxide=',nco2,'mole litre ˆ−1'
import math
#initialisation of variables
Vp=1022.0 #in mm
Vp1=406.0 #in mm 5
#CALCULATIONS
Xb=(760-Vp1)/(Vp-Vp1)
Xb1=Vp*Xb/760
#RESULTS
Xb=round(Xb,3)
Xb1=round(Xb1,3)
print 'mole fraction of benzene=',Xb,'f'
print 'mole fraction of benzene vapour=',Xb1,'f'
import math
#initialisation of variables
P1=731.9 #in mm
P2=712.4 #in mm
Mb=18 #in gms
r=0.188
#CALCULATIONS
Ma=r*Mb*P2/(P1-P2)
#RESULTS
Ma=round(Ma,2)
print 'molecular weight of nitro −benzene=',Ma,'g moleˆ−1'