Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

use python only Write a program that allows the user to manage UPIs and passwords with a few simple operations: delete a UPI/password pair, add

image text in transcribed

use python only

Write a program that allows the user to manage UPIs and passwords with a few simple operations: delete a UPI/password pair, add a UPI/password pair. registered_upis = ["cron777", "emac263", "gclo456", "jcoc100", "jduj117", "Imes754", "mjacg99"] registered_password5 = ["SuiiiA1Nassr23", "PcqcNP2022", "WhatElse06", "Haton4414", "BlanqueTTe2006", "GoatWC2022", "thriLLer82"] The program prompts the user to enter "A" to add a new UPI/password pair or "D" to delete a UPI/password pair. You can assume the user will always enter either an "A" or a "D" at the prompt. If the user enters "A" then the program prompts the user to enter a new UPI. While the user enters a UPI that is already in the list of UPIs, the program prints "[new_upi] is already used!" and re-prompts them to enter a new UPI. Once the user enters a UPI that is not in the list, the program asks for the password, and inserts both at the end of the corresponding lists. If the user enters "D" then the program prompts the user to enter a UPI they want to delete from the list. While the user enters a UPI that is not in the list of UPIs, the program prints "[upi_to_delete] does not exist!" and reprompts them to enter a UPI they want to delete. Once the user enters a UPI that is in the list, the program asks for the corresponding password. While the password entered by the user does not match the password in the list that is at the same index as the UPI, the program prints the error message "The password does not match!" and asks for the password again. Once the user enters the password matching the UPI, the program deletes the UPI/password pair. Finally, the program prints the updated lists of UPIs and passwords. Some examples of the program running are shown below. Note: - The output must be in the format shown in the example, including the format of the prompt, and all spaces and punctuation

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions