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

Question 1(c) 2022 · 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)

✓
One mark per mark point, max six

Question 6

✓
MP1
✓
initialise bill total to 10
✓
MP1
✓
check for additional windows
✓
… and add in amount to total if required
✓
MP2
✓
MP3
✓
check for 2 floors or 3 floors
✓
… multiply by 1.1 or 1.15 as required
✓
MP4
✓
MP5
✓
check for inside and multiply by 1.25 if required
✓
MP6
✓
check for polish and multiply by 1.05 if required
✓
MP7
✓
MP2 to MP7 completed in correct order
✓
MP8
✓
check for solar panels and add 20.00 if required
✓
Sample
✓
Total 10.00
✓
ExtraWindowsCost INT((NumberExtraWindows[Bill] –1) / 5) * 5.00
✓
Total Total + ExtraWindowsCost
✓
CASE NumberOfFloors[Bill] OF // check number of floors
✓
2 : Total Total * 1.1
✓
3 : Total Total * 1.15
✓
ENDCASE
✓
IF Inside[Bill] // check for cleaning inside windows
✓
THEN
✓
Total Total * 1.25
✓
ENDIF
✓
IF Polish[Bill] // check for polishing windows
✓
THEN
✓
Total Total * 1.05
✓
ENDIF
✓
IF Solar[Bill] // check for cleaning solar panels
✓
THEN
✓
Total Total + 20.00
✓
ENDIF
✓
Cambridge O Level – Mark Scheme
✓
2210/23
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_w22_ms_23.pdf →

Show text version of question

Question 1

Part (c)

Question 1

All variables, constants and other identifiers must have meaningful names.

Part (c)

Write an algorithm for the part of Task 2 that calculates the total cost of the bill.

Assume that the customer details and services required have already been input.

Use pseudocode, programming statements or a flowchart.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Keep practising this topic