Page 1 - Class 4 Computer Synopsis (LOGO Procedure)
P. 1
BIRLA DIVYA JYOTI Class and Sec:
Subject: Computer Ch: 10 Internet
Synopsis and Worksheet 1 Of 1 __IV/___
Name: Roll No:
1. In LOGO, a procedure is a set of commands given to perform a particular task.
2. Each procedure is assigned a particular name.
3. It can be executed by typing the assigned name in the command input box.
4. A procedure is divided into 3 parts:
a) TITLE LINE: It allows you to give a name to the procedure. It always starts with the word To.
b) BODY: It contains all the primitives for drawing a desired figure. (The Commands)
c) END LINE: It contains the word, 'End', which conveys to the computer that primitives in the
procedure are over.
CREATING A PROCEDURE:
1. Click in the command input box and type TO followed by the procedure name. (it can be any name) and
press enter key
2. Another box known as TO MODE input box will appear. Where we have to enter primitives one by one and
press enter after every primitive.
3. When all the primitives have been entered type END and press the enter key. A message saying <Procedure
name> defined.
4. Your procedure is ready now just type the procedure name and press enter and the turtle will draw
according to the procedures given.
For example, to make a square we have to enter the following primitives
FD 100
RT 90
FD 100
RT 90
FD 100
RT 90
FD 100
RT 90
So, we will make a procedure called SQUARE
In the command input box, we will write:
TO SQUARE and press enter key.
Then we will get the TO MODE BOX where we will write the 1 Primitive and then press ENTER key
st
FD 100 (Press enter) the text in the box will disappear when you will press enter then we have to
give the next primitive i.e. RT 90 (Press enter) the text in the box will again disappear when you will press
enter then we have to give the next primitive i.e. FD 100 and then press enter till all the primitives has been
given. After giving all the primitives we have to give the command END, this will inform the LOGO that all
the commands have been given and then the TO MODE box will disappear too. Now just type SQUARE in the
command input box the logo will draw a square.