Question: C++ Programming in structure and strings A library has a sorted list, sorted by last name, of its members in a file with the following

C++ Programming in structure and strings

A library has a sorted list, sorted by last name, of its members in a file with the following information for each member: First name, Last name, Member ID, and Telephone Number. The list contains 100 members. Write a program that reads the data from the file and store it in an array of structures.

File name: library_database.txt

Nola Given 554097 205-588-2540 David Glowacki 672020 579-619-2775 Elbert Gorman 867054 896-273-7996 Sheryl Gregorio 406150 629-726-4934 Racquel Hamiton 415884 229-481-9483 Alease Hamlin 604458 890-994-8622 Loralee Hargrove 366958 585-386-9775 Ruthann Harvell 345462 523-975-0893 Eliseo Hendershott 844053 790-162-9692 Danyel Hinson 813408 787-389-4715

The program should also have a function that allows a librarian to retrieve a users information based on his/her last name or member ID. So, the program should have a menu-driven user interface. In case of the last name search all members that match should be displayed. If no members match, a message saying so should be displayed.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!