Past-paper question · 2019 May-June · Paper 22 · Q1(c)

Question 1(c) 2019 · May-June · Paper 22 · 5 marks

Original past-paper question for 1(C)
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)

✓
Five from:

Question 5

✓
MP1
✓
Enter Buyer Number
✓
MP2
✓
Check if buyer number valid
✓
MP3
✓
Enter new bid
✓
MP4
✓
Check if new bid less than or equal to current highest bid
✓
MP5
✓
if so reject
✓
MP6
✓
Otherwise store the bid entered as new highest bid
✓
MP7
✓
Increase number of bids by one
✓
MP8
✓
Store Buyer Number
✓
Sample answer
✓
REPEAT
✓
PRINT "Enter Buyer Number"
✓
INPUT BuyerNumber
✓
UNTIL BuyerNumber >= BuyerLow and BuyerNumber <=
✓
BuyerHigh
✓
REPEAT
✓
PRINT "Enter Bid -99 to exit"
✓
INPUT Bid
✓
IF Bid > HighestBid(item)
✓
THEN
✓
HighestBid(item) ← Bid
✓
NumberBids(item) ← NumberBids(item) + 1
✓
ENDIF
✓
UNTIL Bid > HighestBid(item) OR Bid = -99
✓
IF Bid <> -99
✓
THEN
✓
BuyerItem(item) ← BuyerNumber
✓
ENDIF
✓
There are many possible correct answers, this is an example only.

Mark scheme 2210_s19_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

Write an algorithm for the part of Task 2 that allows the buyer to add a new bid, using

either pseudocode, programming statements or a flowchart. Assume that Task 1 has been completed and that the item details have already been found.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Keep practising this topic