Download presentation
1
Search for it on your computer
Start Logo Search for it on your computer
2
Basic Commands Enter these commands. FD 100 RT 90 A : Square
Tasks 1 & 2 Enter these commands. Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen FD 100 RT 90 A : Square Q : What does this draw? If you get it wrong type CS to clear the screen
3
Repeat Command Look at these commands again.
Task 3 Look at these commands again. The same instructions get repeated 4 times Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] FD 100 RT 90 1 2 3 4 We would only have to put them in once if we used a repeat command Try this… REPEAT 4 [ FD 100 RT 90 ] How many times to repeat What to repeat Try this… REPEAT 4 [ FD 100 RT 90 ]
4
More Basic Commands Enter these commands. FD 100 RT 60
FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] FD 100 RT 60 This Shape is not complete yet Q : What do you think it will be? Finish the shape by adding more instructions
5
Repeat Command Task 3 Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] See if you can create a repeat statement to create this new shape. The same instructions get repeated 4 times How many times to repeat What to repeat Hint REPEAT X [ What you want to repeat ] Answer REPEAT 6 [ FD 100 RT 60 ]
6
Procedures Tasks 4 & 5 Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] TO & END Rather than having to remember and type all of the commands in to draw a shape, you can program the computer using a Procedure. Procedures “Remember” what you did and will do it again when you ask. You have now created a procedure called Square that you can use again and again. Try this… To Square Repeat 4 [FD 100 RT 90] End Clear the screen (CS) and type Square to see it work again
7
Other Commands HOME PU = Pen Up PD = Pen Down PE = Pen Erase
(Moves the pen/turtle back to its starting position) PU = Pen Up (Lifts the pen off of the page so that lines will not be drawn) PD = Pen Down (Puts the pen back on of the page so that lines will be drawn) PE = Pen Erase (Turns the pen into an eraser that deletes anything it goes over) PPT = Pen Paint (Turns the eraser back into a pen that can draw again) SETPC 0-15 = Set Pen Colour (Changes the colour of the lines drawn) Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] TO & END PU = Pen Up PD = Pen Down PE = Pen Erase PPT = Pen Paint SETPC 0-15 HOME HT = Hide Turtle ST = Show Turtle
8
The Robot Now lets see what you can do! Task 6 Commands
Use LOGO commands to draw the following robot’s face. Task 6 Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] TO & END PU = Pen Up PD = Pen Down PE = Pen Erase PPT = Pen Paint SETPC 0-15 HOME HT = Hide Turtle ST = Show Turtle The numbers provided should help.
9
The Robot Now you have the commands, create a new procedure called ROBOT to draw it again. See if you can make your robot a little more realistic. Try changing the eyes to circles and the mouth to a smile! Create a new procedure called ROBOT2 to draw your new robot. Commands FD = Forward BK = Back RT = Right Turn LT = Left Turn CS = Clear Screen REPEAT X [ what ] TO & END PU = Pen Up PD = Pen Down PE = Pen Erase PPT = Pen Paint SETPC 0-15 HOME HT = Hide Turtle ST = Show Turtle
10
Shapes Created with Logo
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.