Kendriya Vidyalaya Kamptee: Project Report On Shoe Billing

You might also like

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

KENDRIYA VIDYALAYA

KAMPTEE

Academic year: 2022-23


Project Report on Shoe Billing
This project is prepared by the group
members of class XII A:

Anisha Lokhande – Roll no. 6


Arpita Rathore – Roll no. 8
Unnati Chimurkar – Roll no. 34

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

I would like to express my immense


gratitude to my Computer Science teacher
Ms.Shivali Tiwari Ma’am , for the help
and guidance she provided for completing
the project.

I also thank my parents who gave their


ideas and inputs in making this Project.
Most of all I thank our school
management, for providing us all the
facilities and opportunity to do this project.

Project On Shoe Billing System

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

System Requirements of the project


Recommended System Requirements:
Processors: Intel®️Core™️i3 processor 4300M at 2.60
Ghz. Disk space: 2 to 4 GB. Operating systems:
Windows®️10, MACOS, and UBUNTU. Python Versions:
3.X.X or Higher.

Minimum System Requirements


Processors: Intel Atom®️processor or Intel®️Core™️i3
processor. Disk space: 1 GB. Operating systems:
Windows®️7 or later, MACOS, and UBUNTU. Python
Versions: 2.7.X, 3.6.X.
Prerequisites before installing MySQL Connector
Python:
You need root or administrator privileges to perform
the installation process. Python must be installed on
your machine. Note: MySQL Connector Python
requires python to be in the system’s PATH. Installation
fails if it doesn’t find Python. On Windows, If Python
doesn’t exist in the system’s PATH, please manually
add the directory containing python.exe yourself or
reinstalling python on your system can help.

Pre requisites before installing MySQL


Connector Python:
You need root or administrator privileges to
perform the installation process.
Python must be installed on your machine.
Note: MySQL Connector Python requires
python to be in the system’s PATH.
Installation fails if it doesn’t find Python.
On Windows, If Python doesn’t exist in the
system’s PATH, please manually add the
directory containing python.exe yourself or
reinstalling python on your system can help.

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(" ")

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=")
query="insert into shoe_details values({},'{}','{}','{}','{}',
{})".format(shoe_code,brand_name,customer_name,customer_number,customer_addr
ess,amount)
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])

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

3.TOTAL SALES IN A SPECIFIC MONTH


2.SHOW CUSTOMER DETAILS
5. TOTAL NO OF CUSTOMERS USING EXPORTED BRANDS
4. TOTAL NO OF CUSTOMERS SERVED HERE

MySQL DATABASE AND TABLES


USED IN THIS PROJECT

Database:
TABLE STRUCTURE:
DATA GENERATED THROUGH
CODING:
REFERENCES:
1. google.com
2. python.org
3. Class XII CS BOOK by Sumita Arora

This is to certify that


Cadet G.RAGHAVAN
Rollno 6011 hassuccessfully
completed the project Work
entitlted SHOE BILLING
SYSTEM (SBS) 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 Sainik School
Amaravathinaga
This is to certify that
Cadet G.RAGHAVAN
Rollno 6011 hassuccessfully
completed the project Work
entitlted SHOE BILLING
SYSTEM (SBS) 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 Sainik Sch

You might also like