Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed
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

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

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions