{"id":5253,"date":"2023-02-25T18:35:12","date_gmt":"2023-02-25T18:35:12","guid":{"rendered":"https:\/\/www.goodacademic.com\/blog\/questions\/contruction-6-dis\/"},"modified":"2023-02-25T18:35:12","modified_gmt":"2023-02-25T18:35:12","slug":"contruction-6-dis","status":"publish","type":"questions","link":"https:\/\/www.goodacademic.com\/blog\/questions\/contruction-6-dis\/","title":{"rendered":"Contruction &#8211; 6 Dis"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p><strong>Answer the following questions based on this scenario.<\/strong><\/p>\n<p><strong>Problem: Write a program that reads 10 username and password<\/strong> <strong>values into parallel arrays. After the arrays have been<\/strong> <strong>loaded, the program should behave like a login screen,<\/strong> <strong>prompting for a username and a password. Based on<\/strong> <strong>the data read and stored in the arrays, the program<\/strong> <strong>should respond appropriately with one of three output<\/strong> <strong>messages: \u201cUsername not found.\u201d, \u201cUsername and<\/strong> <strong>password does not match.\u201d or \u201cAccess granted.\u201d<\/strong><\/p>\n<p><strong>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;<\/strong><\/p>\n<p><strong>Question 2: Will your answer remain the same if the number of username and password values change to 40, and why?<\/strong><\/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\/5253"}],"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=5253"}],"version-history":[{"count":0,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/questions\/5253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/media?parent=5253"}],"wp:term":[{"taxonomy":"disciplines","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/disciplines?post=5253"},{"taxonomy":"paper_types","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/paper_types?post=5253"},{"taxonomy":"tagged","embeddable":true,"href":"https:\/\/www.goodacademic.com\/blog\/wp-json\/wp\/v2\/tagged?post=5253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}