Question 14
AQA Computer Science June 2019 Paper 1AS4 marks
On the specification
- 14.1
- 3.1 Fundamentals of programming
- 14.2
- 3.3 Systematic approach to problem solving
Question text
14 This question refers to the subroutine SelectMove. This subroutine makes three calls to the subroutine DisplayErrorCode to notify the user of errors. The error codes passed as parameters are to be made more informative for the user. What you need to do: Task 1 Modify the subroutine DisplayErrorCode so that meaningful error messages are displayed for each type of error explaining the circumstances which caused each error. The error code should also be displayed. Task 2 Test that the changes you have made work by conducting the following test: • run the program • enter Y • load game1.txt • enter the string a4 • enter the string a9 • enter 3 • enter 4 • enter a • enter 9 • enter 3 • enter 0 Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 14.1 Your PROGRAM SOURCE CODE for the entire subroutine DisplayErrorCode. [3 marks] 14.2 SCREEN CAPTURE(S) showing the requested test including the list of possible moves for Player A. [1 mark]