Assignment One
If you haven't yet done so copy the BankAccount class into the src folder of your NetBeans class project. See BankAccount javadoc for a description of the BankAccount class. Do not change the BankAccount class. Create a new Java main class to:
Construct a BankAccount object named myAccount using some 1-7 digit number (in quotes) as the account number.
Use the BankAccount method deposit(..) to deposit 500.00 into myAccount.
Use the BankAccount method deposit(..) to deposit 200.50 into myAccount.
Use the BankAccount method withdraw(..) to withdraw 100.00 from myAccount.
Use the BankAccount method withdraw(..) to withdraw 250.89 from myAccount.
Display the balance of myAccount with System.out.println(...) using the getBalance() method of BankAccount.
Use the BankAccount method withdraw(..) to withdraw 99.99 from myAccount.
Display the information of myAccount with System.out.println(...) using the toString() method of BankAccount.
Assuming that the account is a savings account and earns 5% interest on the balance per year and the balance doesn't change for a year calculate and display the balance after a year. How much would the balance be in a month? How much would the balance be if the interest was calculated every month for a year?
This assignment is due on Wednesday January 21st at the beginning of class. At that time there will be a 10 minute quiz on the assignment.