Past-paper question · 2017 October-November · Paper 42 · Q6(a)

Question 6(a) 2017 · October-November · Paper 42 · 3 marks

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

Official answer for Question 6

Part (a)

Question 1

mark per bullet

Question 3

  • Inheritance correctly shown from CurrentAccount and SavingsAccount to Account
  • Level and cost methods, get and set functions in CurrentAccount
  • Get and set Amount and constructor in SavingsAccount
✓
Account
✓
AccountNumber: STRING
✓
Balance: CURRENCY
✓
GetAccountNumber()
✓
GetBalance()
✓
SetAccountNumber()
✓
SetBalance()
✓
CurrentAccount
✓
SavingsAccount
✓
Level: STRING
✓
PaymentInterval : INTEGER
✓
Cost: CURRENCY
✓
Amount : CURRENCY
✓
Constructor()
✓
Constructor()
✓
GetLevel()
✓
GetAmount()
✓
GetCost()
✓
SetAmount()
✓
SetLevel()
✓
GetPaymentInterval()
✓
SetCost()
✓
SetPaymentInverval()
✓
9608/42
✓
Cambridge International AS/A Level – Mark Scheme
✓
October/November
✓
PUBLISHED
✓
2017
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_w17_ms_42.pdf →

Show text version of question

Question 6

Part (a)

Question 6

A bank has a range of customer accounts, which includes current accounts and savings accounts.

All accounts have:

  • an account number
  • a balance (amount of money in an account).
A
current account has a level (bronze, silver or gold). A monthly fee ($) is taken from each account.

Savings account customers pay a regular amount ($) into their account. The payment interval is a number of weeks (for example, 4).

An object-oriented program will be written to process data about the accounts.

Part (a)

Complete the class diagram.

Account AccountNumber : STRING Balance : CURRENCY Constructor() GetAccountNumber() GetBalance() SetAccountNumber() SetBalance()

CurrentAccount SavingsAccount

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

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

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

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

Constructor() ..................................................................... .................................................................... ..................................................................... .................................................................... ..................................................................... .................................................................... ..................................................................... .................................................................... GetPaymentInterval() SetPaymentInterval()

[3]

Question 13

Topic relevance

Why this question appears here

98% assigned-topic match · Further programming › Programming paradigms

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

Keep practising this topic