Question 3
Edexcel Computer Science June 2019 Paper 2GCSE6 marks
On the specification
- (a)
- 1.2 Algorithms
- (b)
- 6.1 Develop code
Question text
3 Margaret needs to know when to open the ice cream kiosk. The pseudocode for an algorithm that determines opening times is shown. The values for month are 1 = January, 2 = February … 12 = December. The values for day are 1 = Monday, 2 = Tuesday … 7 = Sunday. (a) Complete the table to show the output of the pseudocode algorithm, based on the given inputs. (3) Input Output displayed month day 15 64 37 (b) The pseudocode algorithm needs to be tested. Construct test data to meet the requirements set out in the table. (3) Input Requirements month day A condition generating ‘12:00 to 20:00’ A condition generating ‘Month error’ A condition generating ‘Low season day error’ (Total for Question 3 = 6 marks)