Past-paper question · 2022 May-June · Paper 23 · Q1(d)

Question 1(d) 2022 · May-June · Paper 23 · 6 marks

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

Official answer for Question 1

Part (d)

✓
One mark per mark point, max six

Question 6

✓
MP1
✓
output all relevant input data using suitable variables for client name, meeting room choice, the booking day and
✓
the booking cost
✓
MP2
✓
attempt to provide appropriate messages to accompany given output
✓
MP3
✓
input with messages to confirm booking
✓
MP4
✓
conditional statement or WHILE to check for a positive confirmation input
✓
MP5
✓
attempt at generation of booking code
✓
MP6
✓
fully unique booking code generated
✓
MP7
✓
identification of meeting room using CASE or IF statements
✓
MP8
✓
storage of booking code in both meeting room and booking code arrays/lists
✓
MP9
✓
storage of client name and booking cost in appropriate arrays/lists
✓
Relevant parts of Task 2 for this question:
✓
output the booking details and cost of the booking
✓
take confirmation from client
✓
generate a unique booking code
✓
store the booking details.
✓
Assume the booking is for a single day and the requested booking day is available.
✓
Example answer
✓
//Assume variables representing the current index position for the client //related
✓
arrays, ClientIndex, and index for date related arrays, //DateIndex, have been used
✓
OUTPUT "Your name is ", ClientName, Meeting Room ", MeetingRoom,
✓
" starting on ", StartDay, " cost of booking ", BookingCost
✓
OUTPUT "Is this correct (Y or N)"
✓
INPUT Confirm
✓
IF Confirm = "Y"
✓
THEN
✓
BookingCode BookingCode + 1
✓
CASE OF MeetingRoom
✓
'Lg': MeetingLarge[DayIndex] BookingCode
✓
'S1': MeetingSmall1[DayIndex] BookingCode
✓
'S2': MeetingSmall2[DayIndex] BookingCode
✓
0478/23
✓
Cambridge IGCSE – Mark Scheme
✓
May/June 2022
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 0478_s22_ms_23.pdf →

Show text version of question

Question 1

Part (d)

Question 1

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

Part (d)

Write an algorithm to show how your program completes the following parts of Task 2:

  • output the booking details and cost of the booking
  • take confirmation from the client
  • generate a unique booking code
  • store the booking details.

Assume that Task 1 and the first part of Task 2 have been completed.

Assume that the booking is for a single day and that the requested booking day is available.

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 0478_s22_qp_23.pdf

Keep practising this topic