Question: STEP 2 : Create update methodsOnce an employee object has been created, the employee may wish to update their name or password. Create a methods
STEP : Create update methodsOnce an employee object has been created, the employee may wish to update their name or password. Create a methods that will allow the user to update their login information and adheres to the following requirements:Allows users to change their first and last name to any valueUpdates the username automaticallyVerifies that the users knows their existing passwordChecks that the updated password still adheres to the following rules:random length between charactersat least uppercase letterat least lowercase letterat least number between Show the results of your code by calling each update function and printing the result. Ensure your program runs; results shown via comments will not be accepted.Example output this is provided as an example for testing, however, you're not required to accept input from the user for this step:Please select an option: Update Name username will be updated automatically Update Password ExitPlease enter your current password: testThat is incorrect.Please enter your current password: vForeRgPlease enter your new password: lhduqhiwHakndKatherine, your password has been updated.Username: KJohNew Password: lhduqhiwHaknd
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
