Migrate docs from the other repo

This commit is contained in:
Michal Moskal
2016-03-25 16:47:20 -07:00
parent 38d2cf06d2
commit a08eb53f92
895 changed files with 36888 additions and 0 deletions

View File

@ -0,0 +1,40 @@
# transformers quiz
Use functions to return values #LED #number #math #functions #return #docs
## Name
## Directions
Use this activity document to guide your work in the [transformers tutorial](/microbit/lessons/transformers/tutorial)
Answer the questions while completing the tutorial. Pay attention to the dialogues!
## 1. What is a 'function'?
<br/>
## 2. Write the line of code to create a number variable called **x** that is equal to 5.
<br/>
## 3. Write the line of code to create a condition for 'on button pressed ("A")'
<br/>
## 4. Write the steps to create a function.
<br/>
## 5. Create a function called **double** that will double whatever input parameter is passed into it.
<br/>
## 6. Consider the following directions. Call the function that doubles the variable original. The function is going to return the doubled value after it is called. Assign the new value (10) to a variable which we will call doubled.
<br/>
## 7. Refer to Question 6. Write the code to call the function that doubles our new variable doubled. Assign the new value 20 to a variable we will call doubled twice.
<br/>