You will develop a Account Class for a Bank that will store your money and allow you to make deposits and withdrawals. D
Posted: Sat May 14, 2022 3:16 pm
You will develop a Account Class for a Bank that will store your money and allow you to make deposits and withdrawals.
Define an Account Class that has the following:
Make sure all variables are private - Instance and Class variables.
For the interest rate, use the table below. Be sure to adjust your annual rate when a deposit or withdrawal is made.
Main
Use the main method provided below to test your program is working correctly.
The main method does the following:
Again, use this main below to test your program.
A sample run is below.
ArrayList Extra Credit - 2 additional points on Exam 3
Add these 3 accounts to an ArrayList Object. Print all the acct information using the ArrayList.
Print out the list and use an Enhanced for loop here (for each loop) for this.
Finally print out the Total # of Accounts in the Bank (access this via your class method) and print out the total amount of funds/deposits that the Bank has. For example, if the 3 accounts each deposit $10,000 each, the Bank has $30,000.
Define an Account Class that has the following:
Make sure all variables are private - Instance and Class variables.
For the interest rate, use the table below. Be sure to adjust your annual rate when a deposit or withdrawal is made.
Main
Use the main method provided below to test your program is working correctly.
The main method does the following:
Again, use this main below to test your program.
A sample run is below.
ArrayList Extra Credit - 2 additional points on Exam 3
Add these 3 accounts to an ArrayList Object. Print all the acct information using the ArrayList.
Print out the list and use an Enhanced for loop here (for each loop) for this.
Finally print out the Total # of Accounts in the Bank (access this via your class method) and print out the total amount of funds/deposits that the Bank has. For example, if the 3 accounts each deposit $10,000 each, the Bank has $30,000.