Question: Please answer in Java This project is to ease and hasten the ordering process in a restaurant or a caf. The process that I propose

Please answer in Java

This project is to ease and hasten the ordering process in a restaurant or a caf.

The process that I propose is that these restaurants use a system, by inputting customers name, food, and the time the food will be done.

This process will reduce the people waiting in line, and quicken the ordering process. To do that, I will be using:

Queue Data Structure

MergeSort sorting method

The reason that I will be using Queue is because in an ordering process, people line up to order their food. The food will be on a first ready first out basis. I will be putting indexes to peoples order depending on if they order first, second, or so on. The MergeSort will sort by the time it takes for the food to get ready. Therefore, the food that takes the least time will go out first.

Include a driver to run the program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!