08.16.10 - 12.12.10
Introduction to Java Programming
Monday Wednesday
04:00 PM - 05:20 PM
Comments placed in each source code file. | 5 pts |
Files put into JAR format and made executable. | 5 pts |
Application source and class files included. | 5 pts |
Program compiles and executes without errors | 5 pts |
User can open accounts | 10 pts |
Checking and Savings classes created and used | 10 pts |
Deposit works correctly | 20 pts |
Withdraw works correctly | 20 pts |
View works correctly | 10 pts |
Input error checking performed | 10 pts |
Total | 100 pts |
Write a java application that will allow a user to open up to 5 checking or savings accounts and them allow them to view, deposit or withdraw from any of the opened accounts. 5 is the total number of account that can be opened. The 5 can be any combination of checking and savings account.
Classes - The programs classes should be based on the BankAccount class we wrote in class. You should then create two child classes of BankAccount called CheckingAccount and SavingAccount. The CheckingAccount class should contain a data member for account fees and the SavingAccount class should have a data member for interest rate. Both classes should override the toString method in BankAccount to print out all data members for each class. The fees for CheckingAccounts and the interest rate for SavingsAccounts are fixed numbers that do not need to be calculated in any way.
The application - You application should display the following menu:
1. Open Account
2. View Account
3. Deposit to account
4. Withdraw from account
5. Exit
Menu Description:
1. The open account option should allow the user to create up to 5 accounts of the SavingAccount or CheckingAccount types. It is up to the user to decide.
2. The view account option should allow the user to view information about any of the opened accounts.
3. and 4. The deposit and withdraw options should allow the user to deposit money in, or withdraw money from any open account.
5. Terminate the application
All appropriate error checking should be performed on the users actions.