User interface added to tip-calculator code