Professional Documents
Culture Documents
01 ACKNOWLEDGEMENT 02
02 INTRODUCTION 03
04 PROPOSED SYSTEM 04
07 Flow Chart 17
08 Source Code 18
09 Output 21
11 Bibliography
33
1
ACKNOWLEDGEMENT
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 sincere thanks to the academician The Vice Principal, Mrs. Litli
Patnaik, for constant encouragement and the guidance provided during this project
My sincere thanks to Mrs. Ekta Shroff, Master 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 EMPLOYEE MANAGEMENT SYSTEM
INTRODUCTION
remove problems in existing system and the organisation will meet its specific
aims.
One of the most important aims from the system is to provide detail profile of
each employee . As a result , the system is most important for improving other
of employees . .
3
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
Science project, requiring writing and presentation skills which exemplify scholarly
4
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 outdated 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 much sophisticated hard disk of the
computer.
One has to use the data management software. Software has been an ascent
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 paper work has
to be done but now software product on 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, now it’s an age of computers of and automating such an organization gives
5
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)
6
PHASES OF SYSTEM DEVELOPMENT LIFE CYCLE
INITIATION PHASE
7
SYSTEM CONCEPT DEVELOPMENT PHASE
The System Concept Development Phase begins after a business need or opportunity
is validated by the Agency/Organization Program Leadership and the
Agency/Organization CIO.
8
PICTORIAL REPRESENTATION OF SDLC:
9
PLANNING PHASE
10
REQUIREMENTS ANALYSIS PHASE
This phase formally defines the detailed functional user requirements using
high-level requirements identified in the Initiation, System Concept, and Planning
phases. It also delineates the requirements in terms of data, system performance,
security, and maintainability requirements for the system. The requirements are
defined in this phase to alevel of detail sufficient for systems design to proceed. They
need to be measurable, testable, and relate to the business need or opportunity
identified in the Initiation Phase. The requirements that will be used to determine
acceptance of the system are captured in the Test and Evaluation MasterPlan.
Further define and refine the functional and data requirements and document
them in the Requirements Document,
Complete business process reengineering of the functions to be supported
(i.e., verify what information drives the business process, what information is
generated, who generates it, where does the information go, and who
processes it),
Develop detailed data and process models (system inputs, outputs, and the
process.
Develop the test and evaluation requirements that will be used to determine
acceptable system performance.
11
DESIGN PHASE
12
DEVELOPMENT PHASE
13
INTEGRATION AND TEST PHASE
Testing as a deployed system with end users working together with contract
personnel
14
IMPLEMENTATION PHASE
This phase is initiated after the system has been tested and accepted by the
user. In this phase, the system is installed to support the intended business functions.
System performance is compared to performance objectives established during the
planning phase. Implementation includes user notification, user training, installation of
hardware, installation of software onto production computers, and integration of the
system into daily work processes. This phase continues until the system is operating
in production in accordance with the defined user requirements.
15
OPERATIONS AND MAINTENANCE PHASE
16
Flow Chart
1.COMMANDED
PROGRAM WILL BE
EXECUTED IN PYTHON
IDLE .
3.THE REQUIRED
DATA WILL BE TAKEN
FROM THE
DATABASE.
17
SOURCE CODE
def clearScreen():
for i in range(1):
print()
def menu():
while True:
#os.system("cls")
print("........MENU.......")
print("1. CREATE DATABASE")
print("2. SHOW DATABASE")
print("3. CREATE TABLE")
print("4. SHOW TABLES")
print("5. INSERT RECORD")
print("6. UPDATE RECORD")
print("7. DELETE RECORD")
print("8. SEARCH RECORD")
print("9. DISPLAY RECORD")
print("10. E X I T")
clearScreen()
choice=int(input("Enter the choice(1-10) : "))
if(choice==1):
create_database()
elif(choice==2):
show_database()
elif(choice==3):
create_table()
elif(choice==4):
show_tables()
elif(choice==5):
insert_record()
elif(choice==6):
update_record()
elif(choice==7):
delete_record()
elif(choice==8):
search_record()
elif(choice==9):
display_record()
elif choice == 10:
sys.exit()
else:
print("Wrong Choice.")
input("Press ENTER KEY to continue .....")
def create_database():
try:
con = driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',charset='utf8')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
cur.execute('create database if not exists employee')
print()
print("Database Created")
con.close()
except driver.Error as err:
print("Error : ", err)
def show_database():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
cur.execute('show databases')
for i in cur:
print(i)
con.close()
except driver.Error as err:
print("Error : ", err)
def create_table():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',database='employee')
if con.is_connected():
18
#print("Successfully Connected")
cur=con.cursor()
cur.execute("create table if not exists emp(id integer primary key, ename varchar(15),desg varchar(25),
def show_tables():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',database='employee')
if con.is_connected():
print("Successfully Connected")
cur=con.cursor()
cur.execute('show tables')
for i in cur:
print(i)
con.close()
except driver.Error as err:
print("Error : ", err)
def insert_record():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',database='employee')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
def update_record():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',database='employee')
cur=con.cursor()
def delete_record():
19
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',charset='utf8',database='employee')
cur=con.cursor()
d=int(input("Enter Employee ID for deleting record : "))
query="delete from emp where id={0}".format(d)
cur.execute(query)
con.commit()
print(cur.rowcount,"Record Deleted")
con.close()
except driver.Error as err:
print("Error : ", err)
def search_record():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',charset='utf8',database='employee')
cur=con.cursor()
print("ENTER THE CHOICE ACCORDING TO YOU WANT TO SEARCH RECORD: ")
print("1. ACCORDING TO ID")
print("2. ACCORDING TO NAME")
print("3. ARRANGE ACCORDING TO SALARY")
print()
choice=int(input("ENTER THE CHOICE (1-3) : "))
if choice==1:
d=int(input("Enter Employee ID which you want to search : "))
query="select * from emp where id=%s" %(d)
elif choice==2:
name=input("Enter Employee Name which you want to search : ")
query="select * from emp where ename='%s'" %(name)
elif choice==3:
query="select * from emp order by basicsalary"
else:
print("Wrong Choice")
cur.execute(query)
rec=cur.fetchall()
count=cur.rowcount
for i in rec:
print(i)
print("Record Searched")
con.close()
def display_record():
try:
con=driver.connect(host='localhost',user='root',passwd='sqlSQL109!)*',charset='utf8',database='employee')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
cur.execute('select * from emp order by id')
rec=cur.fetchall()
count=cur.rowcount
print("+----------|--------------|-----------|-----------|-----------+")
print("+ Emp ID | Emp Name | Salary | Desg | Doj +")
print("+----------|--------------|-----------|-----------|-----------+")
for i in rec:
netsalary=i[4]+i[5]+i[6]+i[7]-i[8]
print("%12s"%i[0],"%-15s"%i[1],"%-10s"%netsalary,"%-10s"%i[2],"%-10s"%i[3])
print("+--------------|--------------|-----------+|-----------+|-----------+")
print("+| Total no. of records are : ",count," |")
print("+--------------------------------------------------------------------+")
#for i in rec:
# print(i)
con.close()
except driver.Error as err:
print("Error : ", err )
#----Main----
menu()
====================================================================
20
OUTPUT
21
1.)Create Database
22
2.)Show Database
23
3.)Create Table
24
4.)Show Tables
25
5.)Insert Record
26
6.)Update Record
27
7.Delete Record
28
8.Search Record
29
9.Display Record
30
10.Exit
31
HARDWARE AND SOFTWARE REQUIREMENTS
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
III. MySQL
32
BIBLIOGRAPHY
***
33