### Lesson 7: More parameters

Your browser does not support Java for the moment. In order to use this page we strongle suggest that you go to the "Java Help" page. Please choose "Java_Help" in the small menu below. It's possible to use our page without Java but then you will have to download a Logo interpreter from our "Download" page.

©1997/1998 Sebastian Golze, Thomas Hirsch und
Vinh Hoi Le Chau
. Please mail us if you had problems with our site os if you have any other suggestion.

In the last lesson you have drawn several polygons (that's the name for all closed figures with a certain number of edges, like triangles, squares, pentagons, hexagons, and so on). Now consider (maybe together with others) how you could draw such a figure with a variable number of edges. You will have to use the command repeat and variables which declare the number of edges and the length of the lines.

Here's a little hint: To calculate the angle that LOGO has to turn on each edge you will have to divide 360 (a full turn) by the number of edges. That's why LOGO always turns by 90 degrees, when we draw a square: 360 divided by 4 is 90. Remember that LOGO is able to calculate such things by himself.

Good luck...

Have you finished ? Then you merit standing ovations. If you haven't, replace the length of the lines by a second variable.

Now look what happens, when you start that procedure with 360 edges and a size of 1. Can you explain this ?

Wow ! That's been a lot of work now. But you will see in the next lesson that you can make really beautiful figures using LOGO. And it's not even hard to do.

lesson 6«------» lesson 8

Your browser does not support Java. With Java you would see here Logo sitting on his sheet of paper and the Logo interpreter. You have to activate Java or to use an external interpreter (which works exactly like this one) you can get at our "Download" section.