In these lessons the students will understand how coding is used in many forms of travel. They will understand how computers are coded to make decisions based on a set of criteria.
They will then build a traffic light system using the SAMs Labs.
They will start to develop their skills with Conditions.
Using the Chromebooks and Google Classroom, students create a collaborative document that lists different ways technology is used in travel. This is a shared document set up by the teacher. Watch the video opposite to see how to set this up in Google Classroom.
For example, at the supermarket if you have less than 5 items in your basket, you can use the express checkout, else you need to go in the longer queue.
See the example on the right.
An if statement tells us what to do if a condition is true.
An if-else statement tells us what to do if a condition is true and what to do if it's not.
A Condition is something we can check to tell if it's true or false.
A Conditional Statement gives an instruction to do something when certain conditions are true.
Example of some of the conditions the students could use
Example of Ideal Destination Conditions