0% found this document useful (0 votes)
9 views

Week 9 - Algorithm to code

Uploaded by

Ali Papila
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views

Week 9 - Algorithm to code

Uploaded by

Ali Papila
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 8

Algorithm to code

Year 5 - Week 9
Things to do
1. Login to the computers
2. Sign in to Google Classroom
3. Open Week 8 Lesson
4. Do the Entrance ticket
5. You have 3 minutes to do the entrance ticket
6. If you finish before others
a. THINK - What do you think we will learn today
Lesson Objectives

To relate that a conditional statement connects a condition to


an outcome

Success Criteria
● I can use selection in an infinite loop to check a condition
● I can identify the condition and outcomes in an ‘if… then…
else…’ statement
● I can create a program that uses selection to produce different
outcomes
Rules for the lesson

● Don’t change sprite, unless you are instructed to


● Don’t add backgrounds
● Don’t be worry about making mistakes
● Experiment and try new things
● If something doesn’t work, change things and try
again
● Rules for help - Explain, Direct, Be patient
Entrance Ticket

Create a Scratch program by following these instructions

1. Delete Cat Sprite


2. Add new sprite and choose Crab sprite
3. Make the crab move 10 steps, forever, when the green flag
pressed.
4. Add another sprite of your choice
5. Make the new sprite move 20 steps when space key is pressed
on the keyboard
Algorithm to code
When green flag pressed
forever
if Key A pressed then
Move 20 steps

else
Turn Right 15 degrees
Creating a simple game
Click on Crab sprite and the following
Add yellow ball sprite instructions

Touching Ball

Go to x:-186 y :-86

Say “You Won”


Plenary - Check each others finished games

Does it have two sprites?


Crab and ball

Does the crab keep turning?

Is the ball standing in the


right position?

Does it say “You Won”,


when crab touches the ball?

Does the crab go to right


position, when it touches
the ball?

You might also like