Past-paper question · 2025 October-November · Paper 21 · Q4(a)

Question 4(a) 2025 · October-November · Paper 21 · 5 marks

Original past-paper question for 4(A)
Reveal official mark-scheme answer Official mark-scheme answer for 4(A)

Official answer for Question 4

Part (a)

✓
One mark per bullet point

Question 5

✓
•
✓
input of adult and child number
✓
•
✓
calculation of total without discount
✓
•
✓
check if total people are 6 or more
✓
•
✓
… apply discount to total
✓
•
✓
output of the total
✓
Example:
✓
OUTPUT "Please enter the number of adults "
✓
INPUT Adult
✓
OUTPUT "Please enter the number of children "
✓
INPUT Child
✓
Total (Adult * 9.99) + (Child * 6.99)
✓
IF (Adult + Child) >= 6
✓
THEN
✓
Total Total – (Total * 15/100)
✓
ENDIF
✓
OUTPUT "The total cost is ", Total

Mark scheme 0478_w25_ms_21.pdf →

Show text version of question

Question 4

Part (a)

A
restaurant offers a fixed priced menu. A meal for an adult costs $9.99 and a meal for a child

costs $6.99.

If there are 6 or more people at a table, a 15% discount is applied to the total cost of the order.

Write an algorithm in pseudocode to:

  • input the number of adults and the number of children at a table
  • calculate the total cost of the order with the discount, if this applies
  • output the final cost of the order.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

[5]
Topic relevance

Why this question appears here

99% assigned-topic match · Programming › Programming concepts

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 0478_w25_qp_21.pdf

Keep practising this topic