Past-paper question · 2016 October-November · Paper 22 · Q1(b)

Question 1(b) 2016 · October-November · Paper 22 · 5 marks

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

Official answer for Question 1

Part (b)

Part (b)

Any five from:

  • Prompt for input of charity choice // prompt for input of value of shopping
  • input charity choice
  • check for input of 1, 2, or 3
  • input value of shopping
  • calculate donation
  • add donation to the appropriate total
  • output name of charity and amount/total amount donated
[5]
✓
Sample Answer.
✓
REPEAT
✓
PRINT 'Please enter choice of charity 1, 2. or 3 '
✓
INPUT Choice
✓
UNTIL Choice = 1 or Choice = 2 or Choice = 3
✓
PRINT 'Please enter value of shopping bill '
✓
INPUT BillValue
✓
Donation BillValue * 0.01
✓
Total (Choice) Total (Choice) + Donation
✓
PRINT 'Charity ', CharityName (Choice), ' has received a donation
✓
of ', Donation
✓
Mark Scheme
✓
Syllabus
✓
Paper
✓
Cambridge O Level – October/November 2016
✓
2210

Question 22

Mark scheme 2210_w16_ms_22.pdf →

Show text version of question

Question 1

Part (b)

Part (b)

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

or a flowchart. You can assume that Task 1 has been completed.

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

[5]

Question 5

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

Keep practising this topic