Project Report On Employee Management System
Project Report On Employee Management System
PROJECT REPORT ON
EMPLOYEE MANAGEMENT SYSTEM
ROLL NO : 18607024
NAME : PALAK KUMARI
CLASS : XII
SUBJECT : COMPUTER SCIENCE
SUB CODE : 083
1
CERTIFICATE
This is hereby to certify that, the original and genuine investigation work has
been carried out to investigate about the subject matter and the related data
collection and investigation has been completed solely, sincerely and
satisfactorily by PALAK KUMARI of Class XII C, Kendriya Vidyalaya
Yelahanka, regarding the project titled “EMPLOYEE MANAGEMENT
SYSTEM”.
2
ACKNOWLEDGEMENT
It would be our utmost pleasure to express our sincere thanks to our Computer
Science Teacher Mr. SATISH sir in providing a helping hand in this project.
His valuable guidance, support and supervision all through this project titled
“EMPLOYEE MANAGEMENT SYSTEM”, is responsible for attaining its
present form.
We would like to thank him for teaching us computer science from the very
basics thus strengthening our root and making us understand complex chapters
easily.
This project has been made not only for fetching marks but also for knowledge.
PALAK KUMARI
XII C
3
TABLE OF CONTENTS [ T O C ]
01 SOURCE CODE 05
02 OUTPUT 08
03 TESTING 10
05 BIBLIOGRAPHY 14
4
SOURCE CODE
================================================================
def npersonal():
n = input("Enter Employee Name : ")
c = input("Enter Employee's City Name : ")
d = input("Enter Employee's D.O.B : ")
p = input("Enter Employee Phone : ")
data = (n,c,d,p)
sql = 'insert into personal values(%s,%s,%s,%s)'
c = con.cursor()
c.execute(sql,data)
con.commit()
print("Data Entered Successfully")
main()
5
def personal():
sql = "select * from personal"
c = con.cursor()
c.execute(sql)
d = c.fetchall()
for i in d:
print(i)
main()
def noffice():
ec = input("Enter Employee Code : ")
n = input("Enter Employee Name : ")
ps = input("Enter Employee's Post : ")
j = input("Enter Employee's joining date : ")
bp = int(input("Enter Assigned Salary : "))
data = (ec,n,ps,j,bp)
sql = 'insert into office values(%s,%s,%s,%s,%s)'
c = con.cursor()
c.execute(sql,data)
con.commit()
print("Data Entered Successfully")
main()
def office():
sql = "select * from office"
c = con.cursor()
c.execute(sql)
d = c.fetchall()
for i in d:
print(i)
main()
def nsalary():
ec = input("Enter Employee Code : ")
v = (ec,)
sql = "select BasicPay from office where Ecode = %s"
c = con.cursor( )
c.execute(sql,v)
bs = c.fetchone( ) # (30000,)
n = input("Enter Employee Name : ")
y = input("Enter Year : ")
m = input("Enter Month : ")
wd = int(input("Enter working Days : "))
td = int(input("Enter Total Days : "))
fp = bs[0]/td*wd
data = (ec,n,y,m,wd,fp)
sql = 'insert into salary values(%s,%s,%s,%s,%s,%s)'
c = con.cursor()
c.execute(sql,data)
6
con.commit()
print("Data Entered Successfully")
main()
def salary():
sql = "select * from salary"
c = con.cursor()
c.execute(sql)
d = c.fetchall()
for i in d:
print(i)
main()
def main():
print("""
1. Add New Employee Personal Details
2. Display Employees Personal Details
3. Add New Employee Office Details
4. Display Employees Office Details
5. Enter Salary Details of Employee
6. Display Salary Details of Employee""")
choice = input("Enter Task No : ")
while True:
if (choice == '1'):
npersonal()
elif (choice=='2'):
personal()
elif (choice=='3'):
noffice()
elif (choice=='4'):
office()
elif (choice=='5'):
nsalary()
elif (choice == '6'):
salary()
else:
print(" Wrong choice")
main()
================================================================
OUTPUT
7
8
9
TESTING
TESTING METHODS
Software testing methods are traditionally divided into black box testing and white
box testing. These two approaches are used to describe the point of view that a test engineer
takes when designing test cases.
SPECIFICATION-BASED TESTING
10
either "is" or "is not" the same as the expected value specified in the test case. Specification-
based testing is necessary, but it is insufficient to guard against certain risks
The black box tester has no "bonds" with the code, and a tester's perception is very
simple: a code must have bugs. Using the principle, "Ask and you shall receive," black box
testers find bugs where programmers don't. But, on the other hand, black box testing has been
said to be "like a walk in a dark labyrinth without a flashlight," because the tester doesn't
know how the software being tested was actually constructed.
That's why there are situations when (1) a black box tester writes many test cases to
check something that can be tested by only one test case, and/or (2) some parts of the back
end are not tested at all. Therefore, black box testing has the advantage of "an unaffiliated
opinion," on the one hand, and the disadvantage of "blind exploring," on the other.
White box testing, by contrast to black box testing, is when the tester has access to the
internal data structures and algorithms (and the code that implement these)
White box testing methods can also be used to evaluate the completeness of a test
suite that was created with black box testing methods. This allows the software team to
11
examine parts of a system that are rarely tested and ensures that the most important function
points have been tested.
12
HARDWARE AND SOFTWARE
REQUIREMENTS
X. Printer : required
SOFTWARE REQUIREMENTS:
I. Windows OS
II. Python
13
BIBLIOGRAPHY
***
14