33 lines
775 B
Markdown
Raw Normal View History

2016-03-25 16:47:20 -07:00
# magic 8 quiz
create a magic 8 ball on the @boardname@.
2016-03-25 16:47:20 -07:00
## Name
## Directions
2016-04-13 08:27:45 -07:00
Use this activity document to guide your work in the [magic 8 tutorial](/lessons/magic-8/activity).
2016-03-25 16:47:20 -07:00
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. Define what an 'if statement' is.
<br />
## 2. Create a Variable called ``x`` and assign it to a random number between 0 and 2.
<br />
## 3. Write the 'if statement' to check if ``x`` is equal to 2. Inside the 'if statement', display the string "Yes".
<br />
2016-03-30 15:54:19 -07:00
## 4. Write the 'if statement' to check if ``x`` is equal to 1. Inside the 'if statement', display the string "No."
2016-03-25 16:47:20 -07:00
<br />
## 5. Write the code to display the string "I don't know" if the Variable ``x`` is neither 2 nor 1.
<br />