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

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

✓
Any five from:

Question 5

✓
loop for number of senior citizens on the trip
✓
-
✓
input with prompts name and amount paid
✓
-
✓
store name and amount paid in appropriate place in arrays
✓
-
✓
total the amount paid
✓
-
✓
check if spare places are available
✓
-
✓
if spare place is required remove a spare place//fill spare places
✓
-
✓
add name(s) to list in appropriate place(s)
✓
-
✓
store names of two carers
✓
-
✓
If number of senior citizens > 24 store name of third carer
✓
-
✓
Example
✓
TotalPaid
✓
0
✓
FOR Counter
✓
1 TO NoSenCit
✓
PRINT "Please Enter Name"
✓
INPUT SenCitName[Counter]
✓
PRINT "Please Enter amount paid"
✓
INPUT SenCitAmount[Counter]
✓
TotalPaid
✓
TotalPaid + Amount
✓
NEXT Counter
✓
Extras
✓
TRUE
✓
WHILE NoSenCit < 36 and Extras
✓
PRINT "Do you want to add another person? Y/N"
✓
INPUT Answer
✓
IF Answer = "Y"
✓
THEN
✓
NoSenCit
✓
NoSenCit + 1
✓
PRINT "Please Enter Name"
✓
INPUT SenCitName[NoSenCit]
✓
ELSE Extras
✓
FALSE
✓
ENDIF
✓
ENDWHILE
✓
PRINT "Please Enter Name of First Carer"
✓
INPUT Carer1
✓
PRINT "Please Enter Name of Second Carer"
✓
INPUT Carer2
✓
IF NoSenCit > 24
✓
THEN
✓
PRINT "Please Enter Name of Third Carer"
✓
INPUT Carer3
✓
ENDIF

Mark scheme 2210_s17_ms_22.pdf →

Show text version of question

Question 1

Part (c)

Part (c)

Write an algorithm to complete Task 2, using either pseudocode, programming statements

or a flowchart. You can assume that Task 1 has been completed. You do not need to produce the list of people on the outing.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Keep practising this topic