The tip calculator can be enhanced by asking the user the the meal cost
and desired tip using input from the keyboard. You might want to review the input
function from an earlier lesson. Here's the base code for doing the tip calculator with some
interaction from the user (remember that $tip=per/100\times meal$ given that $per$ and $meal$ are the
percentage of tip to leave and cost of the meal, respectively).
Now you try. Try finishing this tip calculator by finishing in the tip= line.
Type your code here:
See your results here:
Share your code
Show a friend, family member, or teacher what you've done!