Past-paper question · 2019 October-November · Paper 23 · Q1(c)

Question 1(c) 2019 · October-November · Paper 23 · 6 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)

✓
Six from:

Question 6

✓
MP1 Input for height and width of the wall to tile and tile code
✓
MP2 Prompts for all inputs seen
✓
MP3 Validation of height and width
✓
MP4 Reasonable attempt at validation of tile code
✓
MP5 Calculation of the area of the wall
✓
MP6 Calculation of the number of boxes rounded up
✓
MP7 Looking up the cost of the tiles
✓
MP8 Calculation of the cost of the boxes of the tiles
✓
MP9 Output of area of the wall, the number of boxes and cost of tiles
✓
needed
✓
MP10 Appropriate message(s) with output
✓
Example algorithm
✓
REPEAT
✓
OUTPUT "Please enter height of wall "
✓
INPUT Height
✓
UNTIL Height > 0
✓
REPEAT
✓
OUTPUT "Please enter width of wall "
✓
INPUT Width
✓
UNTIL Width > 0
✓
REPEAT
✓
Found ← FALSE
✓
Counter ← 0
✓
REPEAT
✓
OUTPUT "Please enter tile identification code "
✓
INPUT MyTileId
✓
IF MyTileId = TileCode(Counter)
✓
THEN
✓
MyCost ← TilePrice(Counter)
✓
Found ← TRUE
✓
ENDIF
✓
Counter ← Counter + 1
✓
UNTIL Found OR Counter = 10
✓
UNTIL Found
✓
Area ← Height * Width
✓
NoBoxes ← Int(Round (Area + 0.5))
✓
// Rounds up to nearest Integer
✓
TotalPrice ← NoBoxes * MyCost
✓
OUTPUT ("Area of wall is ", Area, " metres")
✓
OUTPUT ("Number of boxes of tiles is ", Area, " NoBoxes)
✓
OUTPUT ("Cost of Tiles is ", TotalPrice, " dollars"
✓
2210/23
✓
Cambridge O Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2019
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w19_ms_23.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

Write an algorithm for Task 1, using either pseudocode, programming statements or a

flowchart. Assume that the first part of Task 1, the storage and display of tile descriptions, prices per box and identification codes has already been done.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Question 5

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[6]

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

Keep practising this topic