Professional Documents
Culture Documents
Kendriya Vidyalaya Kamptee: Project Report On Shoe Billing
Kendriya Vidyalaya Kamptee: Project Report On Shoe Billing
Kendriya Vidyalaya Kamptee: Project Report On Shoe Billing
KAMPTEE
CERTIFICATE
This is to certify that
has successfully completed the project
work entitled SHOE BILLING SYSTEM
in the subject Computer Science(083) laid
down in the regulations of CBSE for the
purpose of Practical Examination in class
XII to be held in KV Kamptee.
SIGNATURE
TABLE OF CONTENTS:
1. Acknowledgement
2. Introduction
3. System Requirements
4. Python Coding
5. Output of the project
6. References
ACKNOWLEDGEMENT
Introduction
This project is based on the way in which
billing is done in stores here it is the shoe
billing, this is helpful for owners to maintain
the list of the sales done on the day or in a
year and also helpful in calculating profit.
By using this the owner can avail the
following benefits:
1. Enter customer details
2. Show customer details
3. Total sales in a specific month
4. Total no. of customer served in a month
5. Total no. of customers using exported
PYTHON CODING
import mysql.connector as c
con=c.connect(host='localhost',user='root',passwd='mysqlrootpass')
if con.is_connected():
print('connected sucessfully')
mycursor=con.cursor()
mycursor.execute('create database if not exists shoe_billing')
con=c.connect(host='localhost',user='root',passwd='mysqlrootpass',database='shoe_bill
ing')
mycursor=con.cursor()
ccc='''CREATE TABLE if not exists shoe_details(
shoe_code int(30) primary key,
brand_name varchar(25),
customer_name varchar(25),
customer_number varchar(20),
customer_address varchar(50),
amount int(8)
)'''
mycursor.execute(ccc)
cursor=con.cursor()
user=input("enter user:")
passwd=input("enter password")
if user=='root' and passwd=='mysqlrootpass':
print(" shoe billing")
print(" ")
print("1:ENTER CUSTOMER DETAILS")
print(" ")
print("2:SHOW CUSTOMERS DETAILS")
print(" ")
import mysql.connector as c
con=c.connect(host='localhost',user='root',passwd='mysqlrootpass')
if con.is_connected():
print('connected sucessfully')
mycursor=con.cursor()
mycursor.execute('create database if not exists shoe_billing')
con=c.connect(host='localhost',user='root',passwd='mysqlrootpass',database='shoe_bill
ing')
mycursor=con.cursor()
ccc='''CREATE TABLE if not exists shoe_details(
shoe_code int(30) primary key,
brand_name varchar(25),
customer_name varchar(25),
customer_number varchar(20),
customer_address varchar(50),
amount int(8),
month int(4)
)'''
mycursor.execute(ccc)
mycursor=con.cursor()
user=input("enter user:")
passwd=input("enter password")
if user=='root' and passwd=='mysqlrootpass':
print(" shoe billing")
print(" ")
print("1:ENTER CUSTOMER DETAILS")
print(" ")
print("2:SHOW CUSTOMERS DETAILS")
print(" ")
print("3:TOTAL SALES IN A SPECIFIC MONTH")
print(" ")
print("4:TOTAL NUMBER OF CUSTOMERS SERVED HERE")
print(" ")
print("5:TOTAL NUMBER OF CUSTOMERS SERVED IN A MONTH")
print(" ")
v_choice=int(input("enter the choice"))
if v_choice==1 :
shoe_code=input("enter code=")
brand_name =input("enter brand=")
customer_name=input("enter customer name=")
customer_number=input("enter phone number=")
customer_address=input ("address=")
amount=input("amount=")
month=int(input("Month:"))
query="insert into shoe_details values({},'{}','{}','{}','{}',{},
{})".format(shoe_code,brand_name,customer_name,customer_number,customer_addr
ess,amount,month)
mycursor.execute(query)
con.commit()
print("data is updated")
elif v_choice==2:
v_code=input("enter the code number")
mycursor.execute("select*from shoe_details where shoe_code ="+v_code)
data=mycursor.fetchall()
print("Shoe code:",data[0][0])
print("brand name:",data[0][1])
print("customer name:",data[0][2])
print("customer number:",data[0][3])
print("customer detail:",data[0][4])
print("amoumt:",data[0][5])
elif v_choice==3:
m=input("Enter the Month you are looking for 1-12:")
mycursor.execute("select sum(amount) from shoe_details where month="+m)
k=mycursor.fetchall()
print("Total sales:Rs",k[0][0])
elif v_choice==4:
mycursor.execute("select count(shoe_code) from shoe_details")
v=mycursor.fetchall()
print("total coustomers served till today:",v[0][0])
elif v_choice==5:
c=input("Enter the month:")
mycursor.execute("select count(shoe_code) from shoe_details where
month="+c)
f=mycursor.fetchall()
print("number of customers using brands other than these:",f[0][0])
OUTPUT OF THE PROJECT
Finally we conclude our work and
present the output as:
6. Enter customer details
7. Show customer details
8. Total sales in a specific month
9. Total no. of customer served in a month
10. Total no. of customers using exported
Brands
1.ENTER CUSTOMER DETAILS
MAIN SCREEN
Database:
TABLE STRUCTURE:
DATA GENERATED THROUGH
CODING:
REFERENCES:
1. google.com
2. python.org
3. Class XII CS BOOK by Sumita Arora