The focus of this lesson is to introduce learners to the concept of selection statements and how they can be used to control the flow of a program. The lesson starts with activities that allow the learners to understand expressions that evaluate to ‘true’ or ‘false’. This will be followed by a PRIMM activity using another version of the ‘Chat with Big Ed’ program from last lesson, this time using selection (If statements). The lesson will finish with a Parson’s Problem that requires the learners to rearrange code to form a working program.
- Define a condition as an expression that will be evaluated as either true or false
- Identify that selection uses conditions to control the flow of a sequence
- Identify where selection statements can be used in a program
- Modify a program to include selection