Question 9

Edexcel Computer Science June 2021 Paper 2GCSE9 marks

On the specification

1.2 Algorithms6.3 Data types and structures
Question text

9 The diving competitions at the gala will be scored by five judges. Each judge awards each dive a score between 0.0 and 10.0. The highest and lowest of the judges’ scores are discounted. The final score for a dive is calculated by multiplying the total of the three remaining judges’ scores by a degree of difficulty factor. Construct an algorithm to calculate the score for one dive. • Use pseudocode or a programming language with which you are familiar. • Assume inFactor holds the degree of difficulty factor for the dive. You may not need to use all of the answer space. Put a line through any work you do not want to be marked. (9) ARRAY scores SET scores TO [8.9, 9.1, 8.2, 7.8, 8.1] REAL inFactor