There might be red herrings, or there might not. Use the blocks you think you need.
A program has parallel arrays for pupil names and register classes. Write the part of the program that counts how many pupils are in class 5C1 and prints their names. It should also print a final count at the end.