Question: C Programming Exercise 5 - Library simulation Write a program in C that simulates a book library database. We want to have the following actions
C Programming

Exercise 5 - Library simulation Write a program in C that simulates a book library database. We want to have the following actions e Insert a new book record. Print the list of all the available books based on the insertion order Remove a book Remove a book from the library according to its title . Print all the books sorted from the oldest (publishing year) to the newest Each book has the following information: 1. Title 2. Author 3. Year 4. Price The program should ask the user what he wants to do . Insert (1) . Print (2) . Remove (3) . Print sorted (4) . Exit (5) If the user chooses Insert, he must be asked to enter all the information about the book. Once he finishes, he should get the message "A new record was created" and he should be returned to the initial choice. If he chooses to print (Print or Print sorted), the program should print all the book records accordingly along with all the data of each book record. The program must run continuously until the user chooses Erit. At that point all book records should be written in a separate file named library.txt sorted from the oldest (publishing year) to the newest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
