Control and the Environment

2Go (2Simple)

Online Modelling



Logo

Microsoft Windows Free Download of software program MSW Logo


Simple commands to get started
Forward= fd
Backward= bk
Right Turn= rt
Left Turn= lt

Clear Screen= cs (Drawings made by turtle)
Clear text= ct (Commands entered previously)

How to make a basic square?
It has four sides of equal length       (Start with 50 as your side length)
To turn the turtle the correct amount of degrees, I need to know the angle to turn the turtle?
360 divided by 4 = 90. This calculation works for most shapes except 7 as it is a recurring number.

fd 50 rt 90
fd 50 rt 90
fd 50 rt 90
fd 50 rt 90                         
This will make my square. It is long winded- but a good place to start with the pupils.

Using repeat cuts out the amount of commands needed to make a shape.

repeat 4 [fd 50 rt 90]
This will make the same square as above, with less commands.

Practice task 1)        
repeat 4 [fd x rt 90]  
x= any number. Change the number to create a varity of different sized squares. You could also change rt to lt.

Task 2)
 How to make a square by just typing the command square?

By using the edit feature you have much more opportunity to create interesting things which, can be built on later.

edit "xxxx                       
xxxx = the name of the shape you are creating. These could be square, square 1, square2, square3 etc if I wanted diferent sizes. Or to make it really clear square50- the number representing the length of the sides.

if you type edit "square100 in the command line a new box comes up.
after To square100, on a new line underneath type your command-

repeat 4 [fd 100 lt 90]
It is important that you click on, File, save and exit to close the edit window.
In the command line type:-

square100                                      
Logo will create a square based of the commands you entered in the edit box.
Task 3)
Create different sizes of squares using the (  edit "xxx  ) feature, making sure they are labelled clearly and spelt the same.

TIP:-Many of you get frustrated and want to prove me wrong. "Miss, it doesn't work, I've done it three times!" But they had not checked their spelling. They had saved it as sqare200 and then repeatedly typed square200 telling me it was spelt correctly, when typing into the command line. Which, was true but, they had not checked back to their saved edit " name which was spelt incorrectly. So make sure whatever name you use in the edit mode it is the same as you type in the command line.

Example:                               
edit "square200
after
To square200       type the repeat command
repeat 4 [fd 200 lt 90]
Use a search engine to "find commands for logo" see what you can find and create.
Explore pen up, pen down and different colours!