import math
#Variable initialization
Q=30.0 #gpm flow rate
dp=300.0 #pressure drop lbf/in^2
Sg=0.85 #density
Cv=5.41 #Flow coefficient
#CALCULATIONS
Cv1=Q/(math.sqrt(dp/Sg))
dp1=Sg*Q**2/Cv**2
#RESULTS
print('\n Flow coefficient = %.3f gpm ' %Cv1)
print('\n Pressure drop = %.3f psi ' %dp1)