121 Final
121 Final
(UiTM SELF-SERVICE
2.MUHAMMAD AMIRUL IKHWANSTORE)
BIN MOHD HUDDIN
MAC – AUGUST 2024
(2024753317)
DATE : 24/5/2024
1.0 INTRODUCTION................................................................................................................3
2.0 OBJECTIVE........................................................................................................................3
4.0 SOLUTION.........................................................................................................................3
4.1 Pseudocode....................................................................................................................3
4.2 Flowchart.........................................................................................................................3
5.0 DISCUSSION......................................................................................................................3
6.0 CONCLUSION....................................................................................................................3
7.0 REFERENCES...................................................................................................................4
APPENDIX....................................................................................................................................5
The residents and students at the UiTM Perlis Branch are having an unpleasant
shopping experience. The student or resident of the university is already busy with
study, assignments, assessments, and exams, but if they need groceries, they need to
go out of their way to go to the grocery store in the university. Furthermore, if they want
more than that, they need to go out of the university, further decreasing rest in their
already busy schedule. Other than that, the university grocery store has a markup price.
Moreover, the university grocery store is jam-packed with items, decreasing customer
movability and customer attention toward what they need. In conclusion, we thought that
to best solve all these problems, we needed to make a self-service store code.
2.0 OBJECTIVE
Input
Customers need to input their details, like whether they are students, so we can apply
the appropriate discount.
The customer also needs to enter their room number if they choose delivery to the room.
The customer needs to choose the type of delivery.
The customer needs to input the correct item type so we can send the correct item type.
The customer needs to input the correct item code so we can send the correct item.
Process
Calculate the total amount to be paid.
o After the customer is done shopping, the program will calculate the amount to be
paid later.
Output
Discount amount
o After shopping is done, the total amount to be paid will be displayed to the user.
Receipt
o After the process is done, the receipt will be shown to the user, which will show
the total price and how much discount the user got.
Delivery charge
o A delivery charge will be provided if the user chooses delivery to the room
4.0 SOLUTION
Flowchart Explanation
1. Start: Display a welcome message and prompt the user to start shopping.
2. Input Choice: If the choice is "no," display a thank-you message and
end. If "yes," proceed to show categories.
3. Category Selection: Display item categories and prompt the user to
select one.
4. Item Selection: Display items based on selected categories and prompt
the user to enter an item code.
5. Item Code Input: Validate the item code. If invalid, prompt again. If
"DONE," proceed to checkout.
6. Purchase Decision: Ask if the user wants to purchase the item.
If "yes," add the item price to the total.
If "no," return to item selection.
7. Repeat Steps 3–6 until the user inputs "DONE.".
8. Student Discount: Ask if the user is a UiTM student and apply a discount
if applicable.
9. Delivery Option: Ask if the user wants delivery and apply delivery
charges if applicable.
10. Display Summary: Show the total amount, discount, and delivery
charges.
11. End: Display a thank-you message and end the program.
4.1 Pseudocode
START
// Declared significant variables
Declare dONECODE, shoppingChoice, purchasedItems, category,
itemCode, findItem, itemName, studentStatus, deliveryChoice
Set purchasedItemCount = 0
Set sTUDENTDISCOUNTRATE = 0.05
Set dELIVERYCHARGE = 1.0
Set totalPrice = 0.0
Input shoppingChoice
// if user select NO
Display "Thank You for Coming to Our Store :D"
End While
While shoppingChoice == "yes" OR shoppingChoice == "Yes" OR
shoppingChoice == "YES"
Return itemName
End Function
Return itemPrice
End Function
4.2 Flowchart
Name as Figure 4.2 (figure name)
1. Functionality:
o The program effectively guides the user through a shopping process, allowing
them to select items from different categories (G for groceries, S for stationeries,
B for body care).
o It calculates the total price based on selected items and applies a discount if the
user is a UiTM student.
o It handles delivery options and adjusts the final price accordingly.
2. Input Handling:
o The solution includes input validation to ensure users provide correct inputs for
categories and item codes, preventing invalid selections.
3. Modularity:
o The use of functions (findItem and findPrice) to retrieve item details based on
category and item code enhances code readability and maintainability.
4. User Interaction:
o The program provides clear prompts and instructions throughout the shopping
process, guiding users on what inputs are expected.
Improvements to Suggest:
Ferragina, P., & Luccio, F. (2018), Computational Thinking: First Algorithms, Then
Code, Springer, ISBN:978331997940
No
Sub-
Attributes Submissio Poor Fair Good Excellent Weight
attribute
n Marks
0 1 2 3 4
No Poor use of white White space Good use of white Excellent use of
Submissio space makes program space. white space.
n (indentation, fairly easy to
blank lines). read. Sufficiently Creatively
organized work. organized work.
Pseudocode Readability Disorganized and Partially 3
messy. organized work. Good use of Excellent use of
variables and variables control
Poor use of Fairly use of control structures. structures.
variables and variables and
control structures. control structures.
Documentation Formatting No Poor report Fairly good report Good report Excellent report 1
/Project Report formatting formatting with formatting. formatting. formatting.
unorganized Follow the
content. documentation
References are
References format with an
Major included.
appropriate to the appropriate
grammatical
error. requirement arrangement and
fulfilled
No references Minor grammatical
requirements.
included. error.
TOTAL
52
Weigh
Attributes Sub-attribute Poor Fair Good Excellent
No Submission t Marks
0 1 2 3 4
Presentation Readability No There are many There are some There are a few There are no 2
of the Slides Presentation errors in spelling, errors in spelling, errors in spelling, errors in
grammar, and grammar, and grammar, and spelling,
punctuation. punctuation. punctuation. grammar, and
punctuation.
Bullet format is Bullet format is not Bullet format is
Bullets are
not consistent on
not consistent or consistent on some consistent and
a few slides.
clear. slides. clear.
Too much
Too much Too much Information is
information on
information on information on clear and
less than five
many slides. some slides. concise on each
slides.
slide.
No Background
Presentation makes the slides Appealing
hard to read. Graphic elements graphic
Graphics are are included elements are
There are too few
confusing and sufficiently. Only included
graphic elements.
Overall visual not related to one slides is hard appropriately.
Appropriate 2
Appeal words. to read and Slides are easy
background. Some
Too much movement and to read and
slides hard to read.
movement in the sounds are used movement and
slides. Many quite effectively. sounds are
slides hard to used effectively.
read.
Presents
Information and Presents findings Presents findings findings in an
Organization graphics are with some degree in an organized organized and 2
No disorganized of organization manner conclusive
Presentation manner
Does not
Perform
perform Perform assigned Perform assigned
Perform assigned assigned tasks
Work assigned tasks tasks within the tasks within the
tasks within the beyond the
Responsibilit within the scope of work scope of work and 2
scope of work and scope of work
y scope of work with close exceeds
meet expectations and beyond
even with close supervision expectations
expectations
supervision
Ethics &
Professionalis Has a
Has a less Has a well-
m disharmonious Has a satisfactory Has a good
harmonious acknowledged
relationship relationship with relationship with
relationship with relationship with
with co-workers co-workers and co-workers and
Work co-workers and co-workers and
and within within institution, within institution, 2
Relation within institution, within institution,
institution, work, groups and work, groups and
work, groups and work, groups
work, groups community when at community when
community when and community
and community work at work
at work when at work
when at work
TOTAL
48