# Variables
P = 60 ; #[Gpa]
# Calculation and Results
#(a)
p_atm = (P*(10**6))/101.3 ; #[atm]
print '(a) Pressure in atmospheres is %.2e atm'%p_atm
#(b)
p_s = (P*(10**6)*14.696)/101.3 ; #[psia]
print ' (b) Pressure in psia is %.2e psia'%p_s
# (c)
p_in = (P*(10**6)*29.92)/101.3 ; #[inches of Hg]
print ' (c) Pressure in inches of Hg is %.2e in. Hg'%p_in
# (d)
p_mm = (P*(10**6)*760)/101.3 ; #[mm of Hg]
print ' (d) Pressure in mm of Hg is %.2e mm Hg'%p_mm
# Variable
b_rd = 28.0 ; #[in. Hg]
p_rd = 51.0 ; #[psia]
# calculation
p_atm = b_rd*14.7/29.92 ; # [psia]
p_tnk = p_atm+p_rd ; #[psia]
# Result
print ' Pressure in tank in psia is %.1f psia'%p_tnk
# Variables
b_rd = 100.0 ; #[kPa]
gp = 64.5*101.3/76.0 ; #[kPa]
# Calculations
p_tnk = b_rd-gp ; #[kPa]
# Results
print ' Absolute Pressure in tank in is %.1f kPa'%p_tnk
print ' Since absolute pressure in tank(%.1f kPa) is less than 20 kPa , the \
mice probably will not survive. '%p_tnk
# Variables
df = 1.10*10**3 ; #[kg/m**3]
d = 1.0*10**3 ; #[kg/m**3]
g = 9.8 ; #[m/s**2]
h = 22.0 ; #[mm]
# Calculation
dP = (df-d)*g*(h*10**(-3)) ; #[Pa]
# Result
print 'Pressure difference across the orifice plate is %.1f Pa.'%dP
# Variables
p_atm=730.0*29.92/760.0 ; #[in. Hg]
gp= (4.0*29.92)/(2.54*12*33.91) ; #[in. Hg]
# Calculation
p_air=p_atm-gp ; #[in. Hg]
# Result
print ' Pressure of the air is %.1f in. Hg.'%p_air