subject

Write a program that first reads from a user a set of usernames and passwords, and then enters a program that simulates a user typing in passwords.

in the first part of the program, you are to read in a single integer that states the number of username/password pairs that you will read in. following this, there will be a set of that many usernames, one per line. then there will be a set of that many passwords, one per line. you only need to prompt one time at the beginning of the program.

for example, the input might be:

3

john

jim

joe

secret_password

12345

g$a-4(zty

once that is read in, you should then repeatedly ask the person to type in a username and then password. if they have a valid username and password combination, then print a message that they are allowed into the system. if they have an incorrect username/password, then tell them (and allow them) to try again (repeatedly).

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 22:30
Provide an example of a project that combines the three principles of lean six sigma with business project management (bpm) and services oriented architecture (soa). identify the elements of the project that comply with each of three principles.
Answers: 1
question
Computers and Technology, 22.06.2019 06:00
What are the most likely causes of conflict at the meeting? check all that apply.
Answers: 1
question
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
question
Computers and Technology, 22.06.2019 18:00
Which of the following physical laws can make the flow of water seem more realistic? a. motion b. gravity c. fluid dynamics d. thermodynamics
Answers: 2
You know the right answer?
Write a program that first reads from a user a set of usernames and passwords, and then enters a pro...
Questions
question
Physics, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
History, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Geography, 10.09.2020 03:01
question
History, 10.09.2020 03:01
question
Chemistry, 10.09.2020 03:01
question
Biology, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Biology, 10.09.2020 03:01
question
Geography, 10.09.2020 03:01
question
World Languages, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Biology, 10.09.2020 03:01
question
Mathematics, 10.09.2020 03:01
question
Biology, 10.09.2020 03:01
Questions on the website: 13722360