Skip to content

sadikhovemin/OOP_Project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OOP_Project

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.

Screenshot 2020-01-12 at 3 30 33 PM

Order Creation :

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.

Screenshot 2020-01-12 at 3 32 47 PM

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.

Screenshot 2020-01-12 at 5 08 50 PM Screenshot 2020-01-12 at 5 09 27 PM

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:

Screenshot 2020-01-12 at 5 11 58 PM

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.

Screenshot 2020-01-12 at 5 14 12 PM

Restaurant Management :

The manager of the restaurant can also use the same program in order to manage the restaurant.

Screenshot 2020-01-13 at 5 38 07 PM

There are 3 different types of things a user can do to manage the restaurant:

  1. List the currently working employees
  2. Add a new cook or a waiter
  3. 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.

Screenshot 2020-01-13 at 5 42 38 PM Screenshot 2020-01-13 at 5 42 56 PM

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.

Screenshot 2020-01-13 at 5 48 13 PM

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.

Screenshot 2020-01-13 at 5 52 00 PM

Technologies

  • Java Swing

Author

Emin Sadikhov emin.sadikhov@ozu.edu.tr

Releases

No releases published

Packages

No packages published

Languages