Practice

Complete the Flowchart: Highest Mark

HARDFlowcharts
Complete the flowchart — fill in the dashed boxes. Checking turns it into pseudocode and runs the tests below.

The flowchart inputs the marks of 5 pupils and outputs the highest. Marks are between 0 and 100.

Fill in the two blank boxes inside the loop.

Sample Test Cases

Test 1: Highest fourth
Inputs: 45, 82, 67, 90, 12
Expected: 90
Test 2: Highest first
Inputs: 100, 3, 4, 5, 6
Expected: 100