Professional Documents
Culture Documents
PROG191 - GCS200374 - Trần Hùng Minh - Assignment
PROG191 - GCS200374 - Trần Hùng Minh - Assignment
PROG191 - GCS200374 - Trần Hùng Minh - Assignment
JAVA PROGRAMMING
ASSIGNMENT
No.1/1
Class: GCS0904A
Submission Format
The subm ission is in the form of a written report. This should be written in a concise, form al
business style using single spacing and font size 12. You are required to m ake use of headings,
paragraphs and subsections as appropriate, and all work m ust be supported with research and
referenced using the Harvard referencing system. Please also provide a bibliography using the
Harvard referencing system.
Unit Learning Outcomes
Assignment Brief
You have to develop an application to solve a small business problem. The problem requires a
graphical user interface with features that required reading / writing data from text file, working
with a collection of data (searching for item / min / max / sum / etc.). The application must handle
errors so that it will not crash at end user side. The application also need to be fully tested before
the production phase.
You need to write a technical report about the development of the application. Content of the
report should cover design, implementation and testing.
In the end you need to demo your application, explain your code and answer technical questions.
ASSIGNMENT 1 FRONT SHEET
Student declaration
I certify that the assignment submission is entirely my own work and I fully understand the consequences of plagiarism. I understand that
making a false declaration is a form of malpractice.
Grading grid
Grade (0-10)
❒ Summative Feedback: ❒ Resubmission
Feedback:
IV Signature:
Contents
I. INTRODUCTION ......................................................................................................................... 8
II. REQUIREMENT........................................................................................................................... 8
Use case ........................................................................................................................................ 8
III. WIREFRAMES ....................................................................................................................... 15
IV. IMPLEMENTATION ............................................................................................................... 20
Source code food menu ............................................................................................................... 20
Source code main menu .............................................................................................................. 28
Source code order menu. ............................................................................................................ 29
V. TEST......................................................................................................................................... 31
Main menu : ................................................................................................................................ 31
VI. CONCLUSION ....................................................................................................................... 35
VII. REFERENCES ........................................................................................................................ 36
Figure II.1 ......................................................................................................................................... 8
Figure III.1 ...................................................................................................................................... 15
Figure III.2 ...................................................................................................................................... 16
Figure III.3 ...................................................................................................................................... 17
Figure III.4 ...................................................................................................................................... 18
Figure III.5 ...................................................................................................................................... 19
Figure IV.1 ...................................................................................................................................... 20
Figure IV.2 ...................................................................................................................................... 20
Figure IV.3 ...................................................................................................................................... 21
Figure IV.4 ...................................................................................................................................... 21
Figure IV.5 ...................................................................................................................................... 22
Figure IV.6 ...................................................................................................................................... 22
Figure IV.7 ...................................................................................................................................... 23
Figure IV.8 ...................................................................................................................................... 23
Figure IV.9 ...................................................................................................................................... 24
Figure IV.10 .................................................................................................................................... 24
Figure IV.11 .................................................................................................................................... 25
Figure IV.12 .................................................................................................................................... 25
Figure IV.13 .................................................................................................................................... 26
Figure IV.14 .................................................................................................................................... 27
Figure IV.15 .................................................................................................................................... 27
Figure IV.16 .................................................................................................................................... 28
Figure IV.17 .................................................................................................................................... 28
Figure IV.18 .................................................................................................................................... 29
Figure IV.19 .................................................................................................................................... 29
Figure IV.20 .................................................................................................................................... 30
Figure IV.21 .................................................................................................................................... 30
Figure V.1 ....................................................................................................................................... 31
Figure V.2 ....................................................................................................................................... 32
Figure V.3 ....................................................................................................................................... 32
Figure V.4 ....................................................................................................................................... 33
Figure V.5 ....................................................................................................................................... 33
Figure V.6 ....................................................................................................................................... 34
Figure V.7 ....................................................................................................................................... 34
I. INTRODUCTION
A restaurant has a problem with client ordering, which we will remedy by developing a software that
will make ordering and ordering easier for consumers. restaurant, as well as the restaurant's
employees In this project's implementation, we will utilize eclisp software to create the application,
which will be written in Java.
II. REQUIREMENT
Use case
Figure II.1
Use Case No: 1
Actors: Customer
Description: This use case allow customer to search for their favorite restaurants.
Exceptions: None
Use Case No: 2
Actors: Customer
Description: This use case allow customer to check the menu of restaurant.
Exceptions: None
Use Case No: 3
Actors: Customer
Normal Course: 1. The plus + sign available on left side of each item of menu.
2. The customer click on + sign.
3. The system ask customer to select quantity of that item.
4. The customer select the quantity.
5. The system add that item to cart.
6. The customer select more item from menu and system add them in cart.
7. The order food button appears on cart.
8. The customer clicks on the button.
9. The system display the message your food has been ordered.
1. The minus – sign appears on the left side of every item in the cart.
2. The customer clicks on the – sign.
3. The item removed from cart.
4. The system displays the message the item is removed.
Post conditions: 1. The system display a message the food has been ordered.
Exceptions: None
Actors: Manager
Description: This use case allow manager to add menu in the table.
Normal 1. The manager enters to the add menu form by clicking the Add
Course: menu button.
2. The manger will place the new food item in menu box.
3. The manager will set the price of the food item.
4. The manager will set the availability area of food item.
5. The manager will place the picture off the food item.
6. The manager will set any deal offer for that product.
7. The manager will press the enter button to complete the information
and to store information in the data base.
4. The reset button will erase all the information of the product by the
manager.
Post 1. The system should enter the new product item in database.
conditions: 2. The manager should see all the products
Exceptions: None
Actors: Manager
Description: This use case allow manager to manage the menu of his restaurant.
Normal 1. The manager will click on the manage menu button and
Course: he/she will be directed to the manage menu form.
2. There he/she will be allow access to choose the option of
update or delete food item.
3. The manager will return back to its main page.
Alternative 2.1 Update Information
Courses:
1. The system displays the message “Select the item to update
information”.
2. The manager will select the food item to update its info.
3. The manager will update the information according to his
requirements.
4. The manager will enter the update button to complete the
update process.
5. The system displays update message to the manger.
Exceptions: None
III. WIREFRAMES
Figure III.1
Figure III.2
Figure III.3
Figure III.4
Figure III.5
IV. IMPLEMENTATION
Source code food menu
Figure IV.1
Figure IV.2
Figure IV.3
Figure IV.4
Figure IV.5
Figure IV.6
Figure IV.7
Figure IV.8
Figure IV.9
Figure IV.10
Figure IV.11
Figure IV.12
Figure IV.13
Figure IV.14
Figure IV.15
Source code main menu
Figure IV.16
Figure IV.17
Source code order menu.
Figure IV.18
Figure IV.19
Figure IV.20
Figure IV.21
V. TEST
Screenshots of some sample input data when the app runs, with captions.
Main menu :
Figure V.1
When you click the order button, you will be taken to the next page to order.
There are many items for us to choose to order such as main food, drinks,
dessert.
Figure V.2
Figure V.3
Figure V.4
We can see the total amount we bought on the right hand side
Figure V.5
Finally, we will enter the information so that the restaurant can deliver the food
Figure V.6
Figure V.7
VI. CONCLUSION
The installation of such a food ordering project was successful in meeting all of the needs of clients.
The program has also demonstrated the speed and accuracy of ordering food and promptly
computing the total amount to be paid by customers. We have successfully developed a program
that addresses the issue raised by the customer. Adjustments have also been made in the program
in response to consumer requests, so that they can be reduced and easy for staff and customers to
use without being puzzled or perplexing, so that everyone can use.
VII. REFERENCES
1. Behance.net. 2022. Behance. [online] Available at:
<https://www.behance.net/gallery/81549221/Food-Delivery-service-Wireframe> [Accessed 9 March
2022].
2. Pinterest. 2022. 12 Wireframe ideas | food app, restaurant app, wireframe. [online] Available at:
<https://www.pinterest.com/austin9749/wireframe/> [Accessed 9 March 2022].
3. Medium. 2022. Designing a food ordering Mobile App — a UX case study. [online] Available at:
<https://uxdesign.cc/ui-ux-case-study-feedme-mobile-app-for-ordering-food-
ef0e7f8c82ba?gi=968e496f1b90> [Accessed 9 March 2022].
5. App.diagrams.net. 2022. Flowchart Maker & Online Diagram Software. [online] Available at:
<https://app.diagrams.net/> [Accessed 9 March 2022].
6. Eslfast.com. 2022. Conversation: 4. Ordering Food and Drinks. [online] Available at:
<https://www.eslfast.com/robot/topics/restaurant/restaurant04.htm> [Accessed 9 March 2022].
7. EF English Live. 2022. How to order food in English at a restaurant | EF English Live. [online]
Available at: <https://englishlive.ef.com/blog/english-in-the-real-world/impress-friends-ordering-food-
english-restaurant/> [Accessed 9 March 2022].
8. EF English Live. 2022. How to order food in English at a restaurant | EF English Live. [online]
Available at: <https://englishlive.ef.com/blog/english-in-the-real-world/impress-friends-ordering-food-
english-restaurant/> [Accessed 9 March 2022].
9. UpMenu Blog. 2022. Online Food Ordering System Ultimate Guide for 2020 | UpMenu Blog.
[online] Available at: <https://www.upmenu.com/blog/ultimate-guide-for-restaurant-online-food-
ordering-system/> [Accessed 9 March 2022].
13. Quora. 2022. What is an ordering system?. [online] Available at: <https://www.quora.com/What-
is-an-ordering-system> [Accessed 9 March 2022].
14. Pomelopay.com. 2022. Online ordering systems: what are the advantages of using one?. [online]
Available at: <https://www.pomelopay.com/blog/advantages-online-ordering-system> [Accessed 9
March 2022].
15. Softwareadvice.com. 2022. Best Online Ordering Systems - 2022 Reviews & Pricing. [online]
Available at: <https://www.softwareadvice.com/retail/online-ordering-system-comparison/>
[Accessed 9 March 2022].