Past-paper question · 2017 October-November · Paper 22 · Q1(c)

Question 1(c) 2017 · October-November · Paper 22 · 5 marks

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

Official answer for Question 1

Part (c)

✓
–
✓
any loop for 10 boats
✓
(1 mark)

Question 5

✓
Four from:
  • Initialisation
  • check HoursHired against MaxHoursHired «
✓
« store the BoatNumber
✓
« update MaxHoursHired if greater
  • check if HoursHired = 0 …
✓
… if so add 1 to NumberBoatsUnused
  • update daily totals (for hours and money)
  • output report with messages (including totals for hours and money, and number of boats unused and the most used
✓
boat).
✓
Example:
✓
MaxHoursHired Å 0
✓
TotalHoursHired Å 0
✓
TotalMoney Å 0
✓
NumberBoatsUnused Å 0
✓
FOR BoatNumber Å 1 to 10
✓
TotalMoney Å TotalMoney + Money(BoatNumber)
✓
TotalHoursHired Å TotalHoursHired + HoursHired(BoatNumber)
✓
IF HoursHired(BoatNumber) = 0
✓
THEN NumberBoatsUnused Å NumberBoatsUnused + 1
✓
ENDIF
✓
IF HoursHired(BoatNumber) > MaxHoursHired
✓
THEN
✓
MostUsed Å BoatNumber
✓
MaxHoursHired Å HoursHired(BoatNumber)
✓
ENDIF
✓
NEXT BoatNumber
✓
PRINT "Boats were hired for ", TotalHoursHired, " hours"
✓
PRINT "Total amount of money taken was ", TotalMoney
✓
PRINT NumberBoatsUnused, " boats were not used"
✓
Print "Boat number ", MostUsed, " was used most"
✓
2210/22
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w17_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

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

or a flowchart. You may assume Task 2 has been completed.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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_w17_qp_22.pdf

Keep practising this topic