This program implements a basic library management system where students, faculty and librarians can perform various tasks related to borrowing books, creating profiles, paying fines, returning books etc. Users interact with the system through a console-based interface.
Librarians, Students and Teachers can log in using their usernames and passwords. New users can register. The system verifies user credentials before granting access to the functionalities. Student Functions: Students can-
- Return Books
- Borrow Books
- Check Fines
- Pay Fines
- Check Borrowed Books
- View Borrowing History
- View Available Books
Employees have similar functionalities as customers but with additional privileges like no fines. In addition, they can view the maximum overdue period of any of their books.
Librarians have administrative privileges to manage users and books. They can register new users, update and add books, delete books and users, view database details
Book, Librarian, Faculty, and Student data are stored in external .csv files (faculty.csv, books.csv, librarians.csv, students.csv) to maintain persistence between program executions.
The program provides error messages and handles invalid inputs gracefully. Users are prompted with clear instructions throughout the interaction.
Compile the program using a C++ compiler, such as clang: clang++ -std=c++11 main.cpp User.cpp Book.cpp Librarian.cpp Faculty.cpp Student.cpp -o lms
Run the compiled executable: ./lms Follow the prompts on the console to navigate through different functionalities. Enter any integer other than the ones displayed to exit the program.