Compute tip from meal cost and user ratings.