0% found this document useful (0 votes)
28 views2 pages

Logolab 1

This document provides an introduction to basic LOGO commands for moving a turtle around the screen and drawing shapes. It explains commands like forward, back, right, left, and clear graphics, as well as using abbreviations and repeats. Examples are given to practice drawing lines, shapes, letters, and more complex patterns using combinations of movement and repeat commands. Common errors are also discussed.

Uploaded by

Daniel Ajoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
28 views2 pages

Logolab 1

This document provides an introduction to basic LOGO commands for moving a turtle around the screen and drawing shapes. It explains commands like forward, back, right, left, and clear graphics, as well as using abbreviations and repeats. Examples are given to practice drawing lines, shapes, letters, and more complex patterns using combinations of movement and repeat commands. Common errors are also discussed.

Uploaded by

Daniel Ajoy
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

LOGO LESSON 1

GETTING FAMILIAR WITH COMMANDS

I. Forward, back, right, left, cleargraphics and abbreviations

A turtle appears in the center of the screen; a flashing square appears at the bottom of the screen (called a
cursor).

Now move the turtle move around the screen. After each line hit the enter key and see what the turtle does:
forward 50
right 45
forward 30
left 90
back 100
cg (an abbreviation for "clear graphics")

If you make a typo (type the wrong letters) the computer will give you an error message. Be sure to write
down any error message you get so we can talk about it later.

This table tells you some short cuts so you don't have to type an entire command each time you use it.

Command forward back right left cleargraphics


Abbreviation fd bk rt lt cg

Try these commands:


bk 50 rt 45 fd 70
rt 45 bk 50
What figure is drawn on the screen? ________________________

II. Problems

Clear the screen by typing cg.

(a) What happens to the turtle if you type fd 250? ____________________________________

_____________________________________________________________________________

(b) Clear the screen again (cg). Now type rt 30 fd 250. Describe the computer screen.

______________________________________________________________________________

(c) Draw a square on the screen. Write down the commands you used to get the square.

_____________________________________________________________________________

(d) Draw the letter H on the screen. Record the commands you used to get it:

_____________________________________________________________________________

_____________________________________________________________________________
III. penup, pendown, repeat

Suppose you wanted to draw an H and X on screen with a space in between the letters. You can accomplish
this by using the penup (pu for short) command. Type
fd 25
pu
fd 25
To get the turtle to draw again, type pendown (pd).
pd
fd 25

The last command to be introduced in this lesson is the most powerful. The repeat command will allow you
to produce beautiful patterns on screen with ease. Let's type in some examples to see what repeat can do.
First let's use repeat to draw a square
cg pd (we type pd to make sure the turtle will draw!)
repeat 4 [fd 50 rt 90]

After the word repeat came the number 4. What ever occurs inside the brackets [ ] will get repeated 4 times.
So 4 times the turtle went forward 50 and right 90.

Now try this:


repeat 6 [fd 40 rt 60]
This six sided figure is called a hexagon.
Draw the hexagon in the space on the right. _____________________

IV. Problems
(a) Repeat, penup and pendown can be used to draw a dashed line.

repeat 20 [fd 5 pu fd 5 pd]

Will the pen be up or down after this line is entered into the computer? (Test by telling the turtle to move

forward 50 and see if it draws a line). ____________

(b) Repeat can be used to make other regular pentagons; for example:
Example Try these; the angle may take some guessing.
repeat 3 [fd 50 rt 120] Octagon Pentagon
draws a Triangle

What did you type to get the octagon? _______________________________

What did you type to get the pentagon? ______________________________

If you get these figures, try to draw, a heptagon (seven sides), decagon and dodecagon.
Also, ask Mr. O'Roark for extra credit work.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy