Question 13

AQA Computer Science November 2020 Paper 1 (7516/1)AS7 marks

On the specification

13.1
3.1 Fundamentals of programming3.2 Fundamentals of data structures
13.2
3.3 Systematic approach to problem solving
Question text

13 This question extends the functionality of the Skeleton Program. A mirror image is to be produced from the loaded image. For example, Figure 4 shows the image loaded from the ascii.txt data file. Figure 5 shows the mirror image. Figure 4 Figure 5 1 2 3 4 0 1 2 3 4 0 # # # @ @ 0 @ @ # # # 1 @ @ @ A A 1 A A @ @ @ 2 B B ! ! ! 2 ! ! ! B B What you need to do: Task 1 Write a new subroutine MirrorImage that produces a mirror image of the image loaded into Grid and stores it in a new data structure. The subroutine then displays the mirror image. Task 2 Amend subroutine DisplayMenu to include the new option: M – Mirror image Task 3 Amend subroutine Graphics to call MirrorImage when the user chooses option M Task 4 Test that the changes you have made work by conducting the following test: • run the program • enter L • load image1 • enter M Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 13.1 Your PROGRAM SOURCE CODE for the entire subroutines MirrorImage, DisplayMenu and Graphics [6 marks] 13.2 SCREEN CAPTURE(S) showing the requested test, including the menu and the display of the mirror image. [1 mark]