This project can be used by both the restaurant customers and the restaurant manager. Customers can use the application to give their orders. Furthermore, the restaurant manager can use the application to follow the restaurant's expenses and revenues. The manager can also display the employees or add more employees. An example user interface for this restaurant application is presented below.
When customer wants to create an order, as the first thing, the system randomly assigns a waiter to the customer. A pop-up message will be displayed with the name of the waiter who is assigned randomly. After closing the pop-up the following view is displayed to the user.
User can select any individual product or menu product from the combobox menu. Whenever a product is selected, the price of the product is displayed next to the Price label. For example, in the following screenshots, 6.00 TL is displayed for the price of the Pizza and 3.00 TL is displayed for Ice Cream.
When user clicks on the “Add” button, the selected number of products will be added to the order and displayed in the lower panel as shown:
When user clicks the “Finalize” button, the order will be created and added to the orders list of the waiter. At the same time a pop up with the total price of the order will be displayed to the user. And then after user clicks “OK” button, the app will go to its initial state and continue from there.
The manager of the restaurant can also use the same program in order to manage the restaurant.
There are 3 different types of things a user can do to manage the restaurant:
- List the currently working employees
- Add a new cook or a waiter
- Calculate the expenses
There are two types of employees in this restaurant: (1) cook and (2) waiter. When user clicks the “Add Cook” button, the GUI will ask for the name and salary of the cook. Similarly, for the “Add Waiter” button. In that case, user only needs to enter the name of the waiter. The waiters do not have a base salary but instead get some percentage of the order they got from customers. When the user clicks the “Add” button, the cook/waiter is added to the employees. Employee’s ID starts from 1 and incremented whenever a new employee is added. A pop up window will be displayed to user after insertion.
When user clicks “List Employees” button the all employees (waiter or cook) will be displayed to the user as shown. These employees will be sorted and printed with their employee IDs.
Finally, when the “Calculate Expenses” button is clicked, the expenses and the revenue so far will be calculated and displayed to the user together with the profit.
- Java Swing
Emin Sadikhov emin.sadikhov@ozu.edu.tr