Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Analyze the impact of labor unions on health care.

Answered: 1 week ago

Question

Assess three motivational theories as they apply to health care.

Answered: 1 week ago

Question

Discuss the history of U.S. labor unions.

Answered: 1 week ago