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.
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.
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.
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.)
Define a procedure that nests polygons with a decreasing number of sides
inside each other (ie. a triangle inside a square inside a pentagon)