Question 4(b) 2023 · October-November · Paper 23 · 5 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (b)
Question 5
- use of loop for check
- checking for whole number
- checking for number greater than or equal to one
- … and less than or equal to six
- Appropriate error/reinput message
- ability to reinput value
Show text version of question
Question 4
Part (b)
Question 4
A programmer is writing a data entry program for booking theatre seats.
The programmer needs the program to accept only whole numbers that are greater than or equal to one and less than or equal to six.
Part (b)
Complete this pseudocode to perform your two validation checks, using your answers given
in (a):
OUTPUT "Please enter the number of seats you want to book "
INPUT Seats
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Why this question appears here
98% assigned-topic match · Algorithm design and problem-solving
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_w23_qp_23.pdf
