Question 11

AQA Computer Science June 2025 Paper 1 (7517/1)A level12 marks

On the specification

11.1
4.2 Fundamentals of data structures4.13 Systematic approach to problem solving
11.2
4.13 Systematic approach to problem solving
Question text

11 This question extends the Skeleton Program by telling the player all the values that appear more than once in the list of targets. Before displaying the current score, the program should display an additional list containing all the values that appear more than once in the list of targets. In this additional list, each value should only be displayed once. What you need to do Task 1 Create a new subroutine called DisplayTargetMultiples that will display all the values that appear more than once in the targets shown to the player. Task 2 Modify the DisplayState subroutine so that it calls the subroutine DisplayTargetMultiples immediately before the current score is displayed. Task 3 Test that the changes you have made work: • run the Skeleton Program • select the training game. Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 11.1 Your PROGRAM SOURCE CODE for the new subroutine DisplayTargetMultiples and the amended subroutine DisplayState. [11 marks] 11.2 SCREEN CAPTURE(S) showing the requested test. [1 mark]