0% found this document useful (0 votes)
2 views1 page

Assignment 1

The assignment requires students to create a C++ library management application that utilizes a singly linked list to manage a collection of books. The application must load book details from a text file, allow users to add or remove books from their personal collection, and provide options to display the inventory or generate a summary report. The assignment will be evaluated based on a Viva and must be submitted as a soft copy with the provided cover page.

Uploaded by

muhammad04ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views1 page

Assignment 1

The assignment requires students to create a C++ library management application that utilizes a singly linked list to manage a collection of books. The application must load book details from a text file, allow users to add or remove books from their personal collection, and provide options to display the inventory or generate a summary report. The assignment will be evaluated based on a Viva and must be submitted as a soft copy with the provided cover page.

Uploaded by

muhammad04ahmed
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

National University of Modern Languages

Department of Computer Sciences

Subject: Data Structures Instructor: Zainab Malik


Assignment No: 1 Due Date: 26-3-2025
Class: BSCS 3A/3B

Student Roll No: Student Name:


Total Marks: 25 Obtained Marks:

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 application should function as follows:

 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>.

You might also like