Learn first
Programs follow precise instructions
A program is a set of instructions. A variable stores a value. A condition chooses between paths. A loop repeats steps. Output is the result produced.
How to work it out Trace one instruction at a time. Keep a record of values and check exactly when a condition or repeated step is evaluated.
A separate example In a separate trace, start with n = 2, add 3, then double n. The two instructions happen in order: 5 is an intermediate value before the final result.
IF checks a condition. In this pseudocode, IF points >= 5 THEN SHOW ready ELSE SHOW practice END runs exactly one branch. The symbol >= means greater than or equal to. SHOW only displays text.
Worked example
With points = 5, the condition points >= 5 is true, so ready is displayed. With points = 4 it is false, so practice is displayed. The equality case belongs in the true branch.