Write a java program that constructs a bank account, deposit $1,000, withdraws $500, withdraws another $400 and then print the remaining balance. Add a methord
void addInterest(double rate) to the BankAccount Class that adds interest at the given rate.