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
- Slide decks
- Learner resources
- Homework
Don't have an account?
Enjoyed teaching these lessons? Found a mistake?
Fill in a short form to give feedback on these resources.