Question 8

Edexcel Computer Science June 2021 Paper 2GCSE12 marks

On the specification

(a)
1.2 Algorithms
(b)
1.2 Algorithms
Question text

8 A swimming event at the gala consists of 3 heats, each with 6 swimmers. Heat winners and the 3 fastest losers from the heats qualify for the final. Heat_File is used to record the results of the heats. For each swimmer, the file stores: • swimmer number SN (1 – 18) • heat winner W (Y/N) • heat time T The file is sorted by heat time T in ascending order. (a) Complete the flowchart to illustrate the process of selecting the swimmers for the final. (6) This shape is used to represent input and output. START F_Count = Number of swimmers allocated to the final. F_Count = 0 T_Count = Number of fastest losers allocated to the final. T_Count = 0 Yes READ W = Y ADD SN to Final F_Count = F_Count +1 Heat_File No END (b) Crawdale Leisure Centre offers five membership schemes. The swimming gala is open to ‘full’ members and ‘swim only’ members. Each event has a limit of 18 entries. Draw a flowchart to represent the process of checking entries for an event. The flowchart should include an output to indicate if a member is not eligible to enter the event. Use this shape to represent input and output. You may not need to use all of the answer space. Put a line through any work you do not want to be marked. (6)