defining the eat function wich returns the cost, function for daily outcome of the zoo