Simple Java based gratuity calculator