Assignment Eight: File Operations

Part One

Extend your InterestBank class to read and write account information to a file. You should extend your (or my) InterestBank class with a new class called FileBank or something similar. You should not have to modify your InterestBank or your BankAccount or your InterestBearingBankAccount classes!

Add a method which writes out to a file all the information about the accounts in the Bank.

Add a method which reads in account information from a file and creates those accounts in the Bank.

Part Two

Test your code by creating a FileBank in main(), reading account information in from a file. Have main create a few more accounts, and then write them out to a file.

What to turn in

Print out and turn in the code and any test runs of your results from part two. Also turn in a print out of the file written by your Bank.

Turn these in at the beginning of class on 18 April, 2007.