Shape 6: Random numbers

Flowchart the algorithm as a picture
Start secret = random 1 to 100 guess = 0 guess ≠ secret ? Yes Input guess guess > secret ? Yes Output "Too high" No guess < secret ? Yes Output "Too low" No Output "Correct!" No Stop

Rounded box: start or stop · Rectangle: a process · Parallelogram: input or output · Diamond: a decision

Trace table run it by hand, one line at a time


        
Line by line each line, and why it is there
The same algorithm in OCR Exam Reference Language