Video summary
This short film explores how computers use variables to store things that change, like names, numbers and scores.
The familiar example of a quiz is used to show how a changing score could be stored in as counters in a box, and this idea is then used to explain how a computer variable stores the changing value in a computer program ready for the program to use.
The film then looks at the program commands needed to keep score in the computer quiz, and how this variable can be used to trigger actions like showing a winner banner when a specific score is reached.
Finally, it looks at how variables can be used to ask questions like, 鈥榳hat is your name?鈥, and then use the answer stored as a variable to personalise the quiz.
This short film is from the 91热爆 Teach series, Cracking Computing.
Teaching Notes
A good place to start with variables is to explore the idea of a variable box to keep a piece of changing information in, and using a real container to develop the concept. The variable will need a name such as score, date, name, temperature, etc.
Simple computer quizzes are another good way to introduce variables, as a changing score is easily understood.
Computer systems with sensors like central heating systems, or street lamps with light sensors are useful real-world examples where the use of a variable (temperature and light level) is measured and recorded by a sensor.
Flow diagrams can help pupils to understand the process and where the variable fits in. For example:
- Variable name is 'temperature' - get reading every 10 seconds from external thermometer
- When temperature is greater than 23 degrees, then switch off heating
- When temperature is less than 23 degrees, then switch on heating.
Other subjects
Science / Geography: Work on weather and weather stations can include using automated weather data systems that will collect a range of data and have a range of variables to explore.
This short film is suitable for teaching:
- KS2 computing curriculum in England
- Technologies curriculum area at 2nd Level in Scotland
- KS2 digital competence framework in Wales
- KS2 using ICT cross-curricular skill in Northern Ireland
Algorithms. video
This short film for primary schools outlines how algorithms are sets of instructions to make something happen, before explaining further using a recipe analogy.
Computer networks. video
This short film explains computer networks. It looks at different types of computer network and the elements that make up a basic network including clients, servers, switches and hubs.
Creating with computing. video
This short film explores the many creative computing tools we have access to, with a focus on how they are used to create new creative content and media.
Debugging. video
This short film uses computer games to explain debugging, which is the process of finding and correcting errors in computer programs.
Decomposition. video
This short film explains how decomposition involves breaking one big problem down into smaller, more manageable problems that can be tackled step by step.
Input and output. video
This short film gives a brief history of input and output methods with examples, and brings us up to date with examples of familiar input and output devices that we use every day.
Logical reasoning. video
This short film outlines logical reasoning as 鈥榮ensible thinking鈥 when following rules, and explains how a problem with a computer program can be solved using logical reasoning.
Repetition. video
This short film for primary schools explains how repetition within computing allows a command to be repeated to make a computer program more efficient.
Search technologies. video
This short film gives a brief history of the development of the internet and the invention of the world wide web by Sir Tim Berners-Lee, and explains the role of a search engine.
Selection. video
This short film covers the use of selection in simple computer programs, and shows how this idea of yes/no questions can allow computers to respond to external conditions and select different paths.
Sequencing. video
This short film covers the concept of sequencing, or making sure things are in the right order, and explores what might happen if things are done in the wrong order, or sequence.
Working with data. video
This short film explores how data is collected using digital devices in response to questions, and how it is organised into tables, records and fields on a computer system.