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

Question 1(c) 2022 · October-November · Paper 22 · 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

✓
input for day number or to choose accessible parking …
✓
MP1
✓
… both inputs with appropriate prompts
✓
MP2
✓
MP3
✓
conditional statement to check if accessible parking is required
✓
MP4
✓
initialisation of variable for the first accessible space
✓
MP5
✓
checking if current array element is an available space
✓
MP6
✓
correct loop to check all array elements for the day
✓
… until an available space is found (or not)
✓
MP7
✓
MP8
✓
input car licence number and name (with or without prompts)
✓
… and store them in the correct array position(s)
✓
MP9
✓
MP10
✓
appropriate output for space available or no space available
✓
MP11
✓
appropriate output for allocated parking space details
✓
Task 2 – adding accessible parking spaces
✓
The visitor car park booking system is to be re-designed to offer accessible parking. Spaces 1 to 5 are named accessible
✓
spaces. Spaces 6 to 20 are named general spaces.
✓
Extend your program in Task 1 so that:
  • when a visitor requests a parking space, they are additionally asked if they need an accessible space
  • if so, they are allocated the first available space beginning at space 1 and finishing at space 20
  • if not, they are allocated the first available space beginning at space 20 and finishing at space 6.
✓
The system must work so that visitors requiring accessible parking may be allocated any of the 20 spaces, but visitors who
✓
do not need accessible parking may only be allocated general spaces.
✓
Cambridge IGCSE – Mark Scheme
✓
0478/22
✓
October/November 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_w22_ms_22.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 to show how your program allocates a parking space if the visitor requires

accessible parking (part of Task 2), including all relevant input and output, using 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 0478_w22_qp_22.pdf

Keep practising this topic