Question 14

AQA Computer Science June 2024 Paper 1 (7516/1)AS3 marks

On the specification

14.1
3.2 Fundamentals of data structures
14.2
3.2 Fundamentals of data structures
Question text

14 One of the statistics calculated is average queue length. This is calculated using the data structure Stats. 14.1 Describe how some of the values in Stats are used to calculate the average queue length in the subroutine OutputStats. [1 mark] 14.2 Describe how the relevant values in Stats are updated in the subroutine Serving to enable the calculation in the subroutine OutputStats to produce the correct result. [2 marks]