Question: Hi, I could use some help answering this question. I want to have a finished version of this question so I can reference it as
Hi, I could use some help answering this question. I want to have a finished version of this question so I can reference it as I work on it so I know I'm doing it right. Thanks! Question is attached.

Download the file: library databasetxt The attached file is a simple library database that contains the members' information in the form: First name. Last name. Member it), and Telephone Number. The list is sorted by the last name and there are 100 entries in the file. Write a program that reads the data from the le and store it in an array of strucls (you can also use a vector of strucls}. Display the database asyou readfrom theie. The program allows the librarian to retrieve users' information based on the last name or member ID. Create a simple menu that allows the user to enter his choice. 0 In the case of the last name search choice. call a function that searches all members that match and displays them. Another function should be called for the ID search option. 0 If there is no match. a message saying so should be displayed. which search algorithm would you choose for each type? Why? Include your answer as a comment in the code. Note: passing an array of structures is similar to passing any other type of arrays
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
