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, 22.06.2019 04:30
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
question
Computers and Technology, 23.06.2019 22:30
You draw two cards from a standard deck of 52 cards, but before you draw the second card, you put the first one back and reshuffle the deck. (a) are the outcomes on the two cards independent? why?
Answers: 3
question
Computers and Technology, 24.06.2019 10:20
Identify the publisher in this citation: carter,alan.a guide to entrepreneurship.new york: river’2008.print.
Answers: 3
question
Computers and Technology, 24.06.2019 12:00
Jack is assisting his younger sibling mary with her mathematics assignment, which includes a study of the number system. jack explains to mary that whole numbers are counting numbers that could be used to record the number of fruits in a basket. which data type represents whole numbers? a.integers.b.floating-point numbers. c.strings.d.boolean
Answers: 1
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
Spanish, 21.02.2021 02:30
question
English, 21.02.2021 02:40
question
Mathematics, 21.02.2021 02:40
Questions on the website: 13722360