noUnit 4 Lesson 1 Activity Guide
Complete this with your partner in class
Write down two examples where the app seems to be keeping track of a piece of information or using it to make a decision:
The amount of clicks produced for the first one
For the second one it kept track of the words you chose to make your poem
Step 2: Operators
If absent, make a copy of the digital manipulatives to use for this lesson.
- On a sticky note, make one number and one string. The number should be on a yellow sticky note, and the string on a pink sticky note. Paste a screenshot of your sticky note below:
- On a sticky note, evaluate the expression on a sticky note. Put your results on a sticky note. Paste a screenshot of your sticky note below:
- Evaluate each of the following on your sticky notes. Paste the results in the table below. Be sure to use the appropriate color for the type of sticky note (number is yellow or string is pink).
Step 3: Variables
- The plastic bags are "variables." Make one variable with any name you like using your manipulatives and label a plastic bag with that name. Paste an image of the variable below:
- Evaluate these expressions. Make sure you pay attention to whether it evaluates to a string or a number. Paste your sticky notes with your answers in the spaces provided:
Step 4: Variables in programs
- Give the values of the variables at the end of the program by creating bags with the appropriate names and putting a sticky note in the appropriate bag. Take a screenshot and paste your results below:
Code | Value of Variables |
00 var pizza 01 pizza ← 3 02 var tacos 03 pizza ← “yum” 04 tacos ← “the best” | No value-pizza 3- pizza No value-tacos pizza-yum tacos- the best |
- Give the values of the variables at the end of the program by creating bags with the appropriate names and putting a sticky note in the appropriate bag. Take a screenshot and paste your results below:
Code | Value of Variables |
00 var zow 01 var fly 02 fly ← “to” + “day” 03 zow ← 4 - 1 04 fly ← 3 * 3 05 zow ← 4 + “now” | Zow- No Value Fly- no value Fly- today Zow- 3 Fly- 9 Zow- “4now” |
- Give the values of the variables at the end of the program by creating bags with the appropriate names and putting a sticky note in the appropriate bag. Take a screenshot and paste your results below:
Code | Value of Variables |
00 var fuzz 01 var clip 02 fuzz ← 5 03 clip ← fuzz + 2 04 fuzz ← clip + 1 05 clip ← “gr” + fuzz 06 fuzz ← fuzz + 1 07 fuzz ← fuzz + 1 08 fuzz ← fuzz + 1 | Fuzz-no value Clip- no value Fuzz- 5 Clip-7 Fuzz- 8 Clip- “gr8” Fuzz-9 Fuzz-10 Fuzz-11
|