Download as pdf or txt
Download as pdf or txt
You are on page 1of 14

COMPUTER

PROJECT
ON
ELECTRONIC SHOP MANAGEMENT
(2022-2023)

Submitted By: Mridul Tripathi


Class: XII D
Board Roll No.:
TABLE OF
CONTENTS

S.No Description Page


1 Acknowledgement 3
2 Hardware and Software Requirements 4
3 About this Project 5
4 Objective of this Project 5
5 Source Code 6
6 Output 11
7 Bibliography 14
ACKNOWLEDGEMENT

I would like to express my special thanks of


gratitude to Ms. Sofia Goel our subject
teacher, whose help and encouragement
made it possible for me to complete the
project on the topic Electronic Shop
Management, who also helped me in doing
the Research and I came to know about many
new things.

Secondly, I would also like to thank my


parents and friends who helped me a lot in
finalizing this project within the limited time
frame.
Hardware And Software
Requirements

HARDWARE
Processor: Dual Core /Pentium(any)
Hard Disk: 40GB
RAM: 512MB
Motherboard: 1.845 or 915,995 for Pentium

SOFTWARE
Operating System: Windows 7
Platform: Python IDLE 3.7
Database: MySQL
Language: Python
About this Project
Electronic shop management system is a system which
will help the owners of the electronic equipment shops
to carry out the day to day businesses in a smooth and
organised way. This system is developed specifically to
ease the needs of the Department of sales and
purchase. The electronic shop management system
complete project gives the complete details of the
electronic shop management application in detail.

Objective of Project
The objective of the project is to let the students apply the
programming knowledge into a real - world situation /
problem and exposed the students how programming skills in
developing good software.
SOURCE CODE
FOR CONNECTING MYSQL AND CREATING

FIRST TABLE :

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='manager'

,database='electronic_shop')

if conn.is_connected:

print('ELECTRONIC SHOP SYSTEM')

print('1.items')

print('2.labours')

print('3.customers')

print('4.sales')

print('5.expenses')

cur=conn.cursor()

cur.execute('create table items(s_no int(10),item varchar(50)

primary key,availability_of_item int(10),price int(7))')

conn.commit()

FOR CREATING OTHER TWO TABLES :

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='manager'

,database='electronic_shop')
cur=conn.cursor()

cur.execute('create table labours(name varchar(25) primary

key,age int(10),place varchar(25),department varchar(25))')

cur.execute('create table customer(customer_name varchar(50)

primary key,age int(10),place varchar(25),item_bought

varchar(25))

conn.commit()

MAIN SOURCE CODE :

import mysql.connector as sql

conn=sql.connect(host='localhost',user='root',passwd='manager'

,database='electronic_shop')

cur=conn.cursor()

if conn.is_connected:

print('

ELECTRONIC SHOP SYSTEM')

print('

1.admin')

print('

2.customers')

choice=int(input('enter the choice:'))

if choice==1:

pw='whysoserious'

passwrd=input('enter the password:')


print('

1.entry for item')

print('

2.entry for labour')

print('

3.entry for customer')

choose=int(input('enter the choice for entry:'))

if choose==1:

item=input('enter the name of item:')

availability=int(input('availability of the item:'))

price=int(input('enter the price of item in rupees:'))

cur.execute("insert into items values('" + item + "',"

+ str(availability) + "," + str(price) + ")")

print('entry succesful')

conn.commit()

elif choose==2:

name=input('enter the name of labour:')

age=int(input('enter the age:'))

place=input('enter the place of the labour:')

dept=input('enter the name of the department:')

cur.execute("insert into labours values('" + name +

"','" + str(age) + "','" + place + "','" + dept + "')")

print('entry sucessful')

conn.commit()

elif choose==3:

name=input('enter the name of the customer:')


age=int(input('enter the age:'))

place=input('enter the place of the customer:')

item=input('enter the item bought:')

cur.execute("insert into customer values('" + name +

"','" + str(age) + "','" + place + "','" + item + "')")

print('entry sucessful')

conn.commit()

elif choice==2:

print('

1.Display of item list')

print('

2.Display of labour list')

print('

3.Display of customer list')

ch=int(input('enter the choice'))

if ch==1:

print()

cur.execute("select * from items")

dataa=cur.fetchall()

print('list of items')

for row in dataa:

print()

print('item:',row[0])

print('availablity:',row[1])

print('price:',row[2])

elif ch==2:
print()

cur.execute("select * from labours")

data=cur.fetchall()

print('list of labours')

for row in data:

print()

print('name:',row[0])

print('age:',row[1])

print('place:',row[2])

print('department:',row[3])

elif ch==3:

print()

cur.execute("select * from customer")

datas=cur.fetchall()

print('list of customer')

for row in datas:

print()

print('name:',row[0])

print('age:',row[1])

print('place:',row[2])

print('item bought:',row[3])
OUTPUT
BIBLIOGRAPHY

WEBSITES
https://www.w3resource.com

www.geeksforgeeks.org

www.computerscience.org

BOOKS
Computer Science with Python class 12 (Preeti Arora)
Computer Science with Python class 12 (Sumita Arora)
Computer Science (NCERT)

You might also like