You are to design a Java program to emulate the operations at an ATM. Use a random number generator to determine the arrival of a client and closure of the ATM.
For simplicity, use a random number generator to give the client his initial account balance after he arrives. A transaction menu is printed to allowed the client tochoose from deposit, withdrawal, and balance inquiry. After each transaction, a receipt is printed, showing the balances before and after and type and amount oftransaction. The client may order as many transactions as he wants until he decides to quit. Then the ATM is ready for the next client.
Error-checking for all kinds of input mistakes such as transaction choice, amount of transaction and insufficient fund for withdrawal is required.