Question: This is for Java please follow the instructions 5. ATM Machine 1. Write a program called ATM.java that tests a user Input (PIN number) for
5. ATM Machine 1. Write a program called ATM.java that tests a user Input (PIN number) for ATM machine. . The Default PIN used (hard-coded) is : 12345 ENTER YOUR PIN: 98210 INCORRECT PIN. TRY AGAIN INCORRECT PIN. TRY AGAIN. ENTER YOUR PIN: 12345 PIN ACCEPTED. YOU NOW HAVE ACCESS TO YOUR ACCOUNT Notice what happens when we type the correct PIN on the first try: ENTER YOUR PIN: 12345 PIN ACCEPTED. YOU NOW HAVE ACCESS TO YOUR ACCOUNT 2. Now, modify the program above to count number of wrong attempts. You should lock the user out after three unsuccessful attempts. Hint: use a counter to count those false entries, and use compound condition using &8. THE BANK OF MICHELL. ENTER YOUR PIN: 101e1 INCORRECT PIN. TRY AGAIN. ENTER YOUR PIN:23232 INCORRECT PIN. TRY AGAIN ENTER YOUR PIN: 99999 OU HAVE RUN OUT OF TRIES, ACCOUNT LOCKED
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
