#initialisation of variables
F= 100. #lbf
a= 20. #ft/sec**2
#CALCULATIONS
m= F*32.2/a
#RESULTS
print ' mass of the body = %.f lb'%(m)
#initialisation of variables
m= 5. #lb
a= 200. #cm/sec**2
#CALCULATIONS
F= m*a/(32.2*30.5)
#RESULTS
print ' Force on the body = %.2f lbf'%(F)
#initialisation of variables
m= 1. #gm
g= 327. #cm/sec**2
#CALCULATIONS
F=m*g/981.
#RESULTS
print ' Force on the body = %.2f gf'%(F)
#initialisation of variables
w= 0.0764 #lbf/ft**3
u= 88. #ft/sec
g= 32.2 #ft/sec**2
#CALCULATIONS
q= w*u**2./(2*g)
#RESULTS
print ' dynamic pressure of air = %.2f lbf/ft**2'%(q)
#initialisation of variables
p= 60. #lbf/in**2
w= 62.4 #lbf/ft**3
l= 1. #ft
g= 32.2 #ft/sec**2
#CALCULATIONS
i= p*144./(w*l)
a= i*g
#RESULTS
print 'accelaration of fluid = %.f ft/sec**2'%(a)
print 'Answer in book is wrong please check manually.'
#initialisation of variables
import math
import numpy
w= 60. #re/min
d= 1. #ft
g= 32.2 #ft/sec**2
#CALCULATIONS
a= w**2.*d*4.*math.pi**2./(2.*60**2)
i= a/g
o= math.degrees(numpy.arctan(i))
#RESULTS
print 'slope ofthe free surface = %.1f degrees'%(o)
#initialisation of variables
import math
H= 50. #ft
l= 200. #ft
g= 32.2 #ft/sec**2
#CALCU;ATIONS
i= H/l
a= i*g
#RESULTS
print 'accelaration = %.2f ft/sec**2'%(a)
#initialisation of variables
import math
g= 32.2 #ft/sec**2
h= 12. #in
r= 10. #in
#CALCULATIONS
w= math.sqrt(2*g*(r/12)*(12/r)**2)*(60/(2*math.pi))
P= h+(r/4.)
#RESULTS
print 'speed of rotation = %.f rev/min'%(w)
print ' maximum pressure head = %.1f in of water'%(P)
#initialisation of variables
import math
l= 6. #ft
g= 32.2 #ft/sec**2
#CALCULATIONS
T= 2*math.pi*math.sqrt(l/g)
#RESULTS
print 'natural period ofthe system = %.2f sec'%(T)
#initialisation of variables
import math
l= 6. #ft
g= 32.2 #ft/sec**2
l1= 6. #ft
l2= 6. #ft
l3= 34. #ft
#CALCULATIONS
a= -((l1+l2-l3)/l)*g
w= math.sqrt(a/4.5)*(60/(2*math.pi))
#RESULTS
print 'maximum speed = %.1f cycles/min'%(w)