You are on page 1of 15

GROUP ASSIGNMENT

TECHNOLOGY PARK MALAYSIA


AAPP010-4-2-PWP
PROGRAMMING WITH PYTHON
UCDF2107ICT(SE)
Name  TP Number 
Bernard Ong Yuzhe TP065754 
Edwin Neoh Han Chern  TP065980
HAND OUT DATE : 04th JULY 2022
HAND IN DATE : 2nd September 2022
WEIGHTAGE : 50%
LECTURER : MR USMAN HASHMI

INSTRUCTIONS TO CANDIDATES:
1. Submit your assignment online in MS Teams unless advised otherwise

2. Late submission will be awarded zero (0) unless Extenuating


Circumstances (EC) are upheld

3. Cases of plagiarism will be penalized

4. You must obtain at least 50% in each component to pass this module
1.0 Introduction

APU Online Food Service (AOFS) is a system that provides food service to users. This
system simulates a real food service system such as grab and food panda. Basic operation
such as order food, account creation for new user, guest mode and delivery are included.
There are 4 types of users account in this system which are customer, admin staff, delivery
staff and guest. All the users can login by using account number and password. Pseudocode
and flowchart were created to design the code. The steps are important as it can improve the
efficiency of coding and make sure the system run without errors. Hence, validation have
been done in this assignment.

Python is the programming language that used to code this system. Python is a well-liked
general-purpose programming language that has a broad range of uses. High-level data
structures, dynamic typing, dynamic binding, and many other capabilities make it as helpful
for scripting or "glue programming" that ties components together as they do for developing
sophisticated applications. Additionally, it may be enhanced to execute C or C++ code and
make system calls to practically all operating systems. Python is a global language used in a
wide range of applications because of its ubiquity and capacity to operate on almost every
system architecture.

(https://www.coursera.org/articles/what-is-python-used-for-a-beginners-guide-to-using-python)

1.1 Assumption
1. APU Food Online Services is an online food service platform for students and staff in
APU
2. All users are APU students and no outsiders.
3. Admin staff account is prepared by the system and only one admin staff account in
the whole system.
4. Admin staff account belongs to company, it has no specific name. So, it will only
display “Welcome back Admin” in the admin staff account menu.
5. Admin staff account can only modify password but not any other information.
6. Customer and delivery staff account will display “Welcome back [NAME]” in the
menu.
7. Customer accounts can be created by themselves or admin staff.
8. Customer ID must only be their own TP number.
9. Customer phone number length must be 10 or 11only.
10. Customers are not allowed to change any personal information by themselves.
11. Customer account can order multiple food through food menu and view their own
food that added into cart in the shopping cart menu.
12. After the customer succussed their payment, they must write feedback to our food
online service system.
13. Delivery staff account can only be created by admin staff.
14. Password of delivery staff is autogenerated with date and time.
15. Delivery staff account must only get it from admin staff.
16. Admin staff account can modify password for delivery staff.
17. Only admin staff can assign customer orders to delivery staff.
18. Admin staff account can view all information of delivery staff.
19. Delivery staff can change their status in the delivery staff menu.
20. Delivery staff statuses can be viewed by admin staff account.
21. Admin staff account can modify password for customer.
22. Only admin staff account can view all information of customers.
23. Feedback from customers is allowed to be viewed only by admin staff.
24. Only admin staff account can modify and add food item.
25. Delivery staff can only view their all-current active delivery tasks in the delivery staff
order menu, but they can decide to complete which delivery tasks first.
26. All transactions can only be performed online.
27. Guests will need to register through the registration form to order food from the
system.
2.0 Design of Program

2.1 Pseudocode

2.1.1 Import Module

2.1.2 Home Page

2.1.3 User Register Page

2.1.4 User Registration Form

2.1.5 Guest Page

2.1.6 Food Main Menu

2.1.7 User Login Page

2.1.8 User Login Verification Page


2.1.9 Admin Staff Login Verification Page

2.1.10 Delivery Staff Login Verification Page

2.1.11 Customer Account Page

2.1.12 ID Generator

2.1.13 Food Menu

2.1.14 Shopping Cart

2.1.15 Customer Payment

2.1.16 Customer Feedback

2.1.17 Admin Staff Menu

2.1.18 Customer Detail Page

2.1.19 Delivery Staff Details

2.1.20 Food Modify Page

2.1.21 Delivery Staff Menu

2.1.22 Delivery Status Page

2.2 Flowchart
2.2.1 Import Module

2.2.2 Home Page

2.2.3 User Register Page

2.2.4 User Registration Form

2.2.5 Guest Page

2.2.6 Food Main Menu

2.2.7 User Login Page

2.2.8 User Login Verification Page

2.2.9 Admin Staff Login Verification Page

2.2.10 Delivery Staff Login Verification Page

2.2.11 Customer Account Page


2.2.12 ID Generator

2.2.13 Food Menu

2.2.14 Shopping Cart

2.2.15 Customer Payment

2.2.16 Customer Feedback

2.2.17 Admin Staff Menu

2.2.18 Customer Detail Page

2.2.19 Delivery Staff Details

2.2.20 Food Modify Page

2.2.21 Delivery Staff Menu

2.2.22 Delivery Status Page

3.0 Program Source Code

4.0 Example of input and output


4.1 Home Page
4.2 Register Page
4.3 Guest Page
4.4 Customer Account Login Page

4.5 Customer Food Menu


4.6 Customer View Shopping Cart Menu
4.7 Customer Payment Menu

Admin Staff Account Login Page


Delivery Staff Account Login Page

5.0 Conclusion
To sum up, this assignment gives this group the chance to create a system utilizing a Python
program. This project uses a variety of source code to enhance coding abilities. The group may
undoubtedly run into problems, such as when plenty of bugs occur, but attempting to repair the
issues helps the group think more logically. Although this system is not ideal, this group learns a lot
from it. Although this is the group's first system, it won't be the last.

6.0 References

You might also like