Custom tip amount

Challenge
No

Change the tip program, so that the user can enter a custom tip amount. Instead of 0.15, the user can enter whatever s/he wants.

The worksheet could start like this:

Start

The user clicks the button and sees:

15% tip

If the user changes 0.15 to 0.2 and clicks the button:

20% tip

Hints:

  • Start by adding a row for tip rate on the worksheet.
  • Add a new variable to the code.

Upload your worksheet.

Where referenced