An open API service indexing awesome lists of open source software.

https://github.com/saadarazzaq/al-saadi-international-airlines

An Airline Seat Reservation CLI App in C++
https://github.com/saadarazzaq/al-saadi-international-airlines

airline-reservation-system cli-cpp grid-layout interactive programming-fundamentals

Last synced: 3 months ago
JSON representation

An Airline Seat Reservation CLI App in C++

Awesome Lists containing this project

README

        

# Al Saadi International Airlines ✈️🔥

## 📕Description
An Airline Seat Resevation CLI based application that allows users to book seats on a flight in different classes: First Class, Business Class, and Economy Class. The program provides a grid-based visual representation of the available seats ('*') and allows users to book seats interactively as well as strictly keeping the Booked/Occupied Seats ('X') in view.

## 👀Features
- Clear and user-friendly CLI interface with colored output for improved readability.
- Three classes: First Class, Business Class, and Economy Class, each with designated seat ranges.
- Real-time seat availability display with the option to mark seats as occupied.
- Interactive booking process with error handling for invalid inputs.
- Ability to register multiple seats in a single session.

## 🌠Screenshots
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/e4857ce5-3b5c-4519-bfa5-d42fcc559533)
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/38cde158-c51c-4544-9453-8cf8a2cf32d5)
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/2b01e3df-75db-4ce4-b8a9-20ce89893e84)
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/f07093aa-b55f-4f20-ad7c-09e1d185005b)
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/30db4a5a-f171-48f3-b121-095883f1f868)
![image](https://github.com/SaadARazzaq/Al-Saadi-International-Airlines/assets/123338307/9fbc3f26-95fd-47b7-a60d-89c5e0987022)

## ⚒️Usage
1. Run the `app.cpp` file to start the program.
2. Select the desired class by entering the corresponding number from the displayed menu.
3. Choose the row and seat number for the seat you wish to book.
4. If the seat is available, it will be marked as booked ('X') on the grid. All the available seats are marked as ('*')
5. If the seat is already occupied, a warning message will be shown, and you can choose a different seat.
6. The program allows booking seats until you decide to exit.

## ⏮️Prerequisites
- C++ Compiler (e.g., g++) ~ Recommended: Visual Studio, VS Code

## 🏃‍♂️How to Run
1. Clone the Repository `https://github.com/SaadARazzaq/Al-Saadi-International-Airlines.git` to your local machine.
2. Open the terminal or command prompt and navigate to the repository directory.
3. Compile the `app.cpp` file using a C++ compiler.

```
g++ app.cpp -o app

4. Run the compiled executable.
5. Enjoy Reserving Seat at Al Saadi International Airlines 😎

## 🥸Authors
- [Saad Abdur Razzaq](https://github.com/SaadARazzaq)