2. Write a Driver class that creates objects of type Account and add them in an ArrayList. The driver…

2. Write a Driver class that creates objects of type Account and add them in an ArrayList. The driver…

Question:

 

Transcribed Image Text:

2. Write a Driver class that creates objects of type Account and add them in an ArrayList. The driver class should create objects of Account type and call the object’s methods. Create a menu system for accessing different features. o Add account. o o o o Withdraw from individual account. o Financial Year ending o Exit. Create an ArrayList for different. Prompt the user to input account details and create Account object for 10 individual accounts and Add these Account objects to ArrayList. Display individual account. Display all accounts. Deposit to individual account For deposit/withdrawal, the user needs to input custID and amount. The program should be able to find the appropriate account within ArrayList and update the amount. At the end of the financial year, all account balances should be updated with interests defined in the account class. Save this class to AccountDriver.java.

Expert Answer:

Answer rating: 100% (QA)

Here s a Java Account class and a Driver class that implements the funct
View the full answer