#given
#find the heat required
t2=185
t1=95
W1=42
cp=0.5
g=0.92
w1=8.31*g
W=W1*w1
Q=W*cp*(t2-t1)
print(W)
print"%s %.2f %s"%("heat required is",Q,"")
#answer is slighlty different due to roundoff error
#given
#find the back pressure and heat required
import math
g=9.
w1=0.0361
Bp=g*w1
#as 1 psi =2.036
Bp1=Bp*2.0326
print"%s %.3f %s"%("back pressure",Bp,"")
print"%s %.2f %s"%("heat required is",Bp1,"")
#given
#find the total weight of a given temperature and velocity
import math
v=9500.
p=5.
t=180.
V=v/(12.**3)
#normal barometric pressure 14.7
bP=p+14.7
bP1=144.*bP
#640 is total temperature conveting into k
W=(bP1*V)/(53.3*640.)
print"%s %.2f %s"%("total weight",W,"")
#given
import math
#find the rate of flow outlet
t=600.
c=1200.
t2=400.
AT=t+460.
AT1=t2+460.
Rfo=c*(AT1/AT)
print"%s %.2f %s"%("Rate of flow outlet",Rfo,"")
#given
import math
#find the final pressure gage and convert absloute temperature to normal temprature
a=210.
t=160.
t2=60.
#absloute temperature to convert is 460
AT=160.+460.
AT1=60.+460.
IP=210.+14.7
FP=IP*(520./620.)
print(FP)
FPg=(FP-14.7)
print"%s %.2f %s"%("final pressue gage is",FPg,"")
#given
import math
#find the final pressure gage
a=240.
b=15.
IP=14.7
FP=IP*(a/b)
Fpg=FP-IP
print"%s %.2f %s"%("final pressure gage is",Fpg,"")
#given
#find out weight of hydrogen
import math
#1lb hydrogen +8 lb oxygen gives
T=1.+8.
#this problem deals with 24 lb oxygen so
t=24./8.
#multiplying all equation by 3
TT=3+24
print"%s %.2f %s"%("3 lb of hydrogen requires",TT,"lb")
#given
o=0.14
h=0.86
O=120*o
H=120*h
O2=134.4+275.5
print"%s %.2f %s"%("Total O2 uniting with oil",O2,"")
import math
#find the total weight and airfuel ratio
#given data
O2=409.9
lb=0.231
w=409.9
W=w/lb
AFR=W/120.
print"%s %.2f %s"%("toatl weight",W,"")
print"%s %.2f %s"%("air fuel ratio",AFR,"")