This program simulates a queueing system using a DEQ2 (Double Ended Queue) data structure.
This program models an Airport simulation system where plans arrive, get serviced, and exit the system. It utilizes a DEQ2 data structure to manage the queue and simulate job arrivals and departures.
To use this program, follow these steps:
- Clone the repository to your local machine.
- Compile the program using a C++ compiler.
- Run the compiled executable.
Upon running the program, it will simulate plan arrivals, service times, and calculate average wait times.
- C++ compiler (e.g., GCC, Clang)
- C++ Standard Library
The code is organized into several files:
main.cpp
: Contains the main simulation logic.- ``DEQ2.h
and
DEQ2.cpp`: Implement the DEQ2 data structure. node.h
andnode.cpp
: Define and implement the Node class used in the DEQ2.