{"id":21702482,"url":"https://github.com/usmana5809/bus-ticket-booking-system","last_synced_at":"2025-03-20T16:25:18.177Z","repository":{"id":246419172,"uuid":"821070159","full_name":"usmana5809/Bus-Ticket-Booking-System","owner":"usmana5809","description":"This project is a comprehensive bus ticket booking and management system developed in C++. It allows users to book bus tickets, manage passenger details, and includes administrative functions for bus and ticket management.","archived":false,"fork":false,"pushed_at":"2024-06-27T21:16:06.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-25T15:27:04.986Z","etag":null,"topics":["bus-management","bus-ticket-booking","c","cpp","data-structures-and-algorithms","file-handling","object-oriented-programming","passanger-information","ticket-management"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usmana5809.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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-06-27T18:46:35.000Z","updated_at":"2024-06-27T21:16:09.000Z","dependencies_parsed_at":"2024-06-27T22:14:14.345Z","dependency_job_id":"ca75a91a-298c-4460-805a-3554c6b60e77","html_url":"https://github.com/usmana5809/Bus-Ticket-Booking-System","commit_stats":null,"previous_names":["usmana5809/bus-ticket-booking-system"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FBus-Ticket-Booking-System","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FBus-Ticket-Booking-System/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FBus-Ticket-Booking-System/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usmana5809%2FBus-Ticket-Booking-System/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usmana5809","download_url":"https://codeload.github.com/usmana5809/Bus-Ticket-Booking-System/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244648261,"owners_count":20487233,"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":["bus-management","bus-ticket-booking","c","cpp","data-structures-and-algorithms","file-handling","object-oriented-programming","passanger-information","ticket-management"],"created_at":"2024-11-25T21:16:04.099Z","updated_at":"2025-03-20T16:25:18.154Z","avatar_url":"https://github.com/usmana5809.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bus-Ticket-Booking-System\nThis project is a comprehensive bus ticket booking and management system developed in C++. It allows users to book bus tickets, manage passenger details, and includes administrative functions for bus and ticket management.\nBus Reservation System\n# Project Overview\nThe Bus Reservation System is a console-based application written in C++ that allows users to book bus tickets, manage bus details, and view booking information. It provides functionalities for both administrators and passengers.\n\n# Features\nAdministrator Functions:\nAdd new buses with details like bus number, driver name, arrival/departure times, source, and destination.\nManage seat allotment and availability.\nDisplay buses and their availability.\nPassenger Functions:\nBook tickets for available buses.\nDisplay booked tickets.\nCalculate fares including optional insurance costs.\n\n## Installation\n1. Clone the repository:\n    ```sh\n    git clone https://github.com/your_username/bus-reservation.git\n    ```\n2. Navigate to the project directory:\n    ```sh\n    cd bus-reservation\n    ```\n3. Compile the code using a C++ compiler:\nCompile the C++ files using your preferred compiler (e.g., g++)\n    ```sh\n    g++ main.cpp -o main\n    ```\n4. Run the executable:\n    ```sh\n    ./main\n    ```\n# Usage\n# 1.Administrator Mode:\n - Log in with appropriate credentials.\n - Use the menu to manage buses (add, view, etc.).\n   \n# 2.Passenger Mode:\n- Book a ticket by selecting available buses.\n- View booked tickets and fare details.\n\n# Example Outputs\n```bash\nAdding a Bus\nEnter bus no: 1234\nEnter Driver's name: John Doe\nArrival time: 09:00 AM\nDeparture: 05:00 PM\nFrom: CityA\nTo: CityB\nSeats initialized.\n```\n\n# Booking a Ticket\n```bash\nSelect the Bus No: 1234\n\n----------------------------------------------------------------\nBus No || Source || Destination || Bus Name || Distance(KM) || Arr. time(Hrs) || Dept. time(Hrs) || Duration\n----------------------------------------------------------------\n1234   CityA   CityB       ABC Bus         100         09:00 AM         05:00 PM         8 hrs\n```\n\n# Displaying Booked Ticket\n```bash\nBooked Bus is ....\n\n----------------------------------------------------------------\nBus No || Source || Destination || Bus Name || Distance(KM) || Arr. time(Hrs) || Dept. time(Hrs) || Duration\n----------------------------------------------------------------\n1234   CityA   CityB       ABC Bus         100         09:00 AM         05:00 PM         8 hrs\n```\n\n\n\n# Fare Calculation\n```bash\nChild fare: 500\nAdult fare: 1000\nTemporary fare: 1500\n\nWant to take insurance (y/n)?\nRs 1/Km for child\nRs 2/Km for adult: y\n\nTotal fare: 1600\n```\n\n\n# Viewing Available Buses\n```bash\nBus no: 1234\nDriver: John Doe        Arrival time: 09:00 AM    Departure time: 05:00 PM\nFrom: CityA             To: CityB\n```\n\n## Expected Output\n- Users will interact with the system via a command-line interface.\n- Menus will guide the user to perform various operations.\n- Success and error messages will be displayed accordingly.\n\n## License\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n1. Fork the repository.\n2. Create a new branch (`git checkout -b feature-branch`).\n3. Commit your changes (`git commit -am 'Add new feature'`).\n4. Push to the branch (`git push origin feature-branch`).\n5. Create a new Pull Request.\n\n## Contact\nFor any questions or suggestions, please contact [usmanazulfiqar2001@gmail.com](mailto:usmanazulfiqar2001@gmail.com).\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmana5809%2Fbus-ticket-booking-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusmana5809%2Fbus-ticket-booking-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusmana5809%2Fbus-ticket-booking-system/lists"}