Create two classes: Money and BankAccount.
Money class should have two instance variables amount and currency, plus a static double array to store exchange rates. Assume there are 6 currencies: USD, CND, AUD, EUR, RMB and JPY. Assume the static double array always stores the latest exchange rate for USD. See code base here . Please implement public Money add(Money m) and public Money subtract(Money m) methods.
BankAccount class should have the following instance variables.
String accountNumber; String firstName; String lastName; private Money balance;
Complete the BankAccount class by implementing the following:
All getters and setters
public void display()
public boolean withdraw(Money m)
public void deposit(Money m)