Year 7
Lesson 5 Count-controlled iteration
In this lesson learners will be introduced to the concept of iteration, the examples will be specifically focused on count-controlled iteration. The learners will be given an inefficient program and be asked to spot patterns and repetition. They will be taken through a live coding demonstration of taking their inefficient program and adding iteration to make it more efficient. Learners will then use pair programming to create a Scratch version of the nursery rhyme Ten Green Bottles using count-controlled iteration. Finally learners will be introduced to the concept of debugging and they will be given a program to debug by tracing the value of the variables.
Learning objectives
- Define iteration as a group of instructions that are repeatedly executed
- Describe the need for iteration
- Identify where count-controlled iteration can be used in a program
- Implement count-controlled iteration in a program
- Detect and correct errors in a program (debugging)
Package contents
- Lesson plans
- Learning graphs
- Unit overviews
- Activities
Not registered yet?
Create an account and get access to over 500 hours of free teaching resources.