Write a program that reads username and password values


Discussion Post

Answer the following questions based on this scenario.

Write a program that reads 10 username and password values into parallel arrays. After the arrays have been loaded, the program should behave like a login screen, prompting for a username and a password. Based on the data read and stored in the arrays, the program should respond appropriately with one of three output messages: "Username not found.", "Username and password does not match." or "Access granted."

• Would you write this program asking a user to enter the usernames and passwords or would you use a file that contains all the username and passwords as input? Explain why you would choose one over the other.

• Will your answer remain the same if the number of username and password values change to 40, and why?

The response must include a reference list. One-inch margins, double-space, Using Times New Roman 12 pnt font and APA style of writing and citations.

Request for Solution File

Ask an Expert for Answer!!
Programming Languages: Write a program that reads username and password values
Reference No:- TGS03163999

Expected delivery within 24 Hours