Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management Systems Designing And Building Business Applications

Authors: Gerald V. Post

1st Edition

0072898933, 978-0072898934

More Books

Students also viewed these Databases questions

Question

Are we managing our human capital as a strategic asset?

Answered: 1 week ago

Question

What is the purpose of the Salary Structure Table?

Answered: 1 week ago

Question

What is the scope and use of a Job Family Table?

Answered: 1 week ago