2016-03-26 00:47:20 +01:00
|
|
|
# compass quiz
|
|
|
|
|
|
|
|
Create an actual compass to show your direction: North, South, East, or West
|
|
|
|
|
|
|
|
## Name
|
|
|
|
|
|
|
|
## Directions
|
|
|
|
|
2016-04-13 17:27:45 +02:00
|
|
|
Use this activity document to guide your work in the [compass tutorial](/lessons/compass/tutorial).
|
2016-03-26 00:47:20 +01:00
|
|
|
|
|
|
|
Answer the questions while completing the tutorial. Pay attention to the dialogues!
|
|
|
|
|
|
|
|
## 1. What is the purpose of the 'compass heading' block?
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 2. Write the code that stores the compass heading into a local variable called 'degrees'.
|
|
|
|
|
|
|
|
<br/>
|
|
|
|
|
|
|
|
## 3. Write the 'If statement' that will check if the device is mostly pointing North. Display 'N' on the BBC micro:bit
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
## 3. Write the 'If statement' that will check if the device is mostly pointing East. Display 'E' on the BBC micro:bit
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|
|
|
|
## 3. Write the 'If statement' that will check if the device is mostly pointing South. Display 'S' on the BBC micro:bit
|
|
|
|
|
|
|
|
<br />
|
|
|
|
|