Question 6

Edexcel Computer Science June 2020 Paper 2GCSE8 marks

On the specification

(a)
1.2 Algorithms
(b)
6.1 Develop code6.5 Operators
Question text

6 The airport uses a computer-controlled system to process luggage. (a) The programmers who designed the luggage system use a variety of methods to describe their algorithms. Explain why programmers use both flowcharts and pseudocode to represent the logic of their algorithms. (4) (b) Each passenger is allowed two items of luggage weighing no more than 46kg in total. Each item of luggage must weigh less than 30kg. Here is an algorithm to determine if the luggage weight allowance has been exceeded. Line 10 and line 12 cause logic errors. Identify the error in each line and give a correction for the errors. (4) Error Correction Line 10 Line 12 (Total for Question 6 = 8 marks)