Shape 3: Compare two values and output the bigger one

Reworded for this page; the exact exam wording is on your printed sheet.

Flowchart the algorithm as a picture
Start Input bears Input hours bearpay = bears × 2 hourpay = hours × 5 bearpay > hourpay ? Yes Output bearpay No Output hourpay 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