Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You have been hired by Python Bank to develop a prototype for a new console interface. The interface can only be accessed by authorized users
You have been hired by Python Bank to develop a prototype for a new console interface. The interface can only be accessed by authorized users who have a userid and password. Your program will have 3 Python Lists: user IDs, passwords and available balances (see below). The lists will be already populated when the program starts. All three lists are in synchronization, so the index number of a user in userList must be used to locate the user's password and balance in the other lists. 1) Place a header with your name, date, and purpose of this program (summarize what the program is supposed to do; do not copy and paste the entire instructions) 2) Your program should display "Welcome to Python Bank" when accessed by a user. 3) The following are the requirements to verify user's credentials: a) prompt the user for user id b) use "input validation" to ensure the user id exists in the userList c) the program must display "Invalid User Id, please try again" until a valid user id is entered d) once the user id is validated, prompt the user for a password e) use "input validation" to ensure the password matches the user Id (remember to save the index number obtained from the user id list) f) the program must display "Invalid password, please try again" until a valid password is entered 4) Once the password is validated: g) prompt the user to select options d=Deposit, w=Withdrawal, b=Balance, or e-Exit h) use input validation to ensure that the user enters either "d", "w", or "b" i) the program must keep prompting the user until a correct option is entered j) if option is "d": prompt the user for an amount and update the balance list k) if option is "w": prompt the user for an amount and update the balance list 1) if option is "b": print the user balance m) otherwise, print an error message 5) the program must repeat steps g-m until the user enters "e" to exit the program 6) when the user exits P) prompt the user "Would you like to change your password? y: q) if user selects "y": r) prompt the user to Type a new password (3 characters): " s) use input validation to ensure the new password is exactly 3 characters long t) the program must display "Invalid password, please try again" until a valid password is entered u) update the pudList with the new password. v) display "Thank you! Good bye." 7) Place these Lists at the top of your program: userList = ('joe", "maria", "ahmed" ] pwdList = ["123", "234", "345"] balance = [1000, 2000, 3000]
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