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, 23.06.2019 22:00
Technician a says engine assemblies can be mounted longitudinally in a chassis. technician b says engine assemblies can be mounted transversely in a chassis. who is correct?
Answers: 2
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 09:00
Why might you chose to crest a function resume
Answers: 1
question
Computers and Technology, 25.06.2019 00:30
How do i take a screenshot on a laptop?
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
Engineering, 18.10.2020 15:01
question
Mathematics, 18.10.2020 15:01
question
Physics, 18.10.2020 15:01
question
Chemistry, 18.10.2020 15:01
question
English, 18.10.2020 15:01
question
Mathematics, 18.10.2020 15:01
Questions on the website: 13722363