Question 1

Edexcel Computer Science June 2020 Paper 2GCSE7 marks

On the specification

(a)(i)
6.3 Data types and structures
(a)(ii)
6.1 Develop code
(a)(iii)
6.6 Subprograms
(b)
6.5 Operators
Question text

1 Arrivals and departures are controlled by computer programs. (a) Here is an example of a departure screen. International Departures 15:02 Departure Time Flight Number Destination Gate Number Flight Status 15:25 QF–0701 Manila 22 Final Call 15:25 BA–2184 London 64 Final Call 15:30 VS–8843 New York Delayed 15:30 LX–3005 Paris 4 Boarding 15:30 AA–0301 Amsterdam 41 Boarding 15:35 JL–4521 Tokyo 79 Est 18:00 15:40 AC–6074 Montreal Figure 1 (i) Identify two variables that are required to store the data about departures. (2) 1 2 (ii) Explain why it is important to use descriptive names in program code. (2) (iii) A programmer could use several built-in functions from a programming language library to implement the departure screen. State one built-in library function that could be used. (1) (b) The safe interval between landings is based on the plane type and weather conditions. The safe interval is at least 30 seconds. This is adjusted by a multiplier based on the plane type and then by adding a constant based on weather conditions. Construct a general expression to calculate the safe interval between plane landings. (2) (Total for Question 1 = 7 marks)