Question 6(a) 2017 · October-November · Paper 42 · 3 marks
Reveal official mark-scheme answer
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
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).
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()
Question 13
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
