Confidential Teaching Materials
Homework 4 Criteria, Page 10 of 11
[p11] 30 points
You have been hired by a bank to design a new system to keep track of all of their accounts. The
accounts should be stored in a linked list; each account has the following information associated
with it:
* Account Number
* Account Holder Name
* Account Holder Social Security Number
* Date opened
* Transaction list
The transaction list is a linked list of transactions for the account. Each transaction contains the
following information:
* Date
* Type (credit or debit)
* Amount
The bank desires the following functionality:
* Add a new account – reads in information about the new account from the user and adds the
account to the account linked list.
* Close an account – reads in an account number from the user, then deletes the given account
from the linked list of accounts.
* Add a transaction – given an account number and a transaction record, adds the transaction
to the account’s transaction list.
* Display account balance – displays the balance for an account number that the user enters.
* Display all accounts that are overdrawn – displays the account number and balance for all
accounts that have a balance less then zero.
Your job is to provide a design for these specifications. In your design, you should include all data
structures and module headers (including purpose comments) that the system will require. YOU
DO NOT HAVE TO WRITE ANY CODE FOR THE MODULES.
[c11] 30 points