Question: Task 0 2 : Problem P 5 . 9 from Book. Write a class called AutomaticTeller. You should have a single instance variable to store

Task02: Problem P5.9 from Book. Write a class called AutomaticTeller. You should have a
single instance variable to store the PIN number for this ATM as an int. (do NOT assume youre
your PIN is 1234 as stated in the problem in the book). Create a constructor to accept an initial value
for your instance variable. Create a method called validateUser() that accepts no parameters
and has no return value. This method should prompt the user for a PIN, and then function as described
in the book (you will do all user input of PIN attempts, and do all printing from this method for this
task). For your screenshot of output you should make sure to test all cases. (i.e. PIN attempt correct on
the first try, PIN attempt correct on 2nd try, etc ...).
Task 0 2 : Problem P 5 . 9 from Book. Write a

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!