Question 11

AQA Computer Science June 2018 Paper 1AS5 marks

On the specification

11.1
3.1 Fundamentals of programming
11.2
3.3 Systematic approach to problem solving
Question text

11 This question refers to the subroutine SendMorseCode. What you need to do: Task 1 Modify the subroutine SendMorseCode so that it checks each character of the input string entered by the user. If a character is not an uppercase letter or a space then the program should use the subroutine ReportError to output a suitable error message. The subroutine should then set MorseCodeString to the empty string and exit. Task 2 Test that the changes you have made work by conducting the following test: • run the program • choose option S • enter the string Help Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 11.1 Your amended PROGRAM SOURCE CODE for the subroutine SendMorseCode. [4 marks] 11.2 SCREEN CAPTURE(S) showing the requested test. [1 mark]