9618/21/M/J/22 question 3: worked solution (May/June 2022, paper 21)

Show as plain text

Cambridge AS Level Computer Science 9618 · 9.1 Computational Thinking Skills Worked solution from the Algorithm Design and Problem-solving Paper 2 Problem-solving and Programming booklet, Part 1 of 2. Q2 9618/21/M/J/22 original Q3 Structured · 4 marks Worked solution (a) Write three different sub-problems the cinema program has to solve. Any three of these: Search for films : the user types a film name and the module finds the screening [1] Search for available seats on a screen for that film [1] Calculate the cost of a booking [1] Also accepted: book a given number of seats for a screening. (b) Write: a function (it returns a value; a procedure does not) [1] KEY IDEA Decomposition splits a big task into small modules; a function returns a value. TOTAL 4 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by CS BY AQIB KHAN. Tap the picture to open it on YouTube.