Question 10
AQA Computer Science June 2025 Paper 1A (8525/1A)GCSE8 marks
On the specification
- 10.1
- 3.2 Programming
- 10.2
- 3.2 Programming
- 10.3
- 3.2 Programming
Question text
10 A programmer is writing an algorithm, using pseudo-code, to store the results of box running events. The programmer uses a record data structure. Each record stores: • the name of the running event • the runner’s number • the time in seconds for that runner in that event. Figure 10 shows the record structure. Figure 10 RECORD Runner event : String runnerNumber : Integer time : Real ENDRECORD 10.1 Figure 11 shows pseudo-code used to create two records using the structure in Figure 10. Figure 11 race1 Runner('400 m', 23, 51.35) race2 Runner('400 m', 14, 63.26) Complete the line of pseudo-code to create a new record that contains the following data: event runnerNumber time 200 m 10 32.59 [1 mark] race3 10.2 Complete the line of pseudo-code needed to output the time of race2 [1 mark] OUTPUT race2 10.3 The programmer wants to find the fastest time for a particular running event. box The times for all the runners in the event are stored in an array of real numbers called times Write a C# program to find the fastest time. Your program must: • find the smallest value in the array (ie the fastest time) • output the smallest value • work with any size of array. For example, if times contains 28.5, 26.3 and 30.0, the output should be 26.3 The program you write must not use any built-in routines to find the smallest value in an array or to sort the array into an order. You do not need to write code to create the array times You should use meaningful variable name(s) and C# syntax in your answer. The answer grid below contains vertical lines to help you indent your code. [6 marks]