Question 12

AQA Computer Science June 2024 Paper 1 (7517/1)A level6 marks

On the specification

12.1
3.1 Fundamentals of programming3.3 Systematic approach to problem solving
12.2
3.3 Systematic approach to problem solving
Question text

12 This question extends the Skeleton Program by tracking the user’s average score and highest score for the puzzle. After the user chooses not to do another puzzle, the program should display the user’s highest score achieved on the puzzle and the user’s average score. Your amended Skeleton Program should calculate the average and highest scores for any number of puzzle attempts. Example If the user: • gets a score of 30 when they complete a puzzle • decides to do another puzzle • gets a score of 20 for the second puzzle • decides not to do another puzzle the program should display messages saying that their highest score was 30 and their average score was 25 What you need to do Task 1 Modify the Main subroutine so that after the user decides not to attempt another puzzle their highest score for the puzzles attempted and their average score for the puzzles attempted are displayed. Task 2 Test that the changes you have made work: • run the Skeleton Program • load the file puzzle1 • enter 5 • enter 5 • enter X • enter Y • load the file puzzle1 • enter 1 • enter 4 • enter X • enter N Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 12.1 Your PROGRAM SOURCE CODE for the amended subroutine Main. [5 marks] 12.2 SCREEN CAPTURE(S) showing the requested test. [1 mark]