Learner Averages (2D Array, Form Designer)

Grade 12

This is a form-based problem — open it in the Form Designer, not the code judge. A constant 2D array, Marks, holds three learners' scores across three tests. A button (btnCalculate) and a memo (memResult) are already on the form. Write btnCalculate's OnClick handler so that it works out each learner's average and displays one line per learner in memResult.

No input/output in the console sense. Grading clicks btnCalculate, then checks memResult.Text. Marks: array[1..3, 1..3] of Integer = ((85, 72, 90), (55, 60, 45), (95, 88, 92)) — row = learner, column = test. Format (one line per learner): 'Learner <n>: <average to 1 decimal>'. Expected output: Learner 1: 82.3 Learner 2: 53.3 Learner 3: 91.7

Learner Averages─ ▢ ✕
One average per learner:
Calculate

3 components · drag to move, corner handle to resize, Delete to remove

Object Inspector

Select a component on the form to edit its properties.

Palette

Pick a component, then click the form

Standard

Additional

Data

Non-visual