{"id":20016745,"url":"https://github.com/abdelrahman822000/library_management_system","last_synced_at":"2025-03-02T03:14:33.806Z","repository":{"id":257577854,"uuid":"858701658","full_name":"Abdelrahman822000/Library_Management_System","owner":"Abdelrahman822000","description":"A console-based application for managing a library, allowing users to borrow and return books, view transactions, and manage members.","archived":false,"fork":false,"pushed_at":"2024-09-17T13:18:08.000Z","size":179,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-12T15:45:34.532Z","etag":null,"topics":["cpp","library-management-system"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Abdelrahman822000.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-09-17T11:39:13.000Z","updated_at":"2024-09-17T13:18:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"b58bf4e7-d66b-474e-b8c3-2551d40d5c7b","html_url":"https://github.com/Abdelrahman822000/Library_Management_System","commit_stats":null,"previous_names":["abdelrahman822000/library_management_system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdelrahman822000%2FLibrary_Management_System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdelrahman822000%2FLibrary_Management_System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdelrahman822000%2FLibrary_Management_System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abdelrahman822000%2FLibrary_Management_System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abdelrahman822000","download_url":"https://codeload.github.com/Abdelrahman822000/Library_Management_System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241451666,"owners_count":19964901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cpp","library-management-system"],"created_at":"2024-11-13T08:13:04.604Z","updated_at":"2025-03-02T03:14:33.799Z","avatar_url":"https://github.com/Abdelrahman822000.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"**This Project was developed by Abdelrahman Mohamed Hamad**\n\n# Library Management System\n\nA console-based application for managing a library, allowing users to borrow and return books, view transactions, and manage members.\n\n## Table of Contents\n- [Project Description](#project-description)\n- [Features](#features)\n- [Installation](#installation)\n- [Usage](#usage)\n- [License](#license)\n- [Contact](#contact)\n\n## Project Description\n\nThe Library Management System is a C++ console application designed to manage books and members in a library. It allows users to borrow and return books, view transaction history, and register or sign in as members. The system also provides functionalities to view all available books and members.\n\n## Features\n\n- **Add Books:** Add new books to the library.\n- **Register Member:** Register new library members.\n- **Borrow Book:** Borrow a book from the library.\n- **Return Book:** Return a borrowed book.\n- **Display Books:** Show all books in the library along with their availability.\n- **Display Transactions:** View the history of borrowing and returning transactions.\n- **Display Members:** View all registered library members.\n- **Sign In/Sign Up:** Log in or register as a new member.\n\n## Installation\n\n### Prerequisites\n\n- C++ Compiler (e.g., GCC, Clang, MSVC)\n\n### Steps\n\n1. **Clone the repository:**\n    ```bash\n    git clone https://github.com/Abdelrahman822000/Library_Management_System.git\n    cd Library_Management_System\n    ```\n\n2. **Build the project:**\n    ```bash\n    g++ main.cpp Book.cpp Member.cpp Transaction.cpp Library.cpp operations.cpp -o LibraryManagementSystem\n    ```\n\n3. **Run the Program:**\n    ```bash\n    ./LibraryManagementSystem\n    ```\n\n## Usage\n\n### Running the Application\n\n1. **Start the Application:**\n    - After running the `LibraryManagementSystem` executable, follow the on-screen instructions to interact with the library system.\n\n2. **Menu Options:**\n    - **Add Book:** Add a new book to the library.\n    - **Register Member:** Register a new member in the library.\n    - **Borrow Book:** Borrow a book from the library.\n    - **Return Book:** Return a borrowed book.\n    - **Display Books:** View all books and their availability.\n    - **Display Transactions:** See the history of transactions (borrowing and returning).\n    - **Display Members:** List all registered members.\n    - **Sign In/Sign Up:** Log in or register as a member.\n\n### Example Output\n\n```\nBook \"The Great Gatsby\" added to the library.\nBook \"1984\" added to the library.\nBook \"To Kill a Mockingbird\" added to the library.\nBook \"Moby Dick\" added to the library.\nBook \"Pride and Prejudice\" added to the library.\nBook \"War and Peace\" added to the library.\nBook \"The Catcher in the Rye\" added to the library.\nBook \"The Hobbit\" added to the library.\nBook \"Crime and Punishment\" added to the library.\nBook \"The Odyssey\" added to the library.\nBook \"Jane Eyre\" added to the library.\nBook \"Brave New World\" added to the library.\nBook \"The Lord of the Rings\" added to the library.\nBook \"Animal Farm\" added to the library.\nBook \"Les Mis├⌐rables\" added to the library.\nBook \"The Divine Comedy\" added to the library.\nBook \"Ulysses\" added to the library.\nBook \"One Hundred Years of Solitude\" added to the library.\nBook \"The Brothers Karamazov\" added to the library.\nBook \"Don Quixote\" added to the library.\nBook \"Wuthering Heights\" added to the library.\nBook \"A Tale of Two Cities\" added to the library.\n\nWelcome to the Library Management System!\n\n1. Sign In\n2. Sign Up\nEnter your choice: 2\nEnter your name: Abdelrahman\nEnter a membership ID: 1234\nID 1234 is available.\nEnter your contact information: 01028325749\nMember \"Abdelrahman\" registered.\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 1\nLibrary books:\nThe Great Gatsby by F. Scott Fitzgerald - Available\n1984 by George Orwell - Available\nTo Kill a Mockingbird by Harper Lee - Available\nMoby Dick by Herman Melville - Available\nPride and Prejudice by Jane Austen - Available\nWar and Peace by Leo Tolstoy - Available\nThe Catcher in the Rye by J.D. Salinger - Available\nThe Hobbit by J.R.R. Tolkien - Available\nCrime and Punishment by Fyodor Dostoevsky - Available\nThe Odyssey by Homer - Available\nJane Eyre by Charlotte Bronte - Available\nBrave New World by Aldous Huxley - Available\nThe Lord of the Rings by J.R.R. Tolkien - Available\nAnimal Farm by George Orwell - Available\nLes Mis├⌐rables by Victor Hugo - Available\nThe Divine Comedy by Dante Alighieri - Available\nUlysses by James Joyce - Available\nOne Hundred Years of Solitude by Gabriel Garcia Marquez - Available\nThe Brothers Karamazov by Fyodor Dostoevsky - Available\nDon Quixote by Miguel de Cervantes - Available\nWuthering Heights by Emily Bronte - Available\nA Tale of Two Cities by Charles Dickens - Available\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 2\nAvailable books to borrow:\nLibrary books:\nThe Great Gatsby by F. Scott Fitzgerald - Available\n1984 by George Orwell - Available\nTo Kill a Mockingbird by Harper Lee - Available\nMoby Dick by Herman Melville - Available\nPride and Prejudice by Jane Austen - Available\nWar and Peace by Leo Tolstoy - Available\nThe Catcher in the Rye by J.D. Salinger - Available\nThe Hobbit by J.R.R. Tolkien - Available\nCrime and Punishment by Fyodor Dostoevsky - Available\nThe Odyssey by Homer - Available\nJane Eyre by Charlotte Bronte - Available\nBrave New World by Aldous Huxley - Available\nThe Lord of the Rings by J.R.R. Tolkien - Available\nAnimal Farm by George Orwell - Available\nLes Mis├⌐rables by Victor Hugo - Available\nThe Divine Comedy by Dante Alighieri - Available\nUlysses by James Joyce - Available\nOne Hundred Years of Solitude by Gabriel Garcia Marquez - Available\nThe Brothers Karamazov by Fyodor Dostoevsky - Available\nDon Quixote by Miguel de Cervantes - Available\nWuthering Heights by Emily Bronte - Available\nA Tale of Two Cities by Charles Dickens - Available\nEnter the title of the book you want to borrow: 1984\nAbdelrahman borrowed \"1984\".\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 3\nBorrowing/Returning History:\nAbdelrahman borrowed \"1984\"\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 4\nBooks you have borrowed:\n- 1984\nEnter the title of the book you want to return: 1984\nAbdelrahman returned \"1984\".\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 3\nBorrowing/Returning History:\nAbdelrahman borrowed \"1984\"\nAbdelrahman returned \"1984\"\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 5\nLibrary Members:\nMember: Abdelrahman, ID: 1234\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 6\nSigning out Abdelrahman...\n1. Sign In\n2. Sign Up\nEnter your choice: 2\nEnter your name: Ahmed\nEnter a membership ID: 1234\nID is taken!\nEnter a membership ID again: 1342\nID 1342 is available.\nEnter your contact information: 0102\nMember \"Ahmed\" registered.\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 2\nAvailable books to borrow:\nLibrary books:\nThe Great Gatsby by F. Scott Fitzgerald - Available\n1984 by George Orwell - Available\nTo Kill a Mockingbird by Harper Lee - Available\nMoby Dick by Herman Melville - Available\nPride and Prejudice by Jane Austen - Available\nWar and Peace by Leo Tolstoy - Available\nThe Catcher in the Rye by J.D. Salinger - Available\nThe Hobbit by J.R.R. Tolkien - Available\nCrime and Punishment by Fyodor Dostoevsky - Available\nThe Odyssey by Homer - Available\nJane Eyre by Charlotte Bronte - Available\nBrave New World by Aldous Huxley - Available\nThe Lord of the Rings by J.R.R. Tolkien - Available\nAnimal Farm by George Orwell - Available\nLes Mis├⌐rables by Victor Hugo - Available\nThe Divine Comedy by Dante Alighieri - Available\nUlysses by James Joyce - Available\nOne Hundred Years of Solitude by Gabriel Garcia Marquez - Available\nThe Brothers Karamazov by Fyodor Dostoevsky - Available\nDon Quixote by Miguel de Cervantes - Available\nWuthering Heights by Emily Bronte - Available\nA Tale of Two Cities by Charles Dickens - Available\nEnter the title of the book you want to borrow: The Great Gatsby\nAhmed borrowed \"The Great Gatsby\".\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 6\nSigning out Ahmed...\n1. Sign In\n2. Sign Up\nEnter your choice: 1\nEnter your membership ID to sign in: 1234\nWelcome back, Abdelrahman!\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 1\nLibrary books:\nThe Great Gatsby by F. Scott Fitzgerald - Checked Out\n1984 by George Orwell - Available\nTo Kill a Mockingbird by Harper Lee - Available\nMoby Dick by Herman Melville - Available\nPride and Prejudice by Jane Austen - Available\nWar and Peace by Leo Tolstoy - Available\nThe Catcher in the Rye by J.D. Salinger - Available\nThe Hobbit by J.R.R. Tolkien - Available\nCrime and Punishment by Fyodor Dostoevsky - Available\nThe Odyssey by Homer - Available\nJane Eyre by Charlotte Bronte - Available\nBrave New World by Aldous Huxley - Available\nThe Lord of the Rings by J.R.R. Tolkien - Available\nAnimal Farm by George Orwell - Available\nLes Mis├⌐rables by Victor Hugo - Available\nThe Divine Comedy by Dante Alighieri - Available\nUlysses by James Joyce - Available\nOne Hundred Years of Solitude by Gabriel Garcia Marquez - Available\nThe Brothers Karamazov by Fyodor Dostoevsky - Available\nDon Quixote by Miguel de Cervantes - Available\nWuthering Heights by Emily Bronte - Available\nA Tale of Two Cities by Charles Dickens - Available\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 2\nAvailable books to borrow:\nLibrary books:\nThe Great Gatsby by F. Scott Fitzgerald - Checked Out\n1984 by George Orwell - Available\nTo Kill a Mockingbird by Harper Lee - Available\nMoby Dick by Herman Melville - Available\nPride and Prejudice by Jane Austen - Available\nWar and Peace by Leo Tolstoy - Available\nThe Catcher in the Rye by J.D. Salinger - Available\nThe Hobbit by J.R.R. Tolkien - Available\nCrime and Punishment by Fyodor Dostoevsky - Available\nThe Odyssey by Homer - Available\nJane Eyre by Charlotte Bronte - Available\nBrave New World by Aldous Huxley - Available\nThe Lord of the Rings by J.R.R. Tolkien - Available\nAnimal Farm by George Orwell - Available\nLes Mis├⌐rables by Victor Hugo - Available\nThe Divine Comedy by Dante Alighieri - Available\nUlysses by James Joyce - Available\nOne Hundred Years of Solitude by Gabriel Garcia Marquez - Available\nThe Brothers Karamazov by Fyodor Dostoevsky - Available\nDon Quixote by Miguel de Cervantes - Available\nWuthering Heights by Emily Bronte - Available\nA Tale of Two Cities by Charles Dickens - Available\nEnter the title of the book you want to borrow: 1984\nAbdelrahman borrowed \"1984\".\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 3\nBorrowing/Returning History:\nAbdelrahman borrowed \"1984\"\nAbdelrahman returned \"1984\"\nAhmed borrowed \"The Great Gatsby\"\nAbdelrahman borrowed \"1984\"\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 5\nLibrary Members:\nMember: Abdelrahman, ID: 1234\nMember: Ahmed, ID: 1342\n\nChoose an option:\n1. Show Available Books\n2. Borrow a Book\n3. Show Borrowed/Returned Books\n4. Return a Book\n5. View Library Members\n6. Sign Out\n7. Exit\nEnter your choice: 7\nGoodbye!\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contact\n\nIf you have any questions, feel free to contact me:\n- **Phone:** +201028325749\n- **Email:** a.mohamed822000@gmail.com\n- **LinkedIn:** [Abdelrahman Mohamed Hamad](https://www.linkedin.com/in/abdelrahman-mohamed-a1956b247/)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelrahman822000%2Flibrary_management_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabdelrahman822000%2Flibrary_management_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabdelrahman822000%2Flibrary_management_system/lists"}