In this assignment, a transfer method has been added to the ATM class of section 12.5:
public class ATM
/**
Transfers between the current account and the other account
of the same customer.
(Precondition: state is TRANSACT)
*/
public void transfer(double value)
{
. . .
back();
}
Your task is to change the command-line user interface of the ATMSimulator so that the menu
A=Deposit, B=Withdrawal, C=Cancel:
is replaced by
A=Deposit, B=Withdrawal, C=Transfer, D=Cancel:
Of course, you should now carry out the appropriate actions when the user selects options C or D.