Programming Assignment III - Due: Monday July 17, 2000
String Processing
You should be able to accomplish this assignment using a class with a main
method and possibly class methods.
You are in charge of giving customers information about their checking
account. When a customer comes to your site, you present them with several
choices.
[ ] 1. Display your balance
[ ] 2. Find the amount of the last check paid
[ ] 3. Find when a check was paid
[ ] 4. Display a list of all checks paid with amounts and dates
[ ] 5. Make a deposit
[ ] 6. Add a new check to be paid
[ ] 7. Create an account
[ ] 8. Change your information
[ ] 7. Exit
In order to accomplish this you will use three external files.
One file contains the name of the customer, their address, their phone
number, balance,the number of checks that have been posted to their
account, and
the number of deposits posted to their account. The information will be
delimited with semicolons.
One file contains the check numbers, amounts, and date paid for each
customer. The information will be delimited with semicolons.
One file contains the deposit numbers, amounts, and date posted for each
customer. The information will be delimited with semicolons.
For example,
The first file might contain the following.
Peter Dirichlet;Hanover Street, Germany;(334) 460-6390;$100.00;1;1
The second file might contain.
4;$10.02;6/9/2000
The third file might contain.
5;$100.00;6/5/2000
When a customer creates an account, you must get their name, address and
phone number, and an initial amount of deposit. You shouldn't include this
as a posted deposit.
When a customer adds a new check to be paid, you must get the check
number, the amount, and the date to be paid. Report an error if the
customer
tries to enter a check number that has already been paid or tries to give
a date after the current date.
When a customer makes a deposit, you must get the deposit number, the
amount, and the date to be posted. Report an error if the customer tries
to enter a deposit number that has already been recorded or tries to give
a date before the current date.
When displaying information, it should formatted as follows:
| Check Number |
Amount |
Date Paid |
| 4 |
10.02 |
06/09/2000 |
| Deposit Number |
Amount |
Date Paid |
| 5 |
$100.00 |
06/05/2000 |
When a customer selects an option they must give you their name. Report an
error if they enter a name that isn't in the first file.