Project
Project
Project
Teacher’s Signature
CERTIFICATE
I would like to express my sincere gratitude to all those who
supported and guided me during the completion of my project
on Facemash Supermart Management.
First and foremost, I would like to thank my teacher, Ms. Sudha
Shrivastava, for their valuable insights, encouragement, and
constructive feedback throughout the project. Their expertise
and guidance were instrumental in shaping this work.
I am deeply grateful to my school, Rashtra Shakti Vidyalaya, for
providing me with the resources and opportunities to undertake
this project. The knowledge and skills gained during this process
will be invaluable in my academic journey.
I would also like to thank my family and friends for their
unwavering support and encouragement, which motivated me
to complete this project successfully.
Lastly, I extend my heartfelt thanks to all individuals and sources
whose direct or indirect contributions made this project a
reality.
Thank you all for your invaluable support.
Toshit Ujjenwal
Class 12
Board roll no. :
Rashtra Shakti Vidyalaya
INTRODUCTION
1. The Facemash Supermart Management System is an
application designed to manage various aspects of a grocery
store, providing an efficient and streamlined process for both
customers and store owners. The system handles key
operations such as inventory management, shopping, cart
handling, billing, and sales tracking, offering a smooth and
intuitive experience for all users.
2. Built using Python and integrated with a MySQL database,
this project ensures robust data handling and easy access to
information. It allows customers to view products, place
orders, and receive automated billing, while enabling store
owners to manage the inventory, update product details,
monitor sales, and apply weekly offers. The system is
designed to reduce errors, save operational time, and improve
the overall customer experience.
3. For Owners:
o Authenticate using a password to access the admin
functions.
o Perform various administrative tasks such as:
1. Add – New products to the inventory, update
product details, and apply weekly offers.
2. Modify – Edit product details like prices, categories,
and availability.
3. View – Sales records, inventory data, and customer
orders for business insights.
o Offer weekly promotions such as a 5% discount on any
two categories, enhancing customer engagement and
boosting sales.
4. For Customers:
o Browse through the store’s inventory and add products to
their cart.
o View their cart, apply discounts, and proceed to
checkout.
o Automatically generate a detailed bill, which includes the
total amount, taxes, applied discounts, and a breakdown
of the order.
o Take advantage of weekly offers, such as discounts on
products across different categories.
5. This system aims to simplify grocery store management by
automating processes that are traditionally done manually,
such as sales tracking, billing, and inventory updates. By
ensuring that both customers and owners have a seamless
experience, the system is designed to improve operational
efficiency, customer satisfaction, and overall business
performance.
6. Modules used (Python):
o pymysql – For connecting to the MySQL database and
managing inventory data.
o random – For generating random values, such as order
IDs or discounts.
o os – For handling file operations, such as saving data or
managing logs.
o tabulate – For formatting data in a table view for easy
reading.
o datetime – For handling dates and times, including billing
dates and applying time-based discounts.
7. The Facemash Supermart Management System is an
essential tool for modern grocery store operations, making
inventory management, sales tracking, and customer
interactions efficient, automated, and error-free
FUNCTIONS
Total number of functions: 9
connect_to_mysql()
This function establishes a connection to the MySQL database
using pymysql. It ensures proper communication between the
Python script and the database.
show_inventory(cursor)
Displays all the products in the inventory categorically. The
product list is shown in a neat, numbered format for easy user
selection.
shop(cursor)
Allows customers to add products to their cart. The user selects
items by their number and specifies the quantity, which is then
recorded in the cart.
view_cart(cart)
Displays the contents of the cart, including product names,
quantities, and total cost. Shows the overall subtotal of the
items added.
billing(cart, cursor)
Handles the billing process. If the cart contains products from
two or more categories, a 5% discount is applied. The function
also records delivery options, calculates the final total, and
saves the sale details in the database.
record_sale(cart, customer_name, total, cursor)
Saves the customer name, total bill amount, product names,
and quantities into the sales table for future reference.
edit_inventory(cursor)
Allows the owner to add, update, or remove products in the
inventory. It provides a menu-driven approach to manage the
inventory database.
view_sales(cursor)
Fetches and displays all the recorded sales, including customer
names, total amounts, purchased products, and their quantities.
main()
The main driver of the program. It identifies the user's role
(customer or owner) and presents a menu of actions based on
the role. It ensures seamless navigation and interaction with the
features.
DATABASES
Total number of tables : 2
BIBLIOGRAPHY
Online Python documentati
on for
python command syntax.
Text book
: Computer Science
Class XI and XII NCERT.
Google.com : For any online
queries
CHATGPT: For any code based
logical help.