Slide 1 CS 1 with Robots Functions Institute for Personal Robots in Education (IPRE) Slide 2 Aug 29 2007 2 Functions A function is a piece of code you can use over and…