{"id":589,"date":"2023-02-06T03:02:11","date_gmt":"2023-02-06T03:02:11","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/construction-4-dis\/"},"modified":"2023-02-06T03:02:11","modified_gmt":"2023-02-06T03:02:11","slug":"construction-4-dis","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/construction-4-dis\/","title":{"rendered":"Construction -4 Dis"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Answer the following questions based on this scenario.<\/p>\n<p>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: \u201cUsername not found.\u201d, \u201cUsername and password does not match.\u201d or \u201cAccess granted.\u201d<\/p>\n<p>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?&nbsp; Explain why you would choose one over the other.&nbsp;&nbsp;<\/p>\n<p>Question 2: Will your answer remain the same if the number of username and password values change to 40, and why?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; 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 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":[],"disciplines":[211],"paper_types":[],"tagged":[],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/589"}],"collection":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions"}],"about":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/types\/questions"}],"author":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/comments?post=589"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/589\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=589"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=589"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=589"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=589"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}