A bank offers an Account to its customers. An Account is used to store, deposit, and withdraw funds, as well as apply interest. An Account earns 1% interest for the balance over $1000. The bank also offers a PremiumAccount which is the same as an Account except that the account earns 1.5% interest on the entire balance.
Do the following:
Continuing from Problem 2, we want to model the situation where a Person can have many accounts (any combination of Accounts and PremiumAccounts).
The Person class should have these methods:
Num Accounts: 3
bal = 2234.34
bal = 4523.29
bal = 45.62
Total Balance = 6803.25