Answered step by step
Verified Expert Solution
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
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
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started