I have written a program that requires entering 3 first and last names and generates a file entitled, "ACL.txt" (Screenshot Below). Now I need a program that goes and searches the names I have typed in the "ACL.txt" file. For the program, the instructions are: A. First, read the names from the “ACL.txt” file. B. Next, create a loop to do the following: i. Query the user to enter a name. ii. Search the 3 names for the first and last name that the user entered. iii. If the user’s name is found in the “ACL.txt” file, 1. Display, “ACCESS GRANTED…! On the screen. iv. Else 1. Display “ACCESS DENIED…!” On the screen. v. Ask the user if he/she would like to search for another name in the “ACL.txt”. vi. If the user enters ‘Y’, 1. Go back to the top of the loop. vii. Else 1. Exit program
I have written a
Now I need a program that goes and searches the names I have typed in the "ACL.txt" file.
For the program, the instructions are:
A. First, read the names from the “ACL.txt” file.
B. Next, create a loop to do the following:
i. Query the user to enter a name.
ii. Search the 3 names for the first and last name that the user entered.
iii. If the user’s name is found in the “ACL.txt” file,
1. Display, “ACCESS GRANTED…! On the screen.
iv. Else
1. Display “ACCESS DENIED…!” On the screen.
v. Ask the user if he/she would like to search for another name in the “ACL.txt”.
vi. If the user enters ‘Y’,
1. Go back to the top of the loop.
vii. Else
1. Exit program.
Step by step
Solved in 4 steps with 4 images