Science
What will you discover?

Programming A Screen Turtle

Year Four - Programming A Screen Turtle
Lesson One
1 / 19
next
Slide 1: Slide
ComputingPrimary Education

This lesson contains 19 slides, with interactive quizzes and text slides.

time-iconLesson duration is: 60 min

Items in this lesson

Year Four - Programming A Screen Turtle
Lesson One

Slide 1 - Slide

Look at the picture.

Magda and Faheem wanted to go to the shop, but they ended up at the ship.

Magda messaged her mum to ask for directions and they followed them exactly.

What went wrong?

A
The ship was closer, so they went there instead.
B
They didn't type the message to Mum accurately. By mistake, Magda wrote ship instead of shop.
C
They changed their minds about where they wanted to go while they were walking.
D
Faheem really like ships.

Slide 2 - Quiz

Today we are learning how to program a turtle using a text-based programming language called LOGO.






It is REALLY IMPORTANT to be accurate when we are programming!





Slide 3 - Slide

Today you will:
- Program a computer by typing commands
- Explain the effect of changing a value of a command 
- Create a code snippet for a given purpose

Good luck and have fun!

Slide 4 - Slide

Click here to go to the 'Turtle Playground!'
See if you can find everything in the picture above.
Hint.. The online version we are using looks a little bit different!
Hint 2.. Change the dimensions (at the top) to Width 500, Height 500.

Slide 5 - Slide

Watch the clip to see commands for moving your turtle forwards and backwards.

Slide 6 - Slide

Watch the clip to see commands for turning the turtle left and right!

Slide 7 - Slide

Basic commands in Logo
  • FD 100 - Forward 100 (moves forward 100 steps)
  • BK 100 (moves backwards 100 steps)
  • RT 90 (turns right 90 degrees)
  • LT 90 (turns left 90 degrees)
  • CS (clear screen)


You will notice that lots of logo commands need to have a number added after a space.
For example: FD 100
The number indicates how far to move or turn.

Slide 8 - Slide

Now it's your turn...

Open Turtle Playground (if you haven't already!)
  • What happens if you type...
… FD 100?
… FD 200?
… BK 50?
… RT 90?
… RT 180?
… CS?
  • How many Logo steps does it take to get to the top of your screen?
  • What happens if the turtle goes off the top of your Logo screen?
  • How many Logo steps does it take to get across your screen?

Slide 9 - Slide

Watch the clip to see how to program a longer sequence.

Slide 10 - Slide

Watch the clip to see what PU and PD do!

Slide 11 - Slide

Your turn again! 
Open Turtle Playground (if you haven't already!)

  • What happens if you type FD 100 RT 90 FD 100 all on one line?
  • What happens if you change the number of steps (marked with an X below)?
  • FD XX RT 90 FD XX
  • What happens if you make the number of degrees bigger (marked with an X below)?
  • FD 100 RT XX FD 100
  • What do you think these two new commands mean?
  • PU PD

Slide 12 - Slide

In Turtle Playground, what digit would the turtle draw if you typed the following code:
FD 200
LT 90
FD 100

A
8
B
9
C
7
D
3

Slide 13 - Quiz

Task - creating a code snippet
  • Choose another digit and write down the commands needed to create it - use paper and pencil first.






  • Use Logo to program the computer to draw the digit by following your commands.
  • Was what you wrote correct or did you have to make some changes?

Slide 14 - Slide


"I can program a computer by typing commands"


😒🙁😐🙂😃

Slide 15 - Poll


"I can explain the effect of changing a value of a command"


😒🙁😐🙂😃

Slide 16 - Poll


"I can create a code snippet for a given purpose"

😒🙁😐🙂😃

Slide 17 - Poll

Well Done!
In this lesson you...

Learnt the basic Logo commands and programmed the computer to draw lines of different lengths and with turns of different degrees.

Read code and predicted which digit would be drawn, and programmed the computer to draw your own digits.

Slide 18 - Slide

Next lesson you will...
Create and test an algorithm for a program that draws your initials.

Slide 19 - Slide