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 17:30
What is force? what are the types of force ? explain all with suitable examples
Answers: 1
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 23.06.2019 15:20
An ou structure in your domain has one ou per department, and all the computer and user accounts are in their respective ous. you have configured several gpos defining computer and user policies and linked the gpos to the domain. a group of managers in the marketing department need different policies that differ from those of the rest of the marketing department users and computers, but you don't want to change the top-level ou structure. which of the following gpo processing features are you most likely to use? a, block inheritance b, gpo enforcement c, wmi filtering d, loopback processing
Answers: 3
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
Mathematics, 16.11.2020 21:40
question
Mathematics, 16.11.2020 21:40
question
History, 16.11.2020 21:40
question
Chemistry, 16.11.2020 21:40
question
Computers and Technology, 16.11.2020 21:40
question
English, 16.11.2020 21:40
question
Mathematics, 16.11.2020 21:40