Assignment 1
Assignment 1
Note: It an individual assignment and assignment will be evaluated on the basis of Viva. Each student has
to submit the assignment in soft copy and this page should be the first page of the submitted soft copy.
Assigned Tasks:
Create a C++-based library management application where a list of books,
including their unique book ID, title, author, and price, is displayed on the screen.
Users can add to or remove books from their personal collection (implemented
as a singly linked list).
The system should load book ID, title, author, and price from a text file into
a linked list (book inventory) and display all loaded details on the screen.
The user should be provided with four options in an iterative manner: 0, 1,
2, 3.
If the user presses 1, the system should prompt for the book ID and add the
selected book to the user's personal collection.
If the user presses 2, the system should ask for the book ID and remove the
corresponding book from the user's collection.
If the user presses 3, the list of available books (book inventory) should be
displayed again.
If the user presses 0, the system should generate a summary report listing
the books in the user’s collection, including book ID, title, author, price per
book, and total amount spent.
Note:
1. Both linked lists (book inventory and personal collection) must be of type
<Book>.