CS
CS
CLASS:- XII-A
ROLL NUMBER:-
ACKNOWLEDGEMENT
DEPARTMENT OF COMPUTER
SCIENCE
___________ ___________
SIGNATURE OF SIGNATURE OF
INTERNAL EXAMINER EXTERNAL EXAMINER
TABLE OF CONTENT
Demerits
Excel export has not been developed for products
sold.
The transactions are executed in offline mode only.
Online transactions for sales, discounts, or other
data modifications are not possible.
Offline reports of sales, products, discounts and
stocks cannot be generated due to batch mode
execution
PROJECT OBJECTIVES
SOFTWARE:-
1) OPERATING SYSTEM:- WINDOWS 11 IS
CHOOSEN AS MY OPERATING SYSTEM BECAUSE
OF ADDITIONAL FILE SYSTEM, IMPROVED
PERFORMANCE ON MULTI CORE PROCESSORS,
IMPROVED BOOT PERFORMANCES, SECURITY
FEATURES AND BETTER GUI.
2) DATABASE (MySQL):- MySQL IS SELECTED AS
DATABASE.
3) PROGRAMMING LANGUAGE:- PYTHON IS
USED AS IT IS MORE USER FRIENDLY AND EASY
TO PROGRAM.
HARDWARE:-
1) PROCESSOR:- 12th GEN INTEL®CORE™ I5-1235U
2) RAM:- 16 GB
3) SCREEN RESOLUTION:- 1920 x 1080 PIXEL
SOURCE CODE
importmysql.connector as sql
conn=sql.connect(host='localhost',user='root',passwd='manager',database='s
hoe_billing')
conn.autocommit=True
c1=conn.cursor()
c1.execute("create table shoe_details(shoe_code int primary
key,brand_name varchar(25),customer_name
varchar(25),customer_number,customer_address,amount )")
c1=conn.cursor()
user=input("Enter Username")
passwd=input("Enter Password")
if user=='Bavaleena' and passwd=='Navyatha':
ans="y"
while ans.lower()=="y":
print(" SHOE BILLING")
print(" ")
print("1:ENTER CUSTOMER DETAILS")
print("2:SHOW CUSTOMERS DETAILS")
print("0.Exit")
print(" ")
v_choice=int(input("Enter the choice:"))
if v_choice==1 :
code=input("Enter Code=")
brand =input("Enter Brand=")
name=input("Enter Customer Name=")
number=input("Enter Phone Number=")
details=input ("Address=")
amount=input("Amount=")
c1.execute("insert into shoe_details values
("+code+",'"+brand+"'"+",'"+name+"',"+number+",'"+details+"',"+amount+")"
)
conn.commit()
elif v_choice==2:
v_code=input("Enter The Code Number:")
c1.execute("select * from shoe_details where
shoe_code ="+v_code)
data=c1.fetchall()
print("Shoe Code","%2s"% "Brand Name","%2s"%
"Customer Name","%2s"% "Customer Number","%2s"% "Customer
Detail","%2s"% "Amoumt")
print(data[0][0],"%2s"% data[0][1],"%2s"%
data[0][2],"%2s"% data[0][3],"%2s"% data[0][4],"%2s"% data[0][5])
elif v_choice==0:
conn.close()
print("Bye!")
else:
print("Invalid Choice")
ans=input("Want to Repeat(Y/N):")
OUTPUT
INPUTING
BILL
DETAILS
SHOWING
CUTOMER
DETAILS
BLIOGRAPHY
1. https://www.google.com
2. https://www.bing.com
3. https://www.w3resource.com
4. https://pythonworld.in/practical-
project/project-list/
5. Computer Science With Python – By Sumita
Arora