This is a simple Library Management System implemented in C++ using a Hash Table. It allows users to manage a collection of books and track which books have been issued to students.
-
The program initializes a hash table with a certain capacity (initially set to 7).
-
Users can choose from various options via a menu:
- Display Books: Lists all available books with their IDs.
- Issue Book: Lets students check out books. Users need to enter their Student PRN and the Book ID.
- Return Book: Allows students to return books based on their PRN.
- Search for Student: Users can search for students by PRN to find out which book they have issued.
- Display Hash Table: Shows the current state of the hash table, indicating which books are issued to which students.
- Exit: Quits the program.
-
The program employs a hash table to efficiently store book records, including their titles and IDs.
-
When a book is issued to a student, the system uses the student's PRN and the book's ID to store this information in the hash table.
-
When a book is returned, the program removes the corresponding record.
-
Users can view the status of the library, check which books are available, and find out who has issued a particular book.
-
The program automatically handles the hash table's resizing to accommodate more records.
- Compile the program using a C++ compiler.
- Run the compiled program.
- Follow the on-screen menu to perform library management actions.