#Calculate the change in enthalpy
#Initialization of variables
dU=-969.6 #kJ/mol
nN2=1/2.
nCO2=2.
nO2=9./4.
T=298.15 #K
#Calculations
n=nCO2+nN2-nO2
H=dU+n*8.3145*T/1000.
#results
print '%s %.1f %s' %('Enthalpy change = ',H,'kJ/mol')
#Calculate the Molar Enthalpy Change
#Initialization of variables
I=0.682 #A
V=12 #V
t=500. #s
m=4.33 #g
MW=46.07 #g/mol
#Calculations
q=I*V*t
n=m/MW
H=q/n/1000.
#Results
print '%s %.1f %s' %('Molar enthalpy change =',H,'kJ/mol')
#Calculate the Heat supplied
#Initialization of variables
m=1 #g
MW=24.31 #g/mol
H=2337 #kJ/mol
#Calculations
n=m/MW
q=n*H
#results
print '%s %.1f %s' %('Heat supplied =',q,'kJ')
#Calculate the sum of enthalpy changes
#Initialization of variables
HC=716.68 #kJ
HH=871.88 #kJ
HO=249.17 #kJ
Hcond=-38 #kJ
HCH=-412
HCO=-360
HOH=-463
#Calculations
H1=HC+HH+HO
H2=3*HCH+HCO+HOH
H3=Hcond
H=H1+H2+H3
#results
print '%s %d %s' %('Sum of enthalpy changes =',H,' kJ')
#Calculate the standard enthalpy of combustion of propene
#Initialization of variables
Hf=-124 #kJ
Hoxi=-2220 #kJ
Hwater=286 #kJ
#Calculations
H=Hf+Hoxi+Hwater
#results
print '%s %d %s' %('Standard enthalpy of combustion of propene =',H,'kJ/mol')
#Calculate the standard enthalpy of combustion of benzene
#Initialization of variables
nCO2=6 #mol
nH2O=3 #mol
nO2=15/2. #mol
nC6H6=1 #mol
HC6H6=49 #kJ/mol
HH2O=-285.83
HO2=0
HCO2=-393.51
#Calculations
H=nCO2*HCO2+nH2O*HH2O-nC6H6*HC6H6-nO2*HO2
#results
print '%s %.1f %s' %('Standard enthalpy of combustion of benzene is',H,'kJ/mol')
#Calculate the enthalpy of formation of water
#Initialization of variables
HH2O=-241.82 #kJ/mol
T1=25 #C
T2=100 #C
CpH2O=33.58 #J/K mol
CpH2=28.84 #J/K mol
CpO2=29.37 #J/K mol
#calculations
dCp=CpH2O-CpH2-0.5*CpO2
dH=HH2O+dCp*(T2-T1)/1000.
#results
print '%s %.2f %s' %('Enthalpy of formation of water at 100 C is',dH,'kJ/mol')