Year 6
Year 6
Programming A – Variables in games
This unit explores the concept of variables in programming through games in Scratch. First, year 6 find out what variables are and relate them to real-world examples of values that can be set and changed. Then they use variables to create a simulation of a scoreboard. In Lessons 2, 3, and 5, which follow the Use-Modify-Create model, learners experiment with variables in an existing project, then modify them, before they create their own project. In Lesson 4, learners focus on design. Finally, in Lesson 6, learners apply their knowledge of variables and design to improve their games in Scratch.
Year 6 are introduced to variables. They see examples of real-world variables (score and time in a football match) before they explore them in a Scratch project. They then design and make their own project that includes variables. Finally, year 6 identify that variables are named and that they can be letters (strings) as well as numbers.
To define a ‘variable’ as something that is changeable
I can identify examples of information that is variable
I can explain that the way a variable changes can be defined
I can identify that variables can hold numbers or letters
To explain why a variable is used in a program
I can identify a program variable as a placeholder in memory for a single value
I can explain that a variable has a name and a value
I can recognise that the value of a variable can be changed