CAPE Computer Science Unit 1 · 2016 · Paper 2 · Question 3(a)
A library processes customer records containing customer ID, number of overdue books, and fine rate category (P at 4.50/book, N at 6.50/book), terminated by ID 9999.
Write an algorithm to read the customer data and determine the total outstanding fines for each customer, the total fines paid under category N and under category P, the overall total fines paid, the total number of customers, and the customer ID with the highest fine paid (ignoring ties).
The mark scheme is shown once you've answered.
Practise this question