Question 6(b) 2017 · October-November · Paper 42 · 5 marks
Reveal official mark-scheme answer



Official answer for Question 6
Part (b)
Question 1
mark per bullet to max 5
Question 5
- Class heading and ending
- Identifying inheritance
- Declaring AccountNumber, Balance
- Use of private/protected for AccountNumber and Balance
- One Correct Get Method
- One Correct Set Method
- Second correct Get and Set Methods
Show text version of question
Question 6
Part (b)
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 (b)
Write program code to declare the Account class.
Programming language ............................................................................................................
Program code ...........................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...............................................................................................................................................[5]
Question 14
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
