Image of LOGO LOGO

Lesson 7: More parameters

     English   Deutsch   Français
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.

[_Home_] [_Introduction_] [_Java_Help_] [_Download_] [_Learn_Logo_] [_Program_] [_Teacher_] [_Contest_] [_Discussion_] [_Procedures_] [_Perspective_] [_About_]

©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.

Your browser does not support Java. Please read the text on the left side of this page about Java. If you work without Java you will have to use the HTML menu below this text.
[1_First_steps] [2_Turn_left_turn_rigth] [3_With_colors] [4_Procedures] [5_Parameters] [6_Loops] [7_More_parameters] [8_Stars] [9_Upload_and_Download] [10_LOGO_learns_to_write]

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.