Upload
winfred-bradley
View
217
Download
0
Embed Size (px)
DESCRIPTION
H OW T O I NSTALL L OGO Go to the MSW Logo website: Then press, ‘Setup Kit’. Then press ‘download’ Now the installing is done.
Citation preview
LOGOFor the beginner
Made by Rio Narazaki
WHAT IS LOGO?Logo is a computer programming
language used in Education.
Logo is very easy to use.
The word ‘Logo’ came form Greek and it actually means, ‘word’.
HOW TO INSTALL LOGOGo to the MSW Logo website:
http://www.softronix.com/logo.html
Then press, ‘Setup Kit’.
Then press ‘download’
Now the installing is done.
WHAT IS THE TURTLE?Turtle is the best known feature of
Logo.
It was originally a robot moving around on the ground, controlled by the controller.
BASIC COMMANDSForward <number> moves forward.e.g. forward 100.Left <number> turns left.e.g. left 90.Right <number> turns right.e.g. right 90.PenUp puts the pen up.
PenDown puts the pen down.
DRAWING A SQUARE
forward 100 right 90 forward 100 right 90 forward 100 right 90 forward 100
This is the instruction to
draw a square.
PROCEDURE/SUBROUTINE Procedure or subroutine is a code in a
program to do a specific task.
LEARNING ABOUT VARIABLES Variable is something you can change. For example:To Square REPEAT 4 [FD 100 RT 90]End
To make a square by using this, you will have to type in:
To Square :LengthREPEAT 4 [FD :Length RT 90]End
These can be changed
MORE COMMANDSSetPenColor <number>e.g. SetPenColor 5.CleanClears the turtle’s drawing area.HomeMoves the turtle back to the centre of the drawing area.
EXAMPLE USING SETPENCOLOR
forward 100 setpencolor 5 right 72 forward 100 setpencolor 14 right 72 forward 100 setpencolor 3 right 72 forward 100 setpencolor 2 right 72 forward 100
By moving the turtle right 72
degrees 5 times, it will make a
pentagon like in the picture.
DRAW A SQUARE WITH REPEAT
repeat 4 [forward 100 right 90]
The turtle repeated going forward 100 and
right 90 for 4 times. This made a square.
DRAW A CIRCLE
repeat 360 [forward 1 right 1]
By repeating going forward 1 and right 1 for 360 times, a circle will
be made.
PROCEDURESPress ‘edall’, then type in:to squarerepeat 4 [forward 100 right 90]endThen save and exit.When you just type in ‘square’, the square will be automatically made.
Press this button to Edall.