How to calculate interest income based on account type?
You are writing a program that calculates interest income based on account type. If it is a saving account, 20% is added to the balance in the account. If it is a checking account, 5% more is added to the balance in the account. The program you are given should the balance of the savings and checking accounts and output the appropriate balance plus interest income Account class and SavingAcc & CheckingAcc classes inherited from it are already defined. Override getIncome() methods in the inherited classes to calculate and return the account balances, so that the given outputs work correctly.