This is a simple Food Queue System designed to manage customer queues efficiently. The system offers two versions: an array-based version and a class-based version. This project was done as 1st year, second semester programming coursework at IIT institution affiliate with University of Westminster.
Food.Queue.System.Demonstration.mp4
Array version user enter the queue number the user want the position the customer.
- View all queues (VFQ - 100): Display all queues along with their current status.
- View all empty queues (VEQ - 101): Display queues that are currently empty.
- Add customer to a queue (ACQ - 102): Add a customer to the queue of choice. Users can select which queue they wish to join.
- Remove a customer from a queue (RCQ - 103): Remove a customer from a specific queue.
- Remove a served customer (PCQ - 104): Remove the first customer from the queue as they are served.
- View Customers Sorted in alphabetical order (VCS - 105): Display customers in queues sorted alphabetically.
- Store program data into file (SPD - 106): Save the program data to a file for future use.
- Load program data from file (LDP - 107): Load previously stored program data from a file.
- View remaining burgers Stock (STK - 108): Display the remaining stock of burgers.
- Add burgers to stock (AFS - 109): Increase the stock of burgers.
- Exit the program (EXT - 999): Close the program.
Class version the customer automatically will be added to the first position of the 1st queue and move up accordinly
- View all queues (VFQ - 100): Display all queues along with their current status.
- View all empty queues (VEQ - 101): Display queues that are currently empty.
- Add customer to a queue (ACQ - 102): Add a customer to the queue. Customers are automatically added to the appropriate queue based on availability.
- Remove a customer from a queue (RCQ - 103): Remove a customer from a specific queue.
- Remove a served customer (PCQ - 104): Remove the first customer from the queue as they are served.
- View Customers Sorted in alphabetical order (VCS - 105): Display customers in queues sorted alphabetically.
- Store program data into file (SPD - 106): Save the program data to a file for future use.
- Load program data from file (LDP - 107): Load previously stored program data from a file.
- View remaining burgers Stock (STK - 108): Display the remaining stock of burgers.
- Add burgers to stock (AFS - 109): Increase the stock of burgers.
- Calculate the income (IFQ - 110): Calculate the total income generated by the system.
- Open the GUI (GUI - 112): Launch the graphical user interface (GUI) for the Food Queue System.
To use the array-based version of the Food Queue System, follow these steps:
- Run the program.
- Choose the desired operation from the provided menu by entering the corresponding code.
- Follow the prompts to perform the selected operation.
To use the class-based version of the Food Queue System, follow these steps:
- Run the program.
- Follow the prompts to perform operations. Customers will be automatically added to the appropriate queue based on availability.
GUI is only available for the class version only
Customers in the queue will be shown here.
Customers waiting in the queue will be shown here.
Customer information can be looked up through the customer searching User-Interface.
The GUI version of the Food Queue System is developed using JavaFX. To launch the GUI:
- Run the program.
- Select the option to open the GUI (code 112).
- The graphical interface will open, allowing users to interact with the system using buttons and visual cues.
Ensure that JavaFX is properly configured and installed to run the GUI version of the Food Queue System.
- Sathruwan Hansith Cooray - 20220659
- This project is licensed under the MIT License - see the LICENSE.md file for details.
- Special thanks to IIT institution and University of Westminster