Note AcademyNote Academy

Computer Science (AS & A Level) · Oct / Nov 2024 · Paper 21 · Question 1

9618

As printed in the paper

The question as text

A program will calculate the tax payable based on the cost of an item. Calculations will occur at many places in the program and these involve the use of one of three tax rates. Tax rate values represent a percentage. For example, a tax rate value of 5.23 represents 5.23%. In this case, the tax payable on an item costing $100 would be $5.23. Tax rate values are used at several places within the program. One example is given in pseudocode as follows: HighRate ← FALSE CASE OF ItemCost <= 50 : TaxRate ← 3.75 // tax rate of 3.75% <= 200 : TaxRate ← 5.23 // tax rate of 5.23% > 200 : TaxRate ← 6.25 // tax rate of 6.25% HighRate ← TRUE ENDCASE TaxPayable ← ItemCost * TaxRate // tax payable

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme
  • 1(a)[2]

  • 1(b)(i)[1]

  • 1(b)(ii)[3]

  • 1(c)[2]

  • 1(d)[1]

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.