Question
*In Java* **Code after creating the Checking class** -- The Bank class is going to be the driver of the program that will contain the
*In Java*
**Code after creating the Checking class**
-- The Bank class is going to be the driver of the program that will contain the main(). The Bank class has an instance variable - ArrayList of Checking. Please write the following code:
* A method initCheckingList() that takes an integer of c for creating c Checking objects (using the constructor in the Checking class) and store in the ArrayList instance variable.
- The account number starts from 201 and increment by 1, and the balance starts at $800 and increments by %800, for each account. You need to use a for loop to initialize the ArrayList in method.
* A method displayAllAccounts() that will display all of the account information in the ArrayList. For this you call the displayAccount() in the Checking class.
*A method findChecking() that will take an account number and return the index of that account in the ArrayList.
*A method addCheckingAccount() that will add a Checking account object to the ArrayList.
-- The program will allow the users to continually perform the operations until they chose to quit:
- Create a new Checking account with a balance from the user and the account number be continued from the last account number in the ArrayList. The new Checking account will be added to the ArrayList.
- Make a deposit on a Checking account based on the account number entered by the user. Updated account info will be displayed.
- Make a withdrawal on a Checking account with the account number that was entered by the user. Updated account info will be displayed.
- Display all of the account information
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