Session 4 - Different types of loops
To look at different types of loops: counted loops (
repeat
a number of times) and indeterminate loops (repeat until
andrepeat while
)
Lesson guide
Introduction (10 mins)
Introduce level 29 on the IWB and ask pupils what they think
repeat-until
will do; point out theat destination
block if necessaryAsk a volunteer to test this out with this simple route. Solution:
3. Do this again with level 30
4. Show video about repeat until
and repeat while
Mini Review (5 mins)
Ask the pupils to discuss with their partner the difference between
repeat until at destination
andrepeat
a number of times – write this as a question on the IWBAsk pupils what answer they came to
Paired Activity (25 mins)
Pupils complete levels 29 - 32 in pairs
Pupils who finish can do a random level in the 29 – 32 set. (Click quit, open the 29-32 set, then click random level)
Hand out copies of the worksheet
Demonstrate how the grid should be filled in (pupils often do not use the grid squares) but do not show any part of the solution
Ask pupils to draw the route where repeat until at destination would work
Pupils discuss the activity in pairs
Draw a solution on the IWB and ask who had a different answer. Is there more than one correct answer? Why?
Pupils should hand in their solutions to the teacher
If pupils finish these activities before the end of the session, allow them to do random levels in the Loops with Conditions section.
Share and Review (10 mins)
• Explain that next time you are going to look at Loops with conditions.
• What did pupils find difficult?
• How did they solve their problems?
• Recap on the keywords
Last updated