import math
# Variables
k = math.sqrt(3) #hr**-1
n = 1.
V = 30. #m3
CR = 0.12 #kgalc/kgsol
density = 1000. #kg/m3
# Calculations and Results
CR = CR*density;
CR_opt = CR/2;
alcohol_per = CR_opt*100/density #PErcentage of alcohol
print " The Percentage of alchol in cocktail is %f"%(alcohol_per)
kt = 1.
t = kt/k;
t_opt = 2*t;
v_opt = V/t_opt;
print " The Optimum feed rate is %f"%(v_opt),
print " m3/hr"
#The production rate of alcohol
FR = v_opt*CR_opt;
print " The production rate of alcohol is %f "%(FR),
print " kgalc/hr"