Tips and Number Variables


Collapse Content

Can you create a tip calculator? You'll need to use variables to store numbers.

Tip Calculator

  1. Create 2 variables: bill and percent.
  2. Use the prompt block to prompt the user for their values. Make sure to set the value as a number.
  3. Create a new variable tip and use some math blocks to assign it the correct tip.
  4. Print out the final answer.
Hint

See also Tip Challenge

Contact Us