Q#4: Write a program that will allow the user to input his/her name, user id, and password and perform following. 1. Show user details (Name, ID and Password) 2. Change User Password Write required functions to complete given requirements. Try to secure direct access of attributes, so no one can update them without methods. Note: User while updating user password, the system should ask for old password, match with existing password and only update if old password matches, otherwise print a message "INVALID ATTEMP" and allow re-entering password. After three invalid attempts, print a message "YOUR ACCOUNT IS IN RECOVERY MODE PLEASE CONTACT RECOVERY TEAM".

Microsoft Visual C#
7th Edition
ISBN:9781337102100
Author:Joyce, Farrell.
Publisher:Joyce, Farrell.
Chapter13: Handling Events
Section: Chapter Questions
Problem 5RQ
icon
Related questions
Question

Solve using OOP in Java.

Q#4: Write a program that will allow the user to input
his/her name, user id, and password and perform following.
1. Show user details (Name, ID and Password)
2. Change User Password
Write required functions to complete given requirements. Try to
secure direct access of attributes, so no one can update them
without methods.
Note: User while updating user password, the system should ask
for old password, match with existing password and only update
if old password matches, otherwise print a message "INVALID
ATTEMP" and allow re-entering password. After three invalid
attempts, print a message “YOUR ACCOUNT IS IN
RECOVERY MODE PLEASE CONTACT RECOVERY
TEAM".
Transcribed Image Text:Q#4: Write a program that will allow the user to input his/her name, user id, and password and perform following. 1. Show user details (Name, ID and Password) 2. Change User Password Write required functions to complete given requirements. Try to secure direct access of attributes, so no one can update them without methods. Note: User while updating user password, the system should ask for old password, match with existing password and only update if old password matches, otherwise print a message "INVALID ATTEMP" and allow re-entering password. After three invalid attempts, print a message “YOUR ACCOUNT IS IN RECOVERY MODE PLEASE CONTACT RECOVERY TEAM".
Expert Solution
steps

Step by step

Solved in 3 steps with 1 images

Blurred answer
Knowledge Booster
Binary numbers
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,