Question: Using C++ programming. One Dimensional Array. ASSIGNMENT 7 The completed Assignment must be submitted via Blackboard. Document name must be: LastName-A7.??? Your code must be
ASSIGNMENT 7 The completed Assignment must be submitted via Blackboard. Document name must be: LastName-A7.??? Your code must be saved as C++ file. .The source code file must contain a file header formatted as specified below. The header information must . be complete and accurate. The source code file should use self-documenting code and additional comments (as required) to improve code readability. SOURCE FILE HEADER II School and semester info tf // Student Name : Josephine STUDENT (last name must be in caplitals) / Assignment Assignment // Submission Date: II Complier Info :The operating system and the compiler info /I Purpose Explain here what this program does and if there is any limitation and or constrain to consider // Definition of the Variables ONE DIMENSIONAL ARRAY | System Access Control. You will be developing program to ensure that unauthorized users cannot get into the system. Your program will check if the entered ACCESS CODE is in the prerecorded data file. Data file with 300 ACCESS CODE is provided in the attachment. Your program will access this sequential search algorithm. ACCESS CODE data file and search for a match. You would achieve this by establishing WHEN THE PROGRAM RUNS: Program will ask user to enter access code. "ENTER 4 DIGIT CODE: ". See screen shots bell It picks up user entered 4 digit number and access the data file and then search for a match . Then based on the search result, program ill give one of the three possible outputs; "Access Granted" "Not Matching. Try Again" or "Access Denied". See screen shots below. If there is a match, the program will provide a positive message: "Access Granted". And program shows "Welcome" and stops there. See screen shots below If the user's input is not matching with any of the numbers in the file, and then program will give another chance. "Not Matching. Try Again" User will be allowed to have only three attempts to get permission to enter the system. See screen shots below. If all three attempts fail, then program stops with "Access denied" message. And program show " Bye and stops there
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
