Year 8 – Lesson 3 – At a crossroads
This lesson introduces selection and randomness. These are two features that will allow learners to develop programs with a very diverse range of behaviours.
Learners will revisit some of the programs that they have encountered in previous lessons and extend them into more versatile programs that use selection. They will develop a simple number guessing game, which will eventually include randomness.
Learning objectives
- Use relational operators to form logical expressions
- Use binary selection (if, else statements) to control the flow of program execution
- Generate and use random integers
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.