Question 8

AQA Computer Science June 2018 Paper 1A level5 marks

On the specification

8.1
3.1 Fundamentals of programming3.3 Systematic approach to problem solving
8.2
3.3 Systematic approach to problem solving
Question text

8 This question refers to the subroutine Main. Currently each player starts with 15 letter tiles. In the Main subroutine StartHandSize is set to a value of 15. Change the subroutine Main so that the user can choose what the value for StartHandSize will be. Before the main menu is displayed and before the first iteration structure in Main the message "Enter start hand size: " should be displayed and the user's input should be stored in StartHandSize. This should happen repeatedly until the user enters a value for the start hand size that is between 1 and 20 inclusive. Test that the changes you have made work: • run the Skeleton Program • enter 0 when asked to enter the start hand size • enter 21 when asked to enter the start hand size • enter 5 when asked to enter the start hand size • enter 1 at the main menu. Evidence that you need to provide Include the following in your Electronic Answer Document. 8.1 Your PROGRAM SOURCE CODE for the amended subroutine Main. [4 marks] 8.2 SCREEN CAPTURE(S) showing the requested test. You must make sure that evidence for all parts of the requested test is provided in the SCREEN CAPTURE(S). [1 mark]