Purpose: Last year, JMU introduced a service called JMUsury. The system was originally written in Java. The new version (designated version 1c) must be written in C++.
About the System: JMUsury allow students to save money for graduation.
The service offers three different kinds of accounts (none of which earn any interest):
Fixed Term Savings Account: An account that allows deposits at any time but withdrawals only upon graduation.
Savings Account: An account that allows deposits and withdrawals at any time.
Mixed Savings Account: An account that allows deposits at any time and withdrawals of only a portion of the balance. Specifically, whenever the balance gets above a predetermined limit, the "overage" is moved into an "unavailable balance" that can't be withdrawn from.
FixedTermSavings
account class has already
been implemented. The source code is available but
must not be modified.
FixedTermSavingsAccount ( Header , Implementation )
You must develop the following new components:
A Development Strategy: Even though this application is not very large, it will be easier to complete if you divide it into pieces. You should:
SavingsAccount
class.
SavingsAccount
class.
SavingsAccount
class.
MixedSavingsAccount
class.
MixedSavingsAccount
class.
MixedSavingsAccount
class.
Testing: At a minimum, you should test your code to make sure that it properly handles:
MixedTermSavingsAccount
objects that
increase the balance above the limit on available funds.
(Note: Make sure you test a sequence of deposits and withdrawals,
some of which increase the balance above the available limit
and some of which do not.)MixedSavingsAccount
constructor.
Things to Think About:
You should read and understand the FixedTermSavingsAccount
class. For example, make sure you understand:
Late Submission:For this assignment, if your code does not pass the in-lab tests you will have one opportunity to have your code re-tested during the Professor's office hours on the next class-day after the due date (e.g., the Monday immediately after the Friday due date). However, you will incur a penalty of 25% (i.e., you will receive a maximum grade of 75).
Copyright 2010