For this project, you are going to create a bank account with three types of accounts: Savings, Checking, and Retirement. Each customer will have all three accounts. You can transfer money between accounts. A fee will be charged for transferring money from your retirement account. If you have the account number of your friend, you should be able to transfer money from your account to your friend’s account. However, you will not be able to transfer money from your friend’s account to yours. After each transaction, your program should be able to print the status of your account. You program should have one method that will print the total number of each type of account.
You have to create a class Account with attributes: first name, last name, account id, and number of accounts.
Methods: deposit, withdraw, transfer, and show balance.
Classes: Savings, Checking, and Retirement with attributes: Interest, number of accounts, and number of monthly transactions.
Interface: Earning Interest with methods monthly (), quarterly (), and yearly () earnings. Each type of account should implement them.
Your program should throw an exception if you try to withdraw more money than your balance. Need to use arrays.