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

Question 6(c) 2017 · October-November · Paper 42 · 5 marks

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

Official answer for Question 6

Part (c)

Question 1

mark per bullet to max 5

Question 5

  • Class declaration and end
  • Declaration of inheritance
  • Amount and PaymentInterval as Private/protected with appropriate data types
✓
Constructor:
  • Override / Overriding in constructor
  • Constructor heading and end
  • «taking values as parameters
  • Constructor setting all values using base class
  • Initialisations of new attributes in the constructor
  • « all set to the parameters
✓
Example VB
✓
Class SavingsAccount
✓
Inherits Account
✓
Private Amount As Decimal
✓
Private PaymentInterval As Integer
✓
Public Overrides Sub New(ByVal AccountNumberValue As
✓
String, ByVal BalanceValue As Decimal, ByVal AmountValue As Decimal,
✓
ByVal PaymentValue As Integer)
✓
Amount = PaymentValue
✓
PaymentInterval = PaymentValue
✓
End Sub
✓
End Class
✓
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 (c)

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 (c)

Write program code to declare the SavingsAccount class. Do not write any get or set

methods.

Programming language ............................................................................................................

Program code ...........................................................................................................................

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

...............................................................................................................................................[5]

Question 15

Question 16

reasonable effort has been made by the publisher (UCLES) to trace copyright holders, but if any items requiring clearance have unwittingly been included, the publisher will be pleased to make amends at the earliest possible opportunity.

To avoid the issue of disclosure of answer-related information to candidates, all copyright acknowledgements are reproduced online in the Cambridge International Examinations Copyright Acknowledgements Booklet. This is produced for each series of examinations and is freely available to download at www.cie.org.uk after the live examination series.

Cambridge International Examinations is part of the Cambridge Assessment Group. Cambridge Assessment is the brand name of University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge.

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