Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Practical Database Programming With Visual C# .NET

Authors: Ying Bai

1st Edition

0470467274, 978-0470467275

More Books

Students also viewed these Databases questions