CS project file
CS project file
UPPARWAHI
COMPUTER SCIENCE
PROJECT STORE
MANAGEMENT SYSTEM
INSTRUCTED BY PRESENTED BY
1. Introduction 5
3. Requirements 7
4. System Objectives 8
7. Coding 16-48
8. Output 49-63
9. Testing Technology 64
10. Reference 65
INTRODUCTION
Everyone in this world has to face
some kind of difficulties.
Specially when it comes to any
kind of Store. It is difficult to
manage the records of the Store.
The proprietor may face difficulty
in analyzing the profit & loss of
the business.
The store has a lot of stock. And
many customers visit there to buy
the Things every hour. Now a
shopkeeper has to maintain so
many records of the stock,
transactions, customer etc.
This system helps the staff to
manage the records of the item,
customer and transaction; that
will make the task easy for the
staff to find any record easily.
REQUIREMENTS
SOFTWARE:
❖ Operating System
Windows.11
❖ MySQL 8.0
❖ Python 3.11
❖ MS Word for Report
Presentation
HARDWARE:
❖ Printer to print
❖ Pen Drive
❖ computer
SYSTEM OBJECTIVES
❖ Improves the control
and performance
The system is developed to cope
up with the issues and problems
faced by every Enterprise This
system helps to Insert, Display,
Search, Update and Delete any
record of the Item, Costumer and
Transaction.
❖ Saves Cost
After the computerized system it
is not necessary to maintain any
physical register to maintain the
records. Also it minimizes the
human force. Hence overall the
cost is reduced.
❖ Saves Time
A shopkeeper will be able to find
any record quickly in the shop. So
it saves time of the staff working
in the shop.
GENERAL
DESCRIPTION
❖ MAIN MENU
The main menu contains 5 sub
menus’ –
1. Add Records
2. Display Records
3. Update Records
4. Search Records
5. Delete Records
❖ Add Records
This sub menu has 3 choices
which helps to insert the records.
1. Add Store Item
To insert the record in the table
Enterprise.
2. Add Customer
To insert the record in the table
Customers.
3. Add Transaction
To insert the record in the table
Transactions.
❖ Display Records
This sub menu has 5 choices
which helps to insert the records.
1. Display store
To display all the record of the
table Store.
2. Display 1 Store
To display only 1 records of the
table Store.
3. Display Customer
To display all the record of the
table Customer.
4. Display 1 Customer
To display only 1 records of the
table Customer.
5. Display Transaction
To display all the record of the
table Transactions.
6.Display 1 Transaction
To display only 1 records of the
table Transactions.
❖ Update Records
This sub menu has 5 choices
which helps to insert the records.
1. Update Store Quantity
To change the Quantity of an
item from the table Store.
2. Update Customer Address
To change the Address of a
customer from the table
Customer.
3. Update Customer Name
To change the Name of a
customer from the table
Customer.
4. Update Transaction Amount
To change the Amount of a
transaction from the table
Transaction.
5.Update Transaction Name
To change the Name of
transaction from the table
Transaction.
❖ Search Records
This sub menu has 6 choices
which helps to insert the records.
1. Search Store
To search any record from the
table Store.
2. Search Store Quantity
To search any store quantity
from the table Store.
3. Search Customer
To search any customer from
the table Customer.
4. Search Customer Address
To search any customer
address from the table
Customer.
5.Search Transaction
To search any transaction from
the table Transaction.
6. Search_1_Transaction
To search only 1 transaction
from the table Transactions.
❖ Delete Records
This sub menu has 3 choices
which helps to insert the records.
1. Delete Store Item
To delete the record from the
table Store.
2. Delete Customer
To delete the record from the
table Customers.
3. Delete Transaction
To delete the record from the
table Transactions.
Table
Designing
There is total 3 tables in
MySQL.
1. Store table contains all the
information of the stock.
2. Customers table contains
all the information of the
customers.
3. Transactions table
contains all the information
of the transactions.
CODING
print ("Welcome To CHAITANYA
ENTERPRISES") print ( )
print("⁕"*17,"~~~~~~","⁕"*17)
print( )
import mysql.connector
# To Add A Records
def Add_Records():
# To Add A Records Of Store def
Add_Store_Item():
con=mysql.connector.connect(ho
st="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
no=int(input("Enter Item
Number=")) na=input("Enter Item
Name=")
sc=int(input("Enter Item Code="))
iq=int(input("Enter Item
Quantity=")) cur.execute("insert
into
store(ItNo,ItName,Stcode,ItQuanti
ty)values(%s,%s,
%s,%s)",(no,na,sc,iq))
print("One Item Inserted
Successfully")
print("-"*35) print("Add
Next or press 'E' to
Exit...") print(" "*35)
con.commit() con.close()
# To Display A Records
def Display_Records():
# To Display A Records Of
Store def Display_store():
con=mysql.connector.connect(hos
t="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
cur.execute("select * from store
order by ItNo asc") for x in cur:
print(x) print("-"*35)
print("Display Next or press 'E' to
Exit...") print(" "*35)
# To Display A Records Of
Transaction def
Display_Transaction():
con=mysql.connector.connect(hos
t="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
cur.execute("select * from
transaction order by TrNo asc") for
x in cur: print(x) print("-"*35)
print("Display Next or press 'E' to
Exit...") print(" "*35)
Display_1_Store()
elif choice=='3':
Display_Coustomer()
elif choice=='4':
Display_1_Coustomer()
elif choice=='5':
Display_Transaction()
elif choice=='6':
Display_1_Transaction()
elif choice=='E'or'e':
print("Thank You For
Using
Display_Record")
break
main_menu()
# To Update A Records
def Update_Records():
# To Update A Records Of Store
Quantity def Update_Store_Qt():
con=mysql.connector.connect(ho
st="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
n=input("Enter Item Name To
Update=")
q=int(input("Enter Item Quantity
That Would Be Updated="))
cur.execute("update store set
ItQuantity=%s where ItName=
%s",(q,n)) print("Store
Updated") print("-"*35)
print("Update Next or press 'E'
to Exit...") print(" "*35)
con.commit() con.close()
# To Update A Records Of
Transaction
Name
def Update_Transaction_Name():
con=mysql.connector.connect(ho
st="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
i=input("Enter Transaction
Number To Update=")
q=input("Enter Transaction Name
That Would Be Updated=")
cur.execute("update transaction
set Cname=%s where TrNo=%s",
(q,i)) print("Amount Updated")
print("-"*35) print("Update Next or
press 'E' to Exid...") print(" "*35)
con.commit() con.close()
Update_Customer_Address(
) elif choice=='3':
Update_Customer_Name()
elif choice=='4':
Update_Transaction_Amount
() elif choice=='5':
Update_Transaction_Name(
) elif
choice=='E'or'e':
print("Thank You For
Using
Update_Store
")
break
main_menu()
# To Search A Records
def Search_Records():
# To search A Records Of Store def
Search_Store():
con=mysql.connector.connect(ho
st="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
r=input("Enter Item Name To
Search=") cur.execute("select
*from store where ItName=%s",
(r,)) for x in cur: print(x)
print("Searched Record")
print("-"*35) print("Search
Next or press 'E' to
Exit...") print(" "*35)
con.commit() con.close()
Search_Customer_Addre
ss() elif
choice=='5':
Search_Transaction()
elif choice=='6':
Search_1_Transaction()
elif choice=='E'or'e':
print("Thank
You For Using
Search_Store")
break main_menu()
# To Delete A Records
def Delete_Records():
# To Delete A Records Of
Store def Delete_Store():
con=mysql.connector.connect(hos
t="localhost",user=
"root",passwd="chaitanya",datab
ase="cp") cur=con.cursor()
r=input("Enter Item Name To
Delete=") cur.execute("delete
from store where ItName=%s",
(r,)) print("Deleted Sucessfully")
print("-"*35) print("Delete Next or
press 'E' to Exit...") print(" "*35)
con.commit() con.close()
Display_Records()
elif choice=='3':
Update_Records()
elif choice=='4':
Serach_Records()
elif choice=='5':
Delete_Records()
elif
choice=='E'or'e':
print("Thank You For
Using My Program")
exit() main_menu()
OUTPUT
1.MAIN MENU
REFERENCES
o Sumitra Arora Computer
Science with
Python Textbook of
class XI & XII o
http://www.google.com
o
http://www.youtube.co
m o
https://www.learnindia.
co.in o
https://www.RaviSharm
a.com
THANK
YOU