We need to manage the information for a list of books. A book has a
title, an author name, a publisher name, a publication year, and a price. The
book consists of chapters, a chapter has a title, a number, and number of
pages.
Write a c program that allows us to manage this list of books, so
that we can do the following functionalities:
1) Create a book,
2) Delete/undelete a book using its
title,
3) Search for a book using its title,
4) Add chapters to the book,
5) Delete/ undelete chapters from the
book, using the chapter title
6) Display the book info and content.
7) Import/Export a book to/from a
text file, and
8) Import/Export the list of books to/from
a text file.
Hint
- Use array of structs to capture the list of books and list of
chapters’ info
- For deleting a record, no need to physically remove it from the list,
you can just mark it with a flag as delete it, and when you undelete the
record, just change the flag value.
- Create the proper test cases in the main function that test all the
created functions.
Get Free Quote!
335 Experts Online