Question 13
AQA Computer Science June 2018 Paper 1AS7 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 will extend the program to output the letters of the alphabet and their corresponding Morse codes. What you need to do: Task 1 Create a new subroutine OutputAlphabetWithCode. This subroutine is to display each uppercase letter of the alphabet and its corresponding Morse code. The output is to be created using the data in Letter and MorseCode. The format of the output should be as shown in Figure 4. • Each uppercase letter is followed by a space and then its Morse code, grouped four to a line. • Each Morse code should be padded with trailing spaces to a width of 6 characters. Figure 4 A .- B -... C -.-. D -.. E . F ..-. G --. H I .. J .--- K -.- L .-.. M -- N -. O --- P .--. Q --.- R .-. S ... T - U ..- V ...- W .-- X -..- Y -.-- Z --.. Task 2 Amend the subroutines DisplayMenu and SendReceiveMessages so that the user can choose a new option A that will call OutputAlphabetWithCode. Task 3 • run the program • choose new option A Evidence that you need to provide Include the following evidence in your Electronic Answer Document. 13.1 Your PROGRAM SOURCE CODE for the subroutine OutputAlphabetWithCode. Your amended PROGRAM SOURCE CODE for the subroutines DisplayMenu and SendReceiveMessages. [6 marks] 13.2 SCREEN CAPTURE(S) showing the main menu and the output from the test run. [1 mark]