Answer the following questions based on this scenario. Problem: Write a program that reads 10 username and password values into parallel arrays. After the arrays have been loaded, the progra
Answer the following questions based on this scenario.
Problem: 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.”
Question 1: 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.
Question 2: Will your answer remain the same if the number of username and password values change to 40, and why?
Collepals.com Plagiarism Free Papers
Are you looking for custom essay writing service or even dissertation writing services? Just request for our write my paper service, and we'll match you with the best essay writer in your subject! With an exceptional team of professional academic experts in a wide range of subjects, we can guarantee you an unrivaled quality of custom-written papers.
Get ZERO PLAGIARISM, HUMAN WRITTEN ESSAYS
Why Hire Collepals.com writers to do your paper?
Quality- We are experienced and have access to ample research materials.
We write plagiarism Free Content
Confidential- We never share or sell your personal information to third parties.
Support-Chat with us today! We are always waiting to answer all your questions.
