Supermarket Billing Problem Statement
Supermarket Billing Problem Statement
Submitted By:
Muhammad Abdullah (2023-CS-522)
Husnain Ali(2023-R-2022-CS-545)
Section: A
Submitted To:
Mam.Sadia
UML diagram
Item
Item1
Item_ID Inventory Support Library
Item_ID Name
Name Item_list Fun1()
Rate Fun2()
Rate Add_item()
Quantity
Quantity Delete_item()
amount Update_item()
update_stock() FunN()
Get_Product_Info()
Billing
Customer
Transaction_ID
customer_ID
Customer_id
Name
Item1_list Manager Points
Total amount
ID: Add_customer()
Buy_item() Name: Update_points()
Cancel_item()
assign_customer_Id() Manager can access the
make_payment() all functions of
inventory and make
change in inventory
INVENTORY
• UPLOAD DATA TO INVENTORY
– Remember we have limited memory and
bigger inventory data
– What is your structure of inventory object?
Array, link-list or hash or something else or
combination
– Item_ID is the 12 digit number
Manager
• Manager can upload and update the
inventory data
• Manager can retrieve any information
about item and can make any changes to
the inventory
• Manger can add or delete the product
from inventory; and can change the rate,
and quantity of the product e.g.
update_item()
Billing
• It is the agent having functionalities that you
generally encounter at billing counter
• On calling make_payment() function, it print the
bill containing
– On the top of bill Transaction_ID and Custormer_ID. Then
product Id, rate, quantity, amount
– at last total amount
– You need to adjust stoke of inventory along with buy or
cancel process or just after make_payment() executed
• If there is new customer; add customer to
customer dataset , Here Phone No. is customer ID
Customer
• It is database of customer information
• Remember, number of customer may be
high in number in future
• What is your structure of Customer dataset ?
Array, link-list or hash or something else
Transaction_ID: ABCDEFGH
Customer_ID: 9909988081
Product ID, Name, Rate, Quantity, Amount,
100000100002, product_B, 200, 1, 200
200300100001, product_Q, 1000, 2, 2000,
200300100003, product_Y, 500, 5, 2500
Total: 4700
Inventory dataset after one
billing
Product ID Name rate quantity
100000100001 product_A 100 100
100000100002 product_B 200 99
100000100003 product_C 50 200
100000100004 product_D 40.50 200