Past-paper question · 2021 May-June · Paper 43 · Q1(a)

Question 1(a) 2021 · May-June · Paper 43 · 5 marks

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

Official answer for Question 1

Part (a)

Question 1

mark for each completed space - accept any equivalent statements

Question 5

✓
Insert Coin
✓
Total the
✓
money
✓
inserted
✓
cancel
✓
Return
✓
Enter code
✓
money
✓
cancel
✓
Check
✓
Cancel
✓
code
✓
valid
✓
Code re-entered
✓
Valid code
✓
Insufficient
✓
Check
✓
Sufficient money
✓
total
✓
money
✓
Dispense
✓
inserted
✓
Item
✓
9608/43
✓
Cambridge International AS & A Level – Mark Scheme
✓
May/June 2021
✓
PUBLISHED
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s21_ms_43.pdf →

Show text version of question

Question 1

Part (a)

Question 1

A vending machine allows users to insert coins to purchase an item.

The user then enters the code for the item they would like the machine to dispense (give out). The user must re-enter the code until it is valid.

If the code is valid but the user has not inserted enough money for the item chosen, the machine waits for more coins to be inserted. The user then has to re-enter the code.

The user can press cancel at any time to return the money inserted into the machine.

Part (a)

The state-transition diagram shows the different states of the vending machine.

Complete the state-transition diagram.

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

Total the money Cancel inserted

Return .............................. money

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

Check Cancel code valid

Code re-entered Valid code

Check ................. ............. Sufficient money total inserted ................. .............

[5]

Question 3

Topic relevance

Why this question appears here

71% assigned-topic match · Programming › Constructs

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 9608_s21_qp_43.pdf

Keep practising this topic