Question: Hello i have a c programming homework coukd you help me In this homework, you wil implement a doubly linked list to maintain a list

Hello i have a c programming homework coukd you help me  Hello i have a c programming homework coukd you help me

In this homework, you wil implement a doubly linked list to maintain a list of phone directory entries. Organize your code in multiple .c files in a logical way. For example code related to linkedlist insertion/deletion can go in one file, mem/input operations can go in anotber ile, etc. You should have the appropriate header files, Submit a makefile with your code. First,define using typedef a structure called Directory Entry containing name and number members, both strings(char) .Your program will start by reading a binary file that you get from argv] which contains a list of Directory Entry records, and store them in a doubly linked list of DirectoryEntry structures Write a function called load to do this step. You have to maintain the linked list in alphabetical order of name. Note that initially the file may not exist (which means your directory is empty, and through the menu you will add ew entries, and when exiting you will save your list in the file with the given filename.) . Your program then will display a meu for the user as follows 1 Add Entry 2 Delete Entry 3 Search Entry 5 Print Phone Directory 6 Save and Exit Based on user input, you will have to read more information from the user. For example, if the user wants to add a new DirectoryEntry, you need to read the name and the number from the user, and add that entry into your linked list in sorted alphabetical order of name . To do each of the operations in the menu write a separate function. You should have at least the following functions You may add additional parameters to these functions if you wish. 1. void load(charfilename): Loads the binary file filename into the linkedlist. If filename does not exist, start with an empty linked list (nothing to load). 2. void addEntry(DirectoryEntry entry): Adds a new DirectoryEntry entry into the list. When adding a new entry, if the given name already exists in the list, update its number with the new one provided. 3. void searchEntry(char "name): Searches the list for the given name and displays the number associated with that entry if the name is found. If the name does not exist . void deleteEntry(char "name): Removes the entry with the specified name from . void print PhoneDirectory): Writes the contents of the Phone Directory to standard 6, void save AndExit): Writes the contents of the Phone Directory to the same data file in the list, print an appropriate message. the list, if found. If the name does not exist in the list, print an appropriate message output. This output should be in sorted alphabetical order of name. you used for loading entries initially In this homework, you wil implement a doubly linked list to maintain a list of phone directory entries. Organize your code in multiple .c files in a logical way. For example code related to linkedlist insertion/deletion can go in one file, mem/input operations can go in anotber ile, etc. You should have the appropriate header files, Submit a makefile with your code. First,define using typedef a structure called Directory Entry containing name and number members, both strings(char) .Your program will start by reading a binary file that you get from argv] which contains a list of Directory Entry records, and store them in a doubly linked list of DirectoryEntry structures Write a function called load to do this step. You have to maintain the linked list in alphabetical order of name. Note that initially the file may not exist (which means your directory is empty, and through the menu you will add ew entries, and when exiting you will save your list in the file with the given filename.) . Your program then will display a meu for the user as follows 1 Add Entry 2 Delete Entry 3 Search Entry 5 Print Phone Directory 6 Save and Exit Based on user input, you will have to read more information from the user. For example, if the user wants to add a new DirectoryEntry, you need to read the name and the number from the user, and add that entry into your linked list in sorted alphabetical order of name . To do each of the operations in the menu write a separate function. You should have at least the following functions You may add additional parameters to these functions if you wish. 1. void load(charfilename): Loads the binary file filename into the linkedlist. If filename does not exist, start with an empty linked list (nothing to load). 2. void addEntry(DirectoryEntry entry): Adds a new DirectoryEntry entry into the list. When adding a new entry, if the given name already exists in the list, update its number with the new one provided. 3. void searchEntry(char "name): Searches the list for the given name and displays the number associated with that entry if the name is found. If the name does not exist . void deleteEntry(char "name): Removes the entry with the specified name from . void print PhoneDirectory): Writes the contents of the Phone Directory to standard 6, void save AndExit): Writes the contents of the Phone Directory to the same data file in the list, print an appropriate message. the list, if found. If the name does not exist in the list, print an appropriate message output. This output should be in sorted alphabetical order of name. you used for loading entries initially

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!