Question
JAVA PROGRAM : Bank Accounts: Using ArrayLists I need help with creating a CLEAR CHECK as shown in the choice menu. Please read Note 1-3
JAVA PROGRAM : Bank Accounts: Using ArrayLists
I need help with creating a CLEAR CHECK as shown in the choice menu. Please read Note 1-3 for specifications! This is a continuation of 2 programs, so for example this program is a continuation of program # 3 and program # 3 is a continuation of # 2, they're essentially the same programs however each program moving forward is adding upon it, in this case, we use ArrayList.
Here are the programs:
Program 2:
https://www.chegg.com/homework-help/questions-and-answers/hired-programmer-major-bank-first-project-small-banking-transaction-system-account-consist-q34844652?trackid=5RBrq5Bp
Program 3:
This program uses CONSTRUCTORS AND METHODS, however I found this answer to be missing a few things, please make any significant changes you see fit, however if whom this concerns to find difficulty, please go to the link below and complete Program 3 first, then altering it for ArrayList. Thank you.
https://www.chegg.com/homework-help/questions-and-answers/java-program-bank-accounts-using-classes-constructors-methods-hired-programmer-major-bank--q35500077?trackid=5RBrq5Bp
You have been hired as a programmer by a major bank. Your first project is a small banking transaction system. Each account consists of a number and a balance. The user of the program (the teller) can create a new account, as well as perform deposits, withdrawals, balance inquiries, close accounts, etc.(Note: Some additional features have been added for this assignment.)
For this assignment, you must use Classes and move functionality into the classes. Specifically, you should have at least the following classes:
1. A Bank class which consists of an ArrayList of Accounts currently active or closed.
2. An Account class which consists of a Depositor, an account number, an account type, account status (open or closed), account balance, an ArrayList of Transactions performed on the account. (Note: creating an account is considered a transaction.)
3. A Depositor class which has a Name and a social security number.
4. A Name class which consists of first and last names.
5. A DateInfo class which consists of year, month, and dayOfMonth data members.
6. A Transaction class which consists of a transaction type (e.g., create, deposit, withdrawal, balance, etc.), a transaction amount (where applicable), a transaction date, a success indicator, and if unsuccessful, areason for failure.
As before, you must implement appropriate methods in each class so as to implement the functionality required. New methods are to be added as necessary.
The data members of each class must be private. As such, you may need to provide accessor and mutator methods as necessary.
Remember, all I/O should be done only in the methods of the class that contains the main() method.
As in previous assignments, initially, the account information of existing customers is to be read into the database. (Note: the ArrayList of Accounts will grow dynamically as each account is created.) The program keeps tracks of the actual number of currently active accounts. A table of the initial database of active accounts should be printed.
As before, the program then allows the user to select from the following menu of transactions:
Select one of the following:
W - Withdrawal
D - Deposit
C - Clear Check
N - New account (NOTE: the ArrayList of Accounts will grow when you create a new Account)
B - Balance
I - Account Info (without transaction history) (NOTE: include at least one depositor who has multiple accounts)
H - Account Info plus Account Transaction History
S - Close Account (close (shut), but do not delete the account) (Note: no transactions are allowed on a closed account)
R - Reopen a closed account
X - Delete Account (close and delete the account from the database)) (NOTE: must have zero balance to delete)
Q - Quit
Note 1: The Clear Check transaction is only valid for checking accounts. It is like a withdrawal; except, you must also check the date of the check. You may only clear a check if the date on the check is no more than six months ago. No post-dated checks (checks with a future date) may be cleared. Use the DataeInfo class to implement this. In addition, a check will clear only if there is sufficient funds in the account. If the account lacks sufficient funds, the check will not clear and the account will be charged a $2.50 Service Fee for bouncing a check.
Note 2: CD accounts will now contain a Maturity Date. Deposits and Withdrawals will be allowed only on or after the maturity date. When a deposit or withdrawal is made, have the user select a new maturity date fro the CD. the choices are either 6, 12, 18, or 24 months from the date of the deposit or withdrawal. Again, use the DateInfo class to implement this.
Note 3. Use the Calendar class to assist you in implementing the DateInfo class.
Once the user has entered a selection, appropriate methods (in the class that contains the main() method) should be called to perform the specific transaction. These methods will call the class implemented methods as necessary. At the end, before the user quits, the program prints the contents of the final database.
As in previous assignments, make sure to use enough test cases so as to completely test program functionality. Make sure that there is at least one depositor that has multiple accounts at the bank.
Once the user has entered a selection, appropriate methods should be called to perform the specific transaction. At the end, before the user quits, the program prints the contents of the database. You should also print the transaction history for each account in the database.
As in previous assignments, make sure to use enough test cases so as to completely test program functionality
*If possible, please provide 1 test case and 1 sample output, that would be very appreciated!
-----------------------------------------------------------------------------------------------------------------------------
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started