Thebrownboy / Eat-and-Fly

Eat and Fly :sweat_smile: Data Structures and Algorithms CMP_CUFE_2022 1st year 1st semster Final project :sparkling_heart: :fire: :v:

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DS_Project_CMP_1ST_YEAR πŸ”₯πŸ’₯

Eat and Fly πŸ•πŸ”πŸ΄

It is a program coded with C++ using Data structures and Algorthims to bulid a simulation to a restaurant system that will help the mangers of the restaurant to manage , get statistics to the income of the restaurant and help them improving the service.

Description:

  • This program is simulation to restaurant that has four regions ,every region has five types of orders: VIP ,Frozen , Normal ordres,Party and InRestaurant orders and three types of motorcycles VIP,Frozen and Normal and every restaurant has some tables that is required for InRestaurant orders.
    1. VIP orders: they are the orders for VIP persons and it has priority depending on the distance between the restaurant and the client , the money that is payed for the order and the arrivial time of the order and the more priority is the less waiting time that will take and any motos can deliver this order.
    2. Frozen orders: they are the order that has a special motorcycle to be assign in , frozen motos have small refrigerator to save the food so the frozen orders won't be assign in any other motos.
    3. Normal orders: they are the usual orders they have no restrictions and they can be assign in any type of motos except the frozen ones
    4. Party orders : they are the big orders that needs more than one motorcycles for delivering them and they can be assigned in any type motorcycles .
    5. InRestaurant orders: they are the orders that won't be delivered by motos they will be in the restaurant and they have no service time and they assigned on tables .
  • This prorgram has three Events Arrival_Event , cancellation_Event and promtion_Event
    1. Arrival_Event: It is the Event when the order reaches the restaurant then it enters its region and put with its type
    2. cancellation_Event: It is the event that cancel an order "No order can be cancelled if it is assigned in a moto ".
    3. Promotion_Event: It is the Event that promote the Normal order to a VIP order if the client pays extra money "the order will be promoted automaticllay if its wating time exceeds a certain time".
  • This program consists of three modes: StepByStep mode , silent mode and interactive mode
    1. StepByStep: Here every 2 seconds the system will allow the active orders to be assign in the available motorcycles , the program will be excuted by itself without any entring from the user , what happened will be displayed on the screen and the statistics will be displayed and saved in the output file .
    2. silent: Here the program will be excuted silently , the user won't see what happen by the GUI but the statistics will be showed in the output file .
    3. Interactive: Here the system is totally controlled by the user he/she will allow the active orders to be assing at motorcycle in the time he/she wants , the program will be excuted and show what happened in the current time ,every assinging ,cancellation, promotion and arriving will be display in the GUI and the statistics will be displayed and saved in the output file .

About

Eat and Fly :sweat_smile: Data Structures and Algorithms CMP_CUFE_2022 1st year 1st semster Final project :sparkling_heart: :fire: :v:

License:MIT License


Languages

Language:C 73.3%Language:C++ 26.3%Language:Objective-C 0.4%