Question: Write a program in JustBASIC that will allow the user to enter their PIN for the ATM machine. If you punch in the correct 4

Write a program in JustBASIC that will allow the user to enter their PIN for the ATM machine. If you punch in the correct 4-digit code.
Give a message if the code is correct: Your PIN is correct; how may I help you?. If the code is wrong, you should tell the user that
the code is wrong and how many tries they have remaining. The user should have 3 opportunities to enter their PIN successfully. If
they have not entered the correct PIN after 3 tries, you should tell them Please contact your bank for assistance. And then your
program should end. You will have to hard code the PIN in your code for testing. This means you will declare a variable and
initialize the variable to the value of the 4-digit code.

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!