±«Óătv

Now playing video 1 of 4

How to write programs

Description

Complex programming is introduced using an example of a kangaroo that needs to have a drink without being eaten by a crocodile. The kangaroo needs to check that the crocodile is not near the water before she has a drink, and she needs more than one drink during the day. The kangaroo sequences steps that she needs to take to have a drink without the crocodile getting to her. She uses algorithms that include selection and a loop. Making sure that the steps are done in the correct order is important, and so is repeating the algorithm.

Classroom Ideas

Children could write a complex program to control traffic lights, a washing machine or a coffee machine using repeating, timing and IF commands. The IF commands might include: IF traffic light 1 is red , THEN traffic light 3 is green or IF the water is hot THEN add the washing powder.