Lesson 5.12 · Answer it
Full array of times
4 marksYou mark it yourself against the marking points
A Java program keeps the finishing times of a race, in seconds, in an array made with int[] times = new int[10];. All 10 places hold a time. Then an 11th runner finishes.
(a) Explain why the program cannot store the 11th time by writing it to times[10]. [2]
(b) Explain what the program must do so that an array holds all 11 times. [2]
[4]