Electronic Shop Management Project

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

TABLE OF CONTENTS [ T O C ]

SER DESCRIPTION PAGE NO

01 ACKNOWLEDGEMENT 04

02 INTRODUCTION 05

03 OBJECTIVES OF THE PROJECT 05

04 PROPOSED SYSTEM 06

05 SYSTEM DEVELOPMENT LIFE CYCLE (SDLC) 07

06 PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE 08

07 FLOW CHART 15

08 SOURCE CODE 16

09 OUTPUT 19

10 TESTING 20

11 HARDWARE AND SOFTWARE REQUIREMENTS 23

12 BIBLIOGRAPHY 24

ACKNOWLEDGEMENT

1
Apart from the efforts of me, the success of any project depends largely on
the encouragement and guidelines of many others. I take this opportunity to express
my gratitude to the people who have been instrumental in the successful completion
of this project.

I express deep sense of gratitude to almighty God for giving me strength for
the successful completion of the project.

I express my heartfelt gratitude to my parents for constant encouragement


while carrying out this project.

I gratefully acknowledge the contribution of the individuals who contributed in


bringing this project up to this level, who continues to look after me despite my flaws,

I express my deep sense of gratitude to the luminary The Principal,


Prudence School, Dwarka 22 who has been continuously motivating and extending
their helping hand to us.

I am overwhelmed to express my thanks to The Administrative Officer,


Prudence School, Dwarka 22 for providing me an infrastructure and moral support
while carrying out this project in the school.

I shall fail in my duty if I didn’t thank Ms. Smitha Balakrishnan, Project In-
charge, A guide, Mentor all the above a friend, who critically reviewed my project
and helped in solving each and every problem, occurred during implementation of
the project

The guidance and support received from all the members who contributed
and who are contributing to this project, was vital for the success of the project. I am
grateful for their constant support and help.

2
PROJECT ON ELECTRONIC SHOP MANAGEMENT

INTRODUCTION

This programme helps the electronic shopkeepers for a smooth administration,

this programme consists a user name login & employee name and login .

there are certain amount products which are kept as a basic products. The user can

login themselves and start buying the products, whereas the shop owner can

manage their employee with this program.

OBJECTIVES OF THE PROJECT

The objective of this project is to let the students apply the programming

knowledge into a real- world situation/problem and exposed the students how

programming skills helps in developing a good software.

1. Write programs utilizing modern software tools.

2. Apply object oriented programming principles effectively when developing

small to medium sized projects.

3. Write effective procedural code to solve small to medium sized problems.

4. Students will demonstrate a breadth of knowledge in computer science, as

exemplified in the areas of systems, theory and software development.

5. Students will demonstrate ability to conduct a research or applied Computer

Science project, requiring writing and presentation skills which exemplify

scholarly style in computer science.

3
PROPOSED SYSTEM

Today one cannot afford to rely on the fallible human beings of be really

wants to stand against today’s merciless competition where not to wise saying “to

err is human” no longer valid, it’s out-dated to rationalize your mistake. So, to keep

pace with time, to bring about the best result without malfunctioning and greater

efficiency so to replace the unending heaps of flies with a muchsophisticated hard

disk of the computer.

One has to use the data management software. Software has been an ascent

in atomization various organisations. Many software products working are now in

markets, which have helped in making the organizations work easier and efficiently.

Data management initially had to maintain a lot of ledgers and a lot of paperwork has

to be done but now software production this organization has made their work faster

and easier. Now only this software has to be loaded on the computer and work can

be done.

This prevents a lot of time and money. The work becomes fully automated

and any information regarding the organization can be obtained by clicking the

button. Moreover, nowit’s an age of computers of and automating such an

organization gives the better look.

4
SOURCE CODE

import mysql.connector as sql

import datetime

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

,database='electronics')

#if conn.is_connected():

# print("Successfully Connected")

c1=conn.cursor()

t_date=datetime.date.today()

t_time=datetime.datetime.now()

print("DATE:",t_date.day,"/",t_date.month,"/",t_date.year,"TIM

E:",t_time.hour ,":",t_time.minute )

print("Welcome To SSA Electronics Shop Management System")

print('1.YES')

print('2.NO')

ch=int(input('DO YOU WANT TO CONTINUE OR NOT:'))

if ch==1:

print('WELECOME TO SSA Electronics Shop Management

System')

print('1.SIGN IN')

print('2.CREATE USER ACCOUNT')

print('3.DELETE ACCOUNT')

print('4.VIEW DETAILS')

print('5.EXIT')

5
ch1=int(input('ENTER YOUR CHOICE:'))

if ch1==1:

print("Welcome To SSA Electronics Shop Management

System")

print("1.EMPLOYEE LOGIN ")

print("2.USER LOGIN")

print("3.EXIT")

choice=int(input("ENTER UR CHOICE:"))

if choice==1:

f=[]

code=int(input("ENTER YOUR EMPLOYEE CODE_NO:"))

name=input("ENTER YOUR EMPLOYEE NAME:")

passw=int(input("ENTER YOUR PASSWORD:"))

paas=int(input("REENTER YOUR PASSWORD:"))

if passw==paas:

c1.execute("select * from employee where

emp_code={} and password={}".format(code,paas))

dat=c1.fetchall()

hi=list(dat)

if hi==f:

print("PASSWORD & USER CODE IS WRONG")

else:

print("################### WELCOME ",name,"

HAVE A NICE DAY......############")

import purchase

elif choice==2:

6
k=[]

cod=int(input("ENTER YOUR USER CODE_NO:"))

name=input("ENTER YOUR USER NAME:")

p1=int(input("ENTER YOUR PASSWORD:"))

p2=int(input("REENTER YOUR PASSWORD:"))

if p1==p2:

c1.execute("select * from users where

user_code = {} and password = {}".format(cod , p2))

dat1=c1.fetchall()

hi1=list(dat1)

if hi1==k:

print("PASSWORD & USERCODE IS WRONG")

print('1.YES')

print('2.NO')

c8=int(input('DO YOU WANT TO CONTINUE OR

NOT:'))

if c8==1:

import elecshop

else:

print("Thank you")

print("Any kind of bulk or small orders

of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

7
import purchase

elif choice==3:

print("Thank you")

print("Any kind of bulk or small orders of

elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("Invalid choice")

print("Any kind of bulk or small orders of

elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

elif ch1==2:

print("1.USER ACCOUNT")

print("2.EMPLOYEE ACCCOUNT")

print("3.EXIT")

ch2=int(input("Enter Your Choice:"))

if ch2==1:

x=[]

print("DATE:",t_date.day,"/",t_date.month,"/",t_date.year,"TIM

E:",t_time.hour ,":",t_time.minute )

print("WELCOME TO USER ACCOUNT REGISTRATION")

8
u=int(input("ENTER A USER CODE:"))

c1.execute("select * from users where

user_code="+str(u))

hat=c1.fetchall()

h2=list(hat)

if h2!=x:

print("USER CODE ALREADY EXITS")

print('1.YES')

print('2.NO')

c8=int(input('DO YOU WANT TO CONTINUE OR

NOT:'))

if c8==1:

import elecshop

else:

print("Thank you")

print("Any kind of bulk or small orders

of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

n=input("ENTER YOUR NAME:")

c=input("ENTER YOUR CITY:")

z=int(input("ENTER YOUR PHONE NUMBER:"))

9
pse=int(input("ENTER A PASSWORD(in 8

digits):"))

c1.execute("select * from users where

password="+str(pse))

dat=c1.fetchall()

h1=list(dat)

if h1!=x:

print("Password already exits")

print('1.YES')

print('2.NO')

c9=int(input('DO YOU WANT TO CONTINUE OR

NOT:'))

if c9==1:

import elecshop

elif c9==2:

print("Thank you")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("Invalid choice")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

10
print("=======================================================

=======================")

else:

ps2=int(input("REENTER YOUR PASSWORD(in

numbers):"))

if pse==ps2:

c1.execute("insert into users

values({},'{}',{},'{}',{})".format(u,n,pse,c,z))

conn.commit()

print("USER ACCOUNT CREATED

SUCCESSFULLY")

print('1.YES')

print('2.NO')

c0=int(input('DO YOU WANT TO CONTINUE

OR NOT:'))

if c0==1:

import elecshop

elif c0==2:

print("Thank you")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

11
else:

print("Invalid choice")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

if ch2==2:

pur=0

fd=[]

print("DATE:",t_date.day,"/",t_date.month,"/",t_date.year,"TIM

E:",t_time.hour ,":",t_time.minute )

print("WELCOME TO EMPLOYEE ACCOUNT REGISTRATION")

we=input("ENTER PASSWORD:")

if we=='vijay':

cd=int(input("ENTER A EMPLOYEE CODE(in 4

digits):"))

c1.execute("select * from employee where

emp_code="+str(cd))

hat=c1.fetchall()

h3=list(hat)

if h3!=fd:

print("USER CODE ALREADY EXITS")

print('1.YES')

print('2.NO')

12
c10=int(input('DO YOU WANT TO CONTINUE OR

NOT:'))

if c10==1:

import elecshop

elif c10==2:

print("Thank you")

print("Any kind of bulk or small orders

of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("Invalid choice")

print("Any kind of bulk or small orders

of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

r=input("ENTER YOUR NAME:")

pre=int(input("ENTER A PASSWORD(in 8

digits):"))

c1.execute("select * from employee where

password="+str(pre))

13
dat=c1.fetchall()

h6=list(dat)

if h6!=fd:

print("Password already exits")

print('1.YES')

print('2.NO')

c76=int(input('DO YOU WANT TO CONTINUE OR

NOT:'))

if c76==1:

import elecshop

elif c76==2:

print("Thank you")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("Invalid choice")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

14
ps4=int(input("REENTER YOUR PASSWORD(in

numbers):"))

if pre==ps4:

c1.execute("insert into employee

values({},'{}',{},{})".format(cd,r,pre,pur))

conn.commit()

print("EMPLOYEE ACCOUNT CREATED

SUCCESSFULLY")

print('1.YES')

print('2.NO')

c0=int(input('DO YOU WANT TO CONTINUE

OR NOT:'))

if c0==1:

import elecshop

elif c0==2:

print("Thank you")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("Invalid choice")

print("Any kind of bulk or small

orders of elctronic items contact SSA electronics shop")

15
print("=======================================================

=======================")

elif ch1==3:

print("1.USER ACCOUNT")

print("2.EMPLOYEE ACCCOUNT")

print("3.EXIT")

ch71=int(input("Enter your Choice:"))

if ch71==1:

de=int(input("ENTER THE USER CODE TO BE

DELETED:"))

c1.execute("select user_code,user_name,city,ph_no

from users where user_code="+str(de))

data=c1.fetchall()

for row in data:

print(" User Details ")

print(" USER_CODE:",row[0])

print(" USER_NAME:",row[1])

print(" CITY:",row[2])

print(" PHONE_NO:",row[3])

conn.commit()

print("ARE YOU SURE ABOUT DELETING YOUR ACCOUNT:")

print("1.YES")

print("2.NO")

chi8=int(input("ENTER YOUR CHOICE:"))

if chi8==1:

16
c1.execute("delete from users where

user_code={}".format(de))

print("YOUR USER ACCOUNT DELETED

SUCCESSFULLY")

print("THANK YOU FOR BEING WITH US")

conn.commit()

elif chi8==2:

print("THANK YOU")

print("=======================================================

================")

else:

print("INVALID CHOICE")

print("THANK YOU")

print("=======================================================

==================")

elif ch71==2:

da=int(input("ENTER THE EMPLOYEE CODE TO BE

DELETED:"))

c1.execute("select emp_code,emp_name from employee

where emp_code="+str(da))

data2=c1.fetchall()

for row in data2:

print(" Employee Details ")

print(" EMPLOYEE_CODE:",row[0])

17
print(" EMPLOYEE_NAME:",row[1])

conn.commit()

print("ARE YOU SURE ABOUT DELETING YOUR ACCOUNT:")

print("1.YES")

print("2.NO")

chi8=int(input("ENTER YOUR CHOICE:"))

if chi8==1:

c1.execute("delete from employee where

emp_code={}".format(da))

print("YOUR USER ACCOUNT DELETED

SUCCESSFULLY")

print("THANK YOU FOR BEING WITH US")

conn.commit()

elif chi8==2:

print("THANK YOU")

print("=======================================================

================")

else:

print("INVALID CHOICE")

print("THANK YOU")

print("=======================================================

==================")

elif ch1==4:

print("1.USER DETAILS")

18
print("2.EMPLOYEE DETAILS")

print("3.EXIT")

che34=int(input("ENTER YOUR CHOICE:"))

if che34==1:

j_cod=int(input("ENTER THE USER CODE WHICH DETAILS

TO BE DISPLAYED:"))

c1.execute("select user_code,user_name,city,ph_no

from users where user_code={}".format(j_cod))

dare=c1.fetchall()

for row in dare:

print("USER ACCOUNT DETAILS")

print(" USER CODE:",row[0])

print(" USER NAME:",row[1])

print(" CITY:",row[2])

print(" PHONE_NO:",row[3])

elif che34==2:

f_cod=int(input("ENTER THE EMPLOYEE CODE WHICH

DETAILS TO BE DISPLAYED:"))

c1.execute("select emp_code,user_name,purchased

from employee where emp_code={}".format(f_cod))

dare2=c1.fetchall()

for row in dare2:

print("EMPLOYEE ACCOUNT DETAILS")

print(" EMPLOYEE CODE:",row[0])

print(" EMPLOYEE NAME:",row[1])

print(" PURCHASED:",row[2])

19
elif che34==3:

print("THANK YOU")

print("ALL KIND OF SMALL OR BULK ORDERS CONTACT

SSA ELECTRONICS SHOP")

print("=======================================================

============================")

else:

print("INVALID CHOICE")

print("ALL KIND OF SMALL OR BULK ORDERS CONTACT

SSA ELECTRONICS SHOP")

print("=======================================================

======================")

elif ch1==5:

print("THANK YOU")

print("ALL KIND OF SMALL OR BULK ORDERS CONTACT SSA

ELECTRONICS SHOP")

print("=======================================================

======================")

else:

print("INVALID CHOICE")

print("ALL KIND OF SMALL OR BULK ORDERS CONTACT SSA

ELECTRONICS SHOP")

20
print("=======================================================

======================")

elif ch==2:

print("Thank you")

print("Any kind of bulk or small orders of elctronic items

contact SSA electronics shop")

print("=======================================================

=======================")

else:

print("INVALID CHOICE")

print("ALL KIND OF SMALL OR BULK ORDERS CONTACT SSA

ELECTRONICS SHOP")

print("=======================================================

======================")

21
OUTPUT

# welcome page

22
#creating account

#delete account

#view details

23
#sign in

24
HARDWARE AND SOFTWARE REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUALCORE)

III. MOTHERBOARD : 1.845 OR 915,995 FOR PENTIUM 0R MSI

K9MM-V VIAK8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512MB+

V. Hard disk : SATA 40 GB OR ABOVE

VI. CD/DVD r/w multi drive combo: (If back up required)

25
VII. FLOPPY DRIVE 1.44 MB : (If Backup required)

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : (if print is required – [Hard copy])

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

INSTALLATION PROCESS

1. Install “python-3.4.0” in your device (if you do not


have Python).
2. Install “My SQL” in your device (if you do not
have My SQL).
3. Run the file “database creation .py” in your PC to
create a database
4. Run the file “table.py” in your PC to create a table.
5. Run the file “elecshop.py” in your PC to work on
our management system.

26
6. For further more details on how to use our
software, please read “Project - Class 11 –
electronic shop management”.

27
BIBLIOGRAPHY

1. Computer science With Python - Class XI By : SumitaArora


2. A Project Report On Blood Bank Management System (BBMS)
By : Praveen M Jigajinni
3. Website: https://www.w3resource.com

***

28

You might also like