Past-paper question · 2017 May-June · Paper 21 · Q1(b)

Question 1(b) 2017 · May-June · Paper 21 · 5 marks

Original past-paper question for 1(B)
Original past-paper question for 1(B)
Original past-paper question for 1(B)
Reveal official mark-scheme answer Official mark-scheme answer for 1(B)

Official answer for Question 1

Part (b)

✓
Any five from:

Question 5

✓
Initialise values for both coach and ticket
✓
-
✓
Prompt for number of students taking part and input of number
✓
-
✓
Attempt at validation
✓
-
✓
Working validation for the entry for the number of students covering
✓
-
✓
both ends of the range
✓
Working out the number of free ticket(s)
✓
-
✓
Calculation of total cost of tickets including consideration of free tickets
✓
-
✓
Calculation of actual cost per student including coach
✓
-
✓
Output of cost to be charged with suitable annotation
✓
-
✓
Example
✓
Coach
✓
550
✓
Ticket

Question 30

✓
PRINT "Please enter the number of students taking part "
✓
INPUT NumberOfStudents
✓
WHILE NumberOfStudents <= 0 OR NumberOfStudent > 45
✓
PRINT "Your number of students is out of range, please
✓
try again"
✓
INPUT NumberOfStudents
✓
ENDWHILE
✓
FreeTickets
✓
NumberOfStudents DIV 10
✓
TotalCostTickets
✓
(NumberOfStudents – FreeTickets) *
✓
Ticket
✓
CostPerStudent
✓
(Coach + TotalCostTickets) /
✓
NumberOfStudents
✓
PRINT "The cost to be charged to each student is $",
✓
CostPerStudent
✓
2210/21
✓
Cambridge O Level – Mark Scheme
✓
May/June 2017
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s17_ms_21.pdf →

Show text version of question

Question 1

Part (b)

Part (b)

Write an algorithm to complete Task 1, using either pseudocode, programming statements

or a flowchart.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...............................................................................................................................................[5]

Question 6

Topic relevance

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 2210_s17_qp_21.pdf

Keep practising this topic