PROG191 - GCS200374 - Trần Hùng Minh - Assignment

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 38

Higher Nationals in Computing

JAVA PROGRAMMING
ASSIGNMENT
No.1/1

Learner’s name: Trần Hùng Minh

Assessor name: Nam Lam

Class: GCS0904A

Learner’s ID: GCS200374

Subject’s ID: PROG191

Assignment due: Assignment submitted:9/3/2022


Assessment Brief
Student Nam e/ID Number
Unit Number and Tit le Object Orient ed Programming wit h Java
Academ ic Year 2020 - 2021
Unit Tutor
Assignment Number & Design, Implement and Test a GUI applicat ion
Tit le
Issue Dat e
Subm ission Date
IV Nam e & Date

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

LO1 Understand basic programming skills and OOP paradigm

LO2 Understand how to detect errors and handle errors

LO3 Understand how to working with files in applications

LO4 Understand how to build GUI application

Assignment Brief

Learning Outcomes and Assessment Criteria

LO1 Understand basic programming skills and OOP paradigm


LO2 Understand how to detect errors and handle errors
LO3 Understand how to working with files in applications
LO4 Understand how to build GUI application

To get Pass (5 – 6.5 points)


- Student can design and implement GUI for the application solve a specific problem
- Student knows how to load and save data from file.
- Student knows how to handle errors by using exceptions
- Student knows how to write test plan, execute test cases and log results.

To get Merit (7 – 8.5 points)


- The application is well designed, user friendly and has logical flow of actions.
- Can apply MVC in the application, can apply JUnit to test automatic
- Errors are well handle to avoid program crashing, the test can cover as many as possible the
errors in program
To get Distinction (9 – 10 points)
The application must show excellent design & implementation, runs without any errors, all inputs
are validated, all errors are well handled including recover choice, rich features showing unique
ideas, algorithms.

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

Qualification BTEC Level 5 HND Diploma in Computing

Unit number and title

Submission date 9/3/2022 Date Received 1st submission

Re-submission Date Date Received 2nd submission

Student Name Trần Hùng Minh Student ID GCS200374

Class GCS0904A Assessor name Nam Lam

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.

Student’s signature minh

Grading grid
Grade (0-10)
❒ Summative Feedback: ❒ Resubmission
Feedback:

Grade: Assessor Signature: Date:

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.

Nowadays, it is usual to utilize phones or apply technology in a variety of industries, so we will


implement this project with the goal of making ordering meals more convenient and faster. For
example, they may eliminate the crowded menu by simply picking up the phone and ordering food
directly from their phone. This will result in the restaurant saving a modest bit of money on menu
printing. Staff will be able to order food for guests more quickly and accurately than if they had to
write the item down on paper.

II. REQUIREMENT
Use case

Figure II.1
Use Case No: 1

Use Case Check Favorite Restaurant


Name:

Actors: Customer

Description: This use case allow customer to search for their favorite restaurants.

Preconditions: 1. The customer should be registered.

Normal 1. Search bar appear on homepage.


Course: 2. The customer enter the restaurant name or place name.
3. Now customer click on the search button.
4. The system displays the available restaurant in that area or the
restaurant the customer looking for.

Alternative 1.4 No Restaurant available


Courses:
1. The system display the message sorry no restaurant available in that
area.
2. The system will show the available restaurants to customer nearby
that area.

Post 1. The system display the restaurant that customer searched.


conditions: 2. The system display the nearby restaurant incase searched restaurant
not available.

Exceptions: None
Use Case No: 2

Use Case Check Menu


Name:

Actors: Customer

Description: This use case allow customer to check the menu of restaurant.

Preconditions: 1. The customer should be registered.


2. The customer should search for restaurant.

Normal 1. The customer search for restaurant.


Course: 2. The system displays the restaurant section.
3. The check menu button appear at top of restaurant section.
4. The customer click on the button.
5. The system display the menu.

Alternative 1.5 No Menu available


Courses:
1. The system display the message sorry no menu available for this
restaurant.

Post 1. The system display the menu of restaurant.


conditions:

Exceptions: None
Use Case No: 3

Use Case Name: Order food

Actors: Customer

Description: This use case allow customer to order the food.

Preconditions: 1. The customer should be registered.

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.

Alternative 1.5 Deselect item from cart


Courses:

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

Use Case No: 4

Use Case Add Menu


Name:

Actors: Manager

Description: This use case allow manager to add menu in the table.

Preconditions: 1. Manager should be registered.


2. Manager should login with specific login and password.

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.

Alternative 6. The other offer


Courses:
1. The manager does not allow for any deal of the product.
2. The manger adds the product with another product in a deal.

3. The reset button

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

Use Case No: 5

Use Case Manage menu


Name:

Actors: Manager

Description: This use case allow manager to manage the menu of his restaurant.

Preconditions: 1. The manager should be registered.


2. The manager should be entered to the system by his login and
password.
3. The manager should be on the front page of the system.

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.

2.2 Delete Information

1. The system ask for item which is to be deleted.


2. The manager will select the desired product to delete its
information
3. The manager will click the delete button.
4. The system will display the message “deletion completed’’.

Post 1. The system will complete the deletion or update process.


conditions:

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

exactly to your location

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].

4. Dribbble. 2022. Food Delivery App Wireframing. [online] Available at:


<https://dribbble.com/shots/6699106-Food-Delivery-App-Wireframing> [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].

10. 2022. [online] Available at: <https://www.cloudwaitress.com/blog/what-is-online-food-ordering-


system> [Accessed 9 March 2022].

11. 2022. [online] Available at: <https://www.spaceotechnologies.com/create-online-food-ordering-


system-guide/> [Accessed 9 March 2022].

12. Inventoryexplained.com. 2022. Ordering Systems. [online] Available at:


<https://www.inventoryexplained.com/book-info/ordering-
systems.html#:~:text=Ordering%20systems%20are%20the%20%22mechanical,purchase%20orders
%20or%20production%20orders.> [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].

You might also like