Lower KS3 Program solutions table
Levels 19-43
LKS3–S1 - Recap on using a simple ‘repeat’ loop
Apply the movement instructions and repeat loops to create a program
Debug the program
Create a challenge for a partner which involves a repeat loop
19. Repeating yourself is boring.
move forwards repeat |
20. Use the ‘repeat’ block to make your sequence shorter and simpler.
turn left turn right repeat |
21. Four leaf clover.
move forwards turn left turn right repeat |
LKS3–S2 - Loops with conditions
29. No need for numbers.
move forwards repeat until... at destination |
30. Can you do that again?
turn left turn right repeat until... at destination |
31. Practice makes perfect
move forwards turn left turn right repeat until... at destination |
32. Uh oh, it’s ‘until’ fever!
move forwards turn left turn right repeat until... at destination |
LKS3–S3 - If... only
Understand selection using the if... do... statement
Understand that you can use an if statement inside a repeat loop
Use this knowledge to create short, efficient programs to complete simple single routes
Note: Although else if is not introduced until Session 5, solutions using this statement will still get a full score.
33. Now it’s time to try the ‘if’ block.
move forwards repeat until... at destination if... do... |
34. Multiple 'ifs'
move forwards turn left repeat until... at destination if... do... |
35. Let's pull it all together
move forwards turn left turn right repeat until... at destination if... do... |
LKS3–S4 - General solution using repeat until and if... do
Understand selection using the if... do... statement
Understand that you can use an if statement inside a repeat loop
Understand the idea of a general solution, e.g. a program which works for any single road
Extension: use if... do... else if...
36. What else? ‘if-else’, that’s what!
move forwards turn left turn right repeat until... at destination if... do... Extension: if... do... else if... |
37. A bit longer.
move forwards turn left turn right repeat until... at destination if... do... Extension: if... do... else if... |
38. Where did the cows come from?
move forwards turn left turn right if cows... do sound horn sound horn repeat until... at destination if... do... Extension: if... do... else if... |
LKS3–S5 - Extension group activity
To understand why their general solution for a single route may not work on a complex route with junctions
To understand the if… do… else if… statement
To understand that the order of the if statements in your program makes a difference
39. Dead ends!
move forwards turn around turn right if cows... do sound horn sound horn is dead end repeat until... at destination if... do... else if... |
40. Adjust your previous solution.
move forwards turn left turn right repeat until... at destination if... do...else if... |
41. Decision time.
move forwards turn left turn right repeat until... at destination if... do...else if... |
42. What do you think this time?
move forwards turn left turn right repeat |
43. Good work! What else can you do?
move forwards turn left turn right repeat if... do... else if... |
Last updated