Raks
Raks
PROJECT REPORT ON
ROLL NO :
CLASS : XII
IYYAPPANTHANGAL, CHENNAI
1
SRI CHAITANYA TECHNO SCHOOL IYYAPPANTHANGAL
CERTIFICATE
in the subject COMPUTER SCIENCE (083) laid down in the regulations of CBSE for
DATE:
PRINCIPAL
2
ACKNOWLEDGEMENT
Apart from the efforts of me, the success of any project depends largely on the
encouragement and guidelines of many others. I take this opportunity to express my
gratitude to the people who have been instrumental in the successful completion of
this project.
I express deep sense of gratitude to almighty God for giving me strength for the
successful completion of the project.
I express my deep sense of gratitude to the luminary The Principal, who has
been continuously motivating and extending their helping hand to us.
My sincere thanks to Mrs. M. Sashi Kala Master In-charge, A guide, Mentor all
the above a friend, who critically reviewed my project and helped in solving each and
every problem, occurred during implementation of the project
The guidance and support received from all the members who contributed and
who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.
3
Table of Contents
1 Certificate 2
2 Acknowledgement 3
4 Introduction 6
6 MySQL Database 12
7 Outputs 15
8 References 23
4
Hardwares and Softwares Required
Hardware Requirements:
Software Requirements:
5
Introduction
6
Features of the Online Grocery Store Inventory
1. Add New Items: Users can add items with details like item
name, quantity, price, and category.
2. View Inventory: Displays the list of all items available in the
inventory.
3. Update Item Details: Users can update details of specific items
in the inventory.
4. Delete Items: Users can delete specific items from the
inventory.
5. Graphical User Interface (GUI): A simple, user-friendly
interface built using tkinter.
7
Python Source Code
Here is the complete source code for the Online Grocery Store Inventory project.
import mysql.connector
import tkinter as tk
from tkinter import messagebox
# GUI Setup
window = tk.Tk()
window.title("Online Grocery Store Inventory")
tk.Label(window, text="Item Name").grid(row=0, column=0)
tk.Label(window, text="Category").grid(row=1, column=0)
tk.Label(window, text="Quantity").grid(row=2, column=0)
tk.Label(window, text="Price").grid(row=3, column=0)
item_entry = tk.Entry(window)
category_entry = tk.Entry(window)
quantity_entry = tk.Entry(window)
price_entry = tk.Entry(window)
item_entry.grid(row=0, column=1)
category_entry.grid(row=1, column=1)
quantity_entry.grid(row=2, column=1)
price_entry.grid(row=3, column=1)
8
MySQL Database
Table Structure:
9
Outputs
Screenshots to Include:
1. Adding an Item - Demonstrate how items are added via the GUI.
2. Viewing Inventory - Display the current list of items in the inventory.
3. Updating an Item - Show how item details are updated.
4. Deleting an Item - Show how items are removed from the inventory.
Sample Output
+----+------------+----------+----------+-------+---------------------+
| id | item_name | category | quantity | price | date_added |
+----+------------+----------+----------+-------+---------------------+
| 1 | Apples | Fruits | 50 | 2.50 | 2024-03-22 10:23:45 |
| 2 | Rice | Grains | 100 | 50.00 | 2024-03-23 12:45:21 |
+----+------------+----------+----------+-------+---------------------+
10
References
1. Python Documentation - python.org
2. MySQL Documentation - mysql.com
3. W3Schools - w3schools.com
4. GeeksforGeeks - geeksforgeeks.org
11