This is a form-based problem — open it in the Form Designer, not the code judge. A non-visual ADO table (ADOTable1) is already on the form, along with a button (btnCount) and a memo (memResult). Write btnCount's OnClick handler so that it opens the Students table and counts how many learners passed (a mark of 50 or more) versus failed, displaying both counts in memResult.
No input/output in the console sense. Grading clicks btnCount once, then checks memResult.Text. Students.csv (Name,Mark): Thabo,78 Aisha,42 Liam,65 Zanele,35 Sipho,55 Format (two lines): Passed: <n> Failed: <n> Expected output: Passed: 3 Failed: 2
Provided data file
Students.csv
Name,Mark Thabo,78 Aisha,42 Liam,65 Zanele,35 Sipho,55
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