Question: Hello, I have a C Programming Homework.I need solutions Could you fix this. In this homework, we wil implement a doubly linked list to maintain
Hello, I have a C Programming Homework.I need solutions Could you fix this. In this homework, we wil implement a doubly linked list to maintain a list of books. Requirements: * Implement a doubly linked list in a le called doublyLinkedList.c * In a separate le, say bookList.c, rst de ne using typedef a structure called Book containing the title, author, price data members. The author's type has to be a structure called Author containing rstname and lastname members. Price is a oating point number. * Your program will start by reading a binary le that you get from argv[1] which contains a list of book records, and store them in a doubly linked list of book structures. Write a function called load to do this step. The le may or may not be ordered, but you have to maintain the linked list in alphabetical order of Author lastname. * Your program then will display a menu for the user as follows: 1 Add Book 2 Delete Book 3 Search by Author 4 Search by Title 5 Print Booklist 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 book, you need to read title, author rstname, author lastname and price from the user, and add that entry into your linked list in sorted alphabetical order of author lastname. * 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(char * lename): Loads the binary le lename into the linkedlist. 2. void addBook(Book aBook): Adds a new book aBook into the list. When adding a new book, if the given book title already exists in the list, print an appropriate message and do not insert the new book. 3. void searchByTitle(char *booktitle): Searches the book list for the given booktitle and displays the title, author and price of that book if found. If the book does not exist in the list, print an appropriate message. 4. void searchByAuthor(Author anAuthor): Searches the book list for the given anAuthor and displays the title, author and price of all books by that author. If no such book exists in the list, print an appropriate message. 5. void removeBook(char *booktitle): Removes the book with the speci ed booktitle from the list, if found. If the book does not exist in the list, print an appropriate message. 6. void printList(): Writes the contents of the book list to standard output. This output should be in sorted alphabetical order of author lastname. 7. void saveAndExit(): Writes the contents of the booklist to the same data le you used for loading books initially. 

In this homework, you wil implement a doubly linked list to maintain a list of books Requirements: Implement a doubly linked list in a file called doublyLinkedList.c . In a separate file, say bookList.c, first define using typedef a structure called Book containing the title, author, price data members. The author's type has to be a structure called Author containing firstname and lastname members. Price is a floating point number . Your program will start by reading a binary file that you get from argv[1] which contains a list of book records, and store them in a doubly linked list of book structures. Write a function called load to do this step. The file may or may not be ordered, but you have to maintain the linked list in alphabetical order of Author lastname . Your program then will display a menu for the user as follows 1 Add Book 2 Delete Book 3 Search by Author 4 Search by Title 5 Print Booklist 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 book, you need to read title, author firstname, author lastname and price from the user, and add that entry into your linked list in sorted alphabetical order of author lastname
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
