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".

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter11: Introduction To Classes
Section11.3: Adding Class Functions
Problem 8E
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
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr