Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You are required to implement a simple telephone directory program using a linked list. Each telephone record should be composed of the name, surname, and

image text in transcribed

You are required to implement a simple telephone directory program using a linked list. Each telephone record should be composed of the name, surname, and telephone number. The program should display a main menu with the following options: 1. Add record 2. Delete record 3. Search 4. Display all records 5. Exit The telephone number should be unique. A telephone record should be deleted by asking the user to enter the telephone number of the record to delete. The search feature should be able to do the search using the three fields, i.e., either search by telephone, or search by name, or search by surname, or search by both the name and surname. When all the telephone records are displayed, they should be displayed in alphabetical order by name and surname. This can be done either by sorting the records before displaying them (not suggested) or else by inserting new data elements in the linked list in the correct alphabetic order immediately during the "add to linked list" function. The program should be robust and therefore should include data validation. The following list includes some of the data validation that is required: - Data fields cannot be left empty - Telephone numbers should be unique and made up of 8 digits only. - Searching and sorting should not be case sensitive You are required to implement a simple telephone directory program using a linked list. Each telephone record should be composed of the name, surname, and telephone number. The program should display a main menu with the following options: 1. Add record 2. Delete record 3. Search 4. Display all records 5. Exit The telephone number should be unique. A telephone record should be deleted by asking the user to enter the telephone number of the record to delete. The search feature should be able to do the search using the three fields, i.e., either search by telephone, or search by name, or search by surname, or search by both the name and surname. When all the telephone records are displayed, they should be displayed in alphabetical order by name and surname. This can be done either by sorting the records before displaying them (not suggested) or else by inserting new data elements in the linked list in the correct alphabetic order immediately during the "add to linked list" function. The program should be robust and therefore should include data validation. The following list includes some of the data validation that is required: - Data fields cannot be left empty - Telephone numbers should be unique and made up of 8 digits only. - Searching and sorting should not be case sensitive

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

Database Machine Performance Modeling Methodologies And Evaluation Strategies Lncs 257

Authors: Francesca Cesarini ,Silvio Salza

1st Edition

3540179429, 978-3540179429

More Books

Students also viewed these Databases questions

Question

A 300N F 30% d 2 m Answered: 1 week ago

Answered: 1 week ago