Question: This is for a programming in C class. Thank you! Write a modular program to handle book records (structures) containing the book's title author, and

This is for a programming in C class. Thank you!

This is for a programming in C class. Thank you! Write a

Write a modular program to handle book records (structures) containing the book's title author, and year published. The program should use a linked list of structures to hold the information and should be able to handle any number of records up to your memory restrictions. The program requirements for HW #15 are Create a main function with a menu system to allow the user to select the following tasks to be performed. Initialize the list. If the list already exists, it should delete the list and free all of the allocated memory. The Initialize function will also assign NULL to the head of the list pointer to indicate that the list is empty. Append data from a text file to the end of the list. The file name is HW15Data.txt and contains the following information separated by newlines: Title, Author, & Year. The authors name is given in the format of last name, comma, and then first name. The year is the year in which the book was published. You can read the year in as a number or a character string. I recommend using fgets0 to read in the text file. Here's some sample input--the first 3 lines of the text file On Basilisk Station Weber, David 1993 Write the list to a binary file using the fwrite () function. Print the title, author, and publication year for a record. The program should prompt the user for the record number from which the information will be printed. Before exiting, the program should free any memory that has been allocated with malloc(). Assuming the initialization function is written to delete the list freeing the memory, you can use it to free the memory before the program exists. Write a modular program to handle book records (structures) containing the book's title author, and year published. The program should use a linked list of structures to hold the information and should be able to handle any number of records up to your memory restrictions. The program requirements for HW #15 are Create a main function with a menu system to allow the user to select the following tasks to be performed. Initialize the list. If the list already exists, it should delete the list and free all of the allocated memory. The Initialize function will also assign NULL to the head of the list pointer to indicate that the list is empty. Append data from a text file to the end of the list. The file name is HW15Data.txt and contains the following information separated by newlines: Title, Author, & Year. The authors name is given in the format of last name, comma, and then first name. The year is the year in which the book was published. You can read the year in as a number or a character string. I recommend using fgets0 to read in the text file. Here's some sample input--the first 3 lines of the text file On Basilisk Station Weber, David 1993 Write the list to a binary file using the fwrite () function. Print the title, author, and publication year for a record. The program should prompt the user for the record number from which the information will be printed. Before exiting, the program should free any memory that has been allocated with malloc(). Assuming the initialization function is written to delete the list freeing the memory, you can use it to free the memory before the program exists

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!