Question: Instructions: You are writing a program for a bank. As part of their authentication they ask their clients for the last four of their card

 Instructions: You are writing a program for a bank. As part

Instructions: You are writing a program for a bank. As part of their authentication they ask their clients for the last four of their card number. Users type in four digits. However, they might enter characters and/or symbols as part of their input. Work on part of the program that asks the user for the last four of their card number. Your program should then check to see if the user entered all digits or does it have any characters and/or symbols (non digits). - If the user input is all digits and is 1255 , display "Authenticated Successfully!". - If the user input contains values other than digits, display "Invalid Input! Do You Want to Try Again? If yes, repeat all previous steps. If not, display "Authentication Unsuccessful!" and end the program. - If the user input is all digits but a value other than 1255, display "The Four Digits Do Not Match! Do You Want to Try Again?". If yes, repeat all previous steps. If not, display "Authentication Failed!" and end the program. *Note: user input could be declared using a numeric or text data type (int or char)

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 Databases Questions!