cs project report (1)
cs project report (1)
Lines,
Jamnagar (Gujarat
(Affiliated to CBSE, New Delhi Affiliation Number 400022 CBSE School Code: 14112)
In this project the details are maintained like Employee name, address,
contact details, designation, salary, joining date, qualification etc. The
attendance can also be tracked for the employees, salary slips are
generated computerized and the management is done without any
difficulty.
The reports can be viewed completely and the head of the management
daily or weekly or monthly can review it. For company auditing it will be
more useful. This Proposed System will be interactive, faster and user-
friendly for the end users. Using the Employee management system,
the following activities can be performed.
➢ Tracking Attendance
➢ Login
EXISTING SYSTEM
The following are the objectives and highlights of the proposed system
➢ Secure data
➢ Faster process
➢ Error Free
➢ Better management
➢ Save a lot of manpower
➢ Can easily make the daily reports
➢ Elimination of Paper work.
➢ High reliability and security.
➢ Fast and economical.
Modules
➢ Add an Employee
➢ Salary Slips
➢ Manage Attendance
➢ Reports
MODULE DESCRIPTION
Add an Employee
This module deals with adding the new employee’s data in the
database. We store all required information like Name, Address,
Contact Number, Qualification, Previous Job Experience, Designation ,
Joining Date, Base Pay etc.
Salary Slips
This module deals with the generation of Salary Slip for each employee
every month. It calculates the HRA, DA, TA, PF and other allowances
for all employees on their respective Base Pay and generates the salary
to be paid for a specific month.
Reports
This module deals with the generation of the reports for the various
modules. The customer list can be generated. Room status list can be
retrieved for reference. The check in and checkout registers can also be
retrieved for any future queries.
Software Requirement Specification
❖ Python
(2) Readable
The Python language is designed to make developers life easy. Reading
a Python code is like reading an English sentence. This is one of the key
reason that makes Python best for beginners.
Python uses indentation instead of curly braces, unlike other
programming languages.
This makes the code look clean easier to understand.
(4) Object-Oriented
❖ MySQL
You can Change the Features of Python and SQL Features should
be added here
Hardware Specification:-
Processor : Pentium IV +
RAM : 512 MB
Software Specification:-
import sys
def menu():
loop='y'
while(loop=='y' or loop=='Y'):
print("........MENU.......")
print()
print()
if(choice==1):
create_database()
elif(choice==2):
show_databases()
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()
else:
print("Wrong Choice.")
else:
sys.exit()
def create_database():
if con.is_connected():
print("Successfully Connected")
cur=con.cursor()
print()
print("Database Created")
con.close()
def show_databases():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8')
if con.is_connected():
print("Successfully Connected")
cur=con.cursor()
cur.execute('show databases')
for i in cur:
print(i)
con.close()
def create_table():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
if con.is_connected():
print("Successfully Connected")
cur=con.cursor()
cur.execute('create table if not exists emp(id integer primary key, ename varchar(15), salary float)')
print()
cur.execute('DESC emp')
print("+-------------|--------------|-----------+")
print("+-------------|--------------|-----------+")
for i in cur:
print("+-------------|--------------|-----------+")
con.close()
def show_tables():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
if con.is_connected():
print("Successfully Connected")
cur=con.cursor()
cur.execute('show tables')
for i in cur:
print(i)
con.close()
def insert_record():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
cur.execute(query1)
con.commit()
print('Record Inserted')
con.close()
else:
def update_record():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
cur=con.cursor()
cur.execute(query1)
con.commit()
print("Record Updated")
con.close()
def delete_record():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
cur=con.cursor()
cur.execute(query1)
con.commit()
print("Record Deleted")
con.close()
def search_record():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
cur=con.cursor()
if choice==1:
elif choice==2:
elif choice==3:
else:
print("Wrong Choice")
cur.execute(query1)
rec=cur.fetchall()
count=cur.rowcount
for i in rec:
print(i)
print("Record Searched")
con.close()
def display_record():
con=driver.connect(host='localhost',user='root',passwd='root',charset='utf8',database='employee')
if con.is_connected():
#print("Successfully Connected")
cur=con.cursor()
count=cur.rowcount
print("+----------|--------------|-----------+")
print("+----------|--------------|-----------+")
for i in rec:
print("+----------|--------------|-----------+")
print("+-------------------------------------+")
#for i in rec:
# print(i)
con.close()
else:
menu()
Conclusion :
These type of programmes can be usefull for all types of employees like it can
be used in schools , college or universities for managing Various datas in a
pretty concise and secure way.
Bibliography :
1) Internet
2) www.wikipedia.com
3) “Computer Science with Python” by Sumita Arora
4) Our Computer Science Teacher
THANK YOU