HW #10 - Checking Account Class

Due Mon, Apr. 9 at 3:30 PM

Your assignment is to create two classes: Transaction and Checking. The Transaction class should include a constructor that takes the amount as a parameter, a destructor, and functions to get the amount and type (deposit or withdrawal) of the transaction. The Checking class should include a default constructor and a constructor that takes the opening balance as a parameter. Also include a destructor, inquiry functions to get the balance and a numbered transaction, and modification functions to deposit and withdraw money.

The private variables are up to you - you decide what's necessary to store.

Notice that since one of the Checking member functions gets a transaction with a certain number, the Checking class will have to contain some sort of list of Transactions.

Write a simple program to test your class. It should test all the functions but it doesn't need to be very user-friendly or useful.

Turn in hard copies of all your code and your sample output, and an electronic copy of your executable. Also, a design document is required for this assignment.

Back to Main Page