first attempt at tip calculator

I attempted to wrap this in the validate function above, but I was still getting `NaN` coming through.  What I attempted: 
`var mealAmount = validate(parseFloat(prompt("Enter the cost of your meal :")));`