Exercise 3 Write a program for a system that checks for user authentication. The user must provide a username and password for upto three attempts. The system must check if the username exists in the system. If it exists, display a "Welcome" message. If the username is wrong display the approriate message, "Incorrect username" and allow the user to try again. If the user attempts more than three times, exit the loop and display the message "Login attempted too many times. Please contact your administrator".

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter13: Handling Events
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question
9.
average = total/5
10 endwhile
11
print average, highest
Exercise 3
Write a program for a system that checks for user authentication. The user must provide a username and
password for upto three attempts. The system must check if the username exists in the system. If it exists,
display a "Welcome" message. If the username is wrong display the approriate message, "Incorrect
username" and allow the user to try again. If the user attempts more than three times, exit the loop and
display the message "Login attempted too many times. Please contact your administrator".
N.B: Assume the username and password are already pulled from external file as:
Username : "XXXX"
Password : 2018
Transcribed Image Text:9. average = total/5 10 endwhile 11 print average, highest Exercise 3 Write a program for a system that checks for user authentication. The user must provide a username and password for upto three attempts. The system must check if the username exists in the system. If it exists, display a "Welcome" message. If the username is wrong display the approriate message, "Incorrect username" and allow the user to try again. If the user attempts more than three times, exit the loop and display the message "Login attempted too many times. Please contact your administrator". N.B: Assume the username and password are already pulled from external file as: Username : "XXXX" Password : 2018
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Microsoft Visual C#
Microsoft Visual C#
Computer Science
ISBN:
9781337102100
Author:
Joyce, Farrell.
Publisher:
Cengage Learning,