Simon Fraser University
LOGO challenges

To really get a sense of what it was like for kids to use LOGO, you need to use it yourself and try to solve real problems with it. Below are four challenges for you to work on using what you learned from reading Mindstorms. Try to solve them using this free LOGO interpreter available on the web.

  1. Define a procedure called "ngon" that can draw a polygon with an arbitrary number of sides. It should take two parameters: the number of sides and the length of each side.
  2. Using ngon, define a procedure that makes a filled polygon. As an extra challenge you could look into the documentation and figure out how to make the "filling" different colors.
  3. Define a procedure that draws polygons with the same number of sides nested inside one another (e.g. a big pentagon with a smaller one inside it, a smaller one inside that, etc.)
  4. Define a procedure that nests polygons with a decreasing number of sides inside each other (ie. a triangle inside a square inside a pentagon)