Hi. This is an assignment I have and need some help with...any thoughts?
Do Not Fly List
Write a program to be used by TSA officials to bar people from flying if their name appears on the "Do Not Fly List". For the list, use the names given in the file at
http://www.mcs.csueastbay.edu/~tebo/Classes/2360/Sp14/names.txt.
Write a C++ program that reads the file into an array at startup. The program should then enter a loop that
asks the user for a name,
searches the array for a match,
prints a message indicating if the name was found or not,
asks the user if she wants to enter another name, and if so, repeats the loop, else exits it.
Submit only your source code (.cpp file) on Blackboard. (If for extra credit, use Binary Search (and a sort on file load).)
I know this requires fstream header and member functions...along with a user input validation sequence...I just don't know how to write a code to read the list, and check if the user entered name matches a name from the list as a whole?