Computer Science · Oct / Nov 2025 · Paper 21 · Question 4
0478
As printed in the paper
Show the answer and mark scheme
4(a)[5]
One mark per bullet point
input of adult and child numbercalculation of total without discountcheck if total people are 6 or more… apply discount to totaloutput of the totalExample:
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
4(b)[2]
One mark per bullet point
Correct use of ROUND… to 2 decimal placesExample
Total ← ROUND(Total, 2)
4(c)(i)[2]
One mark per bullet point
( NOT A OR B)AND C(X =) (NOT A OR B) AND C
4(c)(ii)[3]
A
B
X
C
One mark per correct gate
4(d)[2]
One mark for correct symbolOne mark for correctly completed tableA
B
X
0
0
1
0
1
1
1
0
1
1
1
0
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

