Computer Science (AS & A Level) · May / June 2025 · Paper 21 · Question 2
9618
As printed in the paper
The question as text
A program is being developed to calculate the pay of employees working for a company. A function CalculateBonus() calculates bonus pay based on the value of sales. Bonus pay is calculated as shown in the table. Value of sales (in dollars) Bonus pay (in dollars) below 2000 0 between 2000 and 4000 inclusive 10 above 4000 100 A flowchart for the function CalculateBonus() has been designed. START END INPUT ValueOfSales Is ValueOfSales 4000 ? Set BonusPay to 0 Set BonusPay to 10 Set BonusPay RETURN BonusPay 100 to > Is ValueOfSales = 2000 ? > NO NO YES YES
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
2(a)(i)[1]
2(a)(ii)[1]
2(b)(i)[1]
2(b)(ii)[2]
2(b)(iii)[1]
2(c)[4]
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

