Implement read methods for the Bank and BankAccount classes. Write a sample program to read in a file with bank accounts, read a file for the transactions and perform these transactions on the concerned accounts
Implement read methods for the Bank and BankAccount classes. Write a sample program to read in a file with bank accounts, read a file for the transactions and perform these transactions on the concerned accounts
Implement read methods for the Bank and BankAccount classes. Write a sample program to read in a file with bank accounts, read a file for the transactions and perform these transactions on the concerned accounts
Exercise 1: Design a class Bank that contains a number of bank accounts. Each account has an account number and a current balance. Add an accountNumber field to the BankAccount class. Store the bank accounts in an array list. Write a readFile method of the Bank class for reading a file with the format accountNumber1, balance1 accountNumber2, balance2 … Write a readAndPerformTransactions method of the Bank class for reading a file that describes the transactions done by different bank accounts and perform these transactions. For example, 1234456742 withdraw 375 8686349535 deposit 850 1234456742 deposit 150 … Implement read methods for the Bank and BankAccount classes. Write a sample program to read in a file with bank accounts, read a file for the transactions and perform these transactions on the concerned accounts, print the details of the accounts after performing the transactions, and print the account with the highest balance.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.