from __future__ import division
#Initialization of variables
ha=1033 #Btu/mol air
hbd=2992 #Btu/mol air
hc=7823 #Btu/mol air
hdd=5142 #Btu/mol air
Hv=2733000 #Btu/mol
M=29
#calculations
Wt=hc-hdd
Wc=ha-hbd
Net=Wt+Wc
Heat=hc-hbd
etat=Net*100/Heat
molair=Heat/Hv
mr=molair*142/M
Af=1/mr
#results
print "\n Thermal efficiency = %.1f percent"%(etat)
print "\n Moles of fuel burned per mol of air = %.5f mol fuel/mol air"%(molair)
print "\n Mass ratio in pounds = %.5f lbm fuel/lbm air"%(mr)
print "\n Air fuel ratio = %d lbm air/lbm fuel"%(Af)