A primary school class codes a set of instructions to tell a robotic toy car to drive to a specific location on a town plan. They will use just three instructions – FORWARD, TURN 90 DEGREES RIGHT, TURN 90 DEGREES LEFT – to get the car to its destination without hitting any shops. They try it on the classroom floor first, then recreate the town plan on their computers using Logo. They write the series of instructions to tell the car what to do. They test their code, looking for problems that need to be debugged, before downloading it onto the toy car. The code has several errors in it, and needs to be debugged again, but finally they succeed in getting the car to the correct destination. Teacher notes: This could be used as an introduction to designing and writing simple programs for robots. Could also be used as an example of detecting and correcting errors in algorithms and programs.
All rights reserved © CBC/Radio-Canada 2013-2017 Privacy Policy | Terms of Use