In this lesson, you will be introduced to variables as well as the opportunity to get more confident with sequences. The lesson will start with a story that includes variables; you will have to replace the variable names with the values they refer to when they reach the relevant places in the story. You will then be given a Scratch program where you will work in pairs to predict, run, investigate, and modify.
The lesson will conclude with an activity requiring you to trace the value of a variable in through an algorithm.
Learning objectives
- Define a variable as a name that refers to data being stored by the computer
- Recognise that computers follow the control flow of input/process/output
- Predict the outcome of a simple sequence that includes variables
- Trace the values of variables within a sequence
- Make a sequence that includes a variable