1. What are the data needed for the solution of the program to produce the desired output?

Sagot :

Answer:

We need to do some operation on accounts so we will create a class named Account with properties 'interestRate' and 'type'. The class has a function 'getInterest' to calculate interest for a deposit in that account.

Explanation:

Hope it helps.