Giter Club home page Giter Club logo

nixrajput / bus-reservation-system-cpp Goto Github PK

View Code? Open in Web Editor NEW
15.0 2.0 8.0 1.12 MB

This repository contains the Bus Reservation System Management project developed using Object Oriented Programming (OOP) and File Handling concepts in C++.

License: MIT License

C++ 98.84% CMake 1.16%
bus-reservation bus-reservation-system reservation-system bus reservation cpp oops-in-cpp oops file-handling-in-cpp file-handling cpp-solutions bus-booking bus-ticket nixlab nixrajput nixrajput-github bus-reservation-management collaborate

bus-reservation-system-cpp's Introduction

Bus Reservation System Management with OOP and File Handling in C++

This repository contains the Bus Reservation System Management project developed using Object Oriented Programming (OOP) and File Handling concepts in C++.

Stars Forks Watchers Contributors

GitHub last commit GitHub issues GitHub pull requests GitHub Licence

Table of Contents

Features

  • Bus Management: Add, view, and remove bus details.
  • Reservation System: Book, view, and cancel reservations.
  • File Handling: Persist bus and reservation data using file handling techniques.
  • User Interface: Command-line based user interface for interacting with the system.

Sceenshots

  • Welcome Screen

Screenshot 1

  • Main Menu

Screenshot 2

  • User Menu

Screenshot 3

  • Book Ticket

Screenshot 4

  • Admin Menu

Screenshot 5

  • Bus List

Screenshot 6

Getting Started

To get started with the development or usage of this project, follow the instructions below:

Prerequisites

  • A C++ compiler (such as g++, clang++)
  • A suitable development environment (such as Visual Studio, Code::Blocks, or a text editor with command line tools)

Installation

  1. Clone this repository to your local machine:

    git clone https://github.com/nixrajput/bus-reservation-system-cpp.git
  2. Navigate into the cloned repository directory:

    cd bus-reservation-system-cpp

Compilation

To compile the project, you can use the following command in the terminal:

g++ -o BusReservationSystem main.cpp Bus.cpp Reservation.cpp
#or
clang++ main.cpp -o BusReservationSystem.exe

This command assumes you have main.cpp, Bus.cpp, and Reservation.cpp files. Modify it according to your actual file names.

Running the Application

After successfully compiling the project, you can run the application using the command:

./BusReservationSystem

Admin Credentials

Username : admin Password : pass

File Structure

The project directory typically contains the following files:

  • main.cpp: The main entry point of the application.
  • Bus.h and Bus.cpp: Bus class definition and implementation.
  • Reservation.h and Reservation.cpp: Reservation class definition and implementation.
  • data/: A directory containing data files for buses and reservations.
  • utils.h: A file contains required utility functions.

Classes and Methods

Bus Class

This class manages bus details and includes the following methods:

  • void addBus(): Adds a new bus.
  • void displayBuses(): Displays all buses.
  • void removeBus(): Removes a bus by ID.

Reservation Class

This class manages reservations and includes the following methods:

  • void bookTicket(): Books a new ticket.
  • void viewReservations(): Displays all reservations.
  • void cancelReservation(): Cancels a reservation by ID.

File Handling

Data persistence is achieved using file handling concepts. The bus and reservation data are stored in separate files within the data/ directory.

How to Use

  1. Add a Bus: Select the option to add a bus and enter the required details.
  2. View Buses: Select the option to view all available buses.
  3. Remove a Bus: Select the option to remove a bus and provide the bus ID.
  4. Book a Ticket: Select the option to book a ticket and enter the required details.
  5. View Reservations: Select the option to view all reservations.
  6. Cancel a Reservation: Select the option to cancel a reservation and provide the reservation ID.

Contributing

If you would like to contribute to this project, feel free to fork the repository, make your changes, and submit a pull request. Please follow the guidelines in the CONTRIBUTING.md file.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Sponsor Me

By sponsoring my efforts, you're not merely contributing to the development of my projects; you're investing in its growth and sustainability.

Your support empowers me to dedicate more time and resources to improving the project's features, addressing issues, and ensuring its continued relevance in the rapidly evolving landscape of technology.

Your sponsorship directly fuels innovation, fosters a vibrant community, and helps maintain the project's high standards of quality. Together, we can shape the future of the projects and make a lasting impact in the open-source community.

Thank you for considering sponsoring my work!

Sponsor

ko-fi

"Buy Me A Coffee"

Connect With Me

GitHub: nixrajput Linkedin: nixrajput Instagram: nixrajput Twitter: nixrajput07 Telegram: nixrajput Gmail: nkr.nikhi.nkr@gmail.com

Activities

Alt

bus-reservation-system-cpp's People

Contributors

nixrajput avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

bus-reservation-system-cpp's Issues

Suggest an idea for this project

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is.

Describe the solution you'd like
A clear and concise description of what you want to happen.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Additional context
Add any other context or screenshots about the feature request here.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.