Question 2

Edexcel Computer Science June 2020 Paper 2GCSE6 marks

On the specification

(a)
6.2 Program constructs
(b)
1.2 Algorithms
(c)
6.1 Develop code
Question text

2 The long-stay parking at the airport uses a variable rate charging system. Here is the pseudocode for this algorithm. (a) State the programming construct demonstrated by lines 10 to 13 of the algorithm. (1) (b) Complete the table to show the output of the algorithm for the given inputs. (3) Input Output 10 1 7 (c) The algorithm needs to be tested more thoroughly. Complete the table to give suitable input test data to meet the requirements. (2) Requirement Input Test Data Output cost = 45 An output that is not correct (Total for Question 2 = 6 marks)