Watch and follow the YouTube video, the lesson contains three parts:
Key Information and content - all you need to do here is watch and listen. We recommend you take some notes for this one!
Learning activity - You are to complete the activity, refining the program that already exists to add the new features described.
Consolidation - these are past exam question and are for deliberate practice to check your understanding.
Task - Refining Algorithms Activity
Task - Exam Questions - Deliberate Practice
Position = Position + 1 should be changed
...so the increment is a random number
The random number should be relatively small
...so the game remains interesting
The end condition of the loop should be changed to UNTIL Position > 100 / check if position > 100 and if so change to 100
...as the position may not reach exactly 100 due to the random number.
seed/initialise random number generation
...so that numbers generated appear random
Mark in pairs
Initialises total as 0 and prints out total at the end (as per original program)
Uses iteration e.g. FOR / WHILE
….that repeats 6 times
….correctly adds up values using the loop index