There is more design problems than code problems to this one. To see a running exmaple, download this and extract all the files, then run it.
Your job is to create classes that simulate a bank. You will need classes to represent a transaction, a bank and an account. The bank will be doing most of the work. It will have to have methods to open two files, read in a bunch of account information and make a list of the accounts. It will also have to tread a file of transactions and store these into another list. It will then process the list of transactions and update the accounts as needed.
The format of the account data file is like this
1 kent 100.34 2 kate 1000.34 3 george 1.34The first column is the account number, the second is the one word long name of the account owner and the third is the starting balance.
The transactions look like this.
1 D 50.00 2 C 300.00 1 C 500.00Again the account numer is first, the second column is either D for debit or C for credit and the third is the amount.
You will need to provide overloaded << operators for the account and transaction classes. I want you to show the state of the accounts after the file is read and before the transactions are processed. Then show them again afterwards. You will need to use iterators to process the lists. The list of accounts and the list of transactions are filled while reading the files, but no updating of the accounts happens while the files are being read.
There are several reasonable solutions to this. Spend a lot of time thinking before you write. Don't wait for the weekend, start thinking now, code later.
You should turn in a listing of the program along with sample output. Staple the cover sheet to that.
Think about how you will do this so you can ask questions during lab.
ASK if you have any questions.
For 5 points extra, after the transaction processing is done, open the account file and write out the changed accounts. After this action, the file must be useable by your program again.