Project

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 23

INDEX

S.No TOPICS Page No.


1 Acknowledgement
2 Certificate
3 Introduction
4 Database, Tables
and Function
description
5 Source Code
6 Output
7 Hardware and
Software
Department
8 Bibliography
ACKNOWLEDGEMENT

This is to certify Toshit Ujjenwal, student of Class 12 Science ,


has successfully completed the project titled "Facemash
Supermart Management" during the academic session 2024-
2025 under my guidance and supervision.
This project is an original piece of work carried out by the
student in partial fulfilment of the requirements for the Class 12
CBSE curriculum. The project has been evaluated and found to
be comprehensive, informative, and well-presented.
I congratulate Toshit Ujjenwal for their dedication, effort, and
hard work in completing this project and wish them success in
their future endeavours.
Sudha Shrivastava
Rashtra Shakti Vidyalaya

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

Database name: Facemash_Supermart


1. Inventory Table
 Purpose:
The Inventory Table is a crucial element of the system that allows efficient
management of products in the supermart. Its purposes include:
1. Product Management: Enables the owner to add new products,
update existing details (e.g., price, stock levels), or remove obsolete
products.
2. Stock Monitoring: Helps the owner maintain an optimal inventory by
keeping track of available quantities and ensuring timely restocking
to prevent shortages or overstocking.
3. Customer Interface: Provides a list of available products, their
categories, and prices, which are displayed to customers during
shopping.

4. Offer Implementation: Supports the weekly discount feature by


categorizing products, making it easier to apply discounts on specific
product categories.
2. Sales Table
Purpose:
The Sales Table serves as a detailed record of all completed transactions,
offering the following benefits:
1. Sales Tracking: Enables the owner to monitor daily, weekly, or
monthly sales trends, helping identify peak business periods or
popular products.
2. Customer Insights: Maintains a record of customer purchases, helping
analyze buying patterns to improve inventory planning and customer
satisfaction.
3. Financial Records: Stores transaction details, including the total
amount paid, which is critical for financial analysis and taxation
purposes.
4. Auditing and Transparency: Serves as a reference for auditing,
ensuring that every transaction is accounted for and enhancing
business transparency.
5. Performance Evaluation: Assists the owner in evaluating the
effectiveness of offers (e.g., the weekly discount) by observing
changes in sales trends during promotional periods.
SOURCE CODE
OUTPUT
OWNER
CUSTOMER
Hardware Requirements:
A Computer / Laptop with Operating system
Windows 10/11
or above X86 64-bit CPU(Intel/AMD
architecture )4 GB RAM 5 GB Free disk space.
Software Requirements:
Python 3.6x or higherversion connectivities
Library preinstalled Ms-Office installed
LIMITATIONS
Only deals with the core
functionality of the Hotel.
There is no GUI available
It is not a web based project

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.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy