Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Topics: Pseudocode, Branching, For and While Loops, Sequences, Basic I / OProblem description:Write a Python application to simulate a Password Storage and Management system. The
Topics: Pseudocode, Branching, For and While Loops, Sequences, Basic IOProblem description:Write a Python application to simulate a Password Storage and Management system. The purpose ofthis assignment is to gain experience in Pythons loop while and for structure, conditional structure,sequences, and basic IODesign solution:The program initially provides a menu to the user. The user can choose an operation by entering thenumber associated with that option as input. The three operations of the menu are explained below Add username and password to the database: The program asks the user to input a username andpassword. There are no specifications for the username. However, the password must consist of sixcharacters: two upper case letters, two lower case letters, and two digits, in any order. The passwordshould not contain any other characters special symbols, etc. at all. An example username can beJaneDoe and a password can be GraB The program will go on to check whether the passwordmeets these requirements or not. If successful, the program joins the username and password by a An example would look like JaneDoeGraB This string will then be appended to the globaldatabase list.Four lists, uppercaseletters list of all letters in upper caselowercaseletters list of all letters in lower casedigits list of all digitsdatabase list of usernamepassword stringswill be provided to you in the template. You can use these lists accordingly. If not successful, print theerror message providing the reason along with the number of upper and lowercase letters and digitsin the password entered by the user.Please note: All the usernames in the database list must be unique. So when the user provides theusername as input, please check that they are not giving a username already in the database list Displaying the list of passwords and usernames: On selecting this option, the program outputs allthe usernames and passwords present in the database at that time. You will have to split theusername and password from the usernamepassword string explicitly and print them separately.Please do not print the whole sequence type asis Update the password of an existing user: The program asks the user to input the username forwhich the password is to be updated from the database list. It then finds the particular usernamepassword string associated with the input username and updates the usernamepassword stringfrom the database list. Display an informational message once updated Exitterminate the program.If the user enters any other option, display a message stating that the option is invalid and a requestto try again.Notes: You need to write pseudocode to plan the program, and it needs to be submitted inside thetemplate file in the Pseudocode section of the header. Helpful Code and Hints:o For password checking, while loop video lecture in Module :simpleauthenticaltionsystem.py and extendedsimpleauthenticationsystem.pyo Menu program: while loop use case: simple calculator application in Module o Generic string and list operations: Video Lecture and in Module Hint: Howcan you split a string by a delimiter?o Accessing a list database: Review how to access each item in a list using a for loopo How to update a particular item in a list needed for option : Think aboutupdating an item by index.Sample IO: Sample IO is provided for your clear understanding. You need to use the format functionto properly display the information. Please note that the sample IO is only provided to clarify what isexpected from the program. You need to test your code on the given IO You may change thelanguageinterface but the program needs to display the information as shown:Example : Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Add username and password to the database Enter your username: janeDoeEnter your password Example: ABcd: MsoNPassword Accepted!Adding username and password janeDoeMsoN to the database Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Add username and password to the database Enter your username: MaryUsername Mary already in database! Choose to update. Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Displaying list of passwords and usernames Username Jake: Password ABabUsername Mary: Password BzrRUsername Bob: Password XyZiUsername Janet: Password NmhHUsername Henry: Password iKoOUsername janeDoe: Password MsoN Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Update password of an existing user Enter the username you would like to update the password: JakeEnter the new password: QjNpPassword updated for user: Jake Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Displaying list of passwords and usernames Username Jake: Password QjNpUsername Mary: Password BzrRUsername Bob: Password XyZiUsername Janet: Password NmhHUsername Henry: Password iKoOUsername janeDoe: Password MsoN Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Not a valid selection. Please try again. Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Example : Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option: Add username and password to the database Enter your username: PeterParkerEnter your password Example: ABcd: AntMaPassword RejectedNumber of uppercase letters lowercase letters digits Welcome to Password Storage and Management system Available options:: Add password: Display usernames and passwords: Update password by username: ExitEnter option:
Show me the code with output. For both example please
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started