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

KENDRIYA VIDYALAYA AFS YELAHANKA

ACADEMIC YEAR : 2021-22

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”.

Principal’s Signature External Examiner’s


Signature

Subject Teacher’s Signature

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 ]

SER DESCRIPTION PAGE NO

01 SOURCE CODE 05

02 OUTPUT 08

03 TESTING 10

04 HARDWARE AND SOFTWARE REQUIREMENTS 13

05 BIBLIOGRAPHY 14

4
SOURCE CODE

================================================================

CREATE DATABASE USING MYSQL


import mysql.connector as cs
con =
cs.connect(host="localhost",user="root",passwd="alahomora@her")
c = con.cursor()
sql1 = "create database employee"
c.execute(sql1)
sql2 = "use employee"
c.execute(sql2)
sql3 = "create table personal (name varchar(50),city varchar(20),
dob varchar(20), phone varchar(20))"
c.execute(sql3)
sql4 = "create table office (ecode varchar(10),name varchar(50),
post varchar(20), jdate varchar(20),basicpay int)"
c.execute(sql4)
sql5 = "create table salary (ecode varchar(10), name varchar(50),
year varchar(10), month varchar(20), wdays int, tdays int)"
c.execute(sql5)
con.commit()

CREATE PROJECT INTERFACE USING PYTHON


import mysql.connector as a
con =
a.connect(host="localhost",user="root",passwd="alahomora@her",database="emp
loyee")

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

Software Testing is an empirical investigation conducted to provide stakeholders with


information about the quality of the product or service under test[1] , with respect to the
context in which it is intended to operate. Software Testing also provides an objective,
independent view of the software to allow the business to appreciate and understand the risks
at implementation of the software. Test techniques include, but are not limited to, the process
of executing a program or application with the intent of finding software bugs.
It can also be stated as the process of validating and verifying that a software
program/application/product meets the business and technical requirements that guided its
design and development, so that it works as expected and can be implemented with the same
characteristics. Software Testing, depending on the testing method employed, can be
implemented at any time in the development process, however the most test effort is
employed after the requirements have been defined and coding process has been completed.

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.

BLACK BOX TESTING


Black box testing treats the software as a "black box," without any knowledge of
internal implementation. Black box testing methods include: equivalence partitioning,
boundary value analysis, all-pairs testing, fuzz testing, model-based testing, traceability
matrix, exploratory testing and specification-based testing.

SPECIFICATION-BASED TESTING

Specification-based testing aims to test the functionality of software according to the


applicable requirements.[16] Thus, the tester inputs data into, and only sees the output from,
the test object. This level of testing usually requires thorough test cases to be provided to the
tester, who then can simply verify that for a given input, the output value (or behaviour),

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

ADVANTAGES AND DISADVANTAGES

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

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)

Types of white box testing:-


The following types of white box testing exist:
api testing - Testing of the application using Public and Private APIs.
Code coverage - creating tests to satisfy some criteria of code coverage.
For example, the test designer can create tests to cause all statements in the program
to be executed at least once.
fault injection methods.
mutation testing methods.
static testing - White box testing includes all static testing.

CODE COMPLETENESS EVALUATION

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.

Two common forms of code coverage are:


Function Coverage: Which reports on functions executed and
Statement Coverage: Which reports on the number of lines executed to
complete the test.
They both return coverage metric, measured as a percentage

12
HARDWARE AND SOFTWARE
REQUIREMENTS

I.OPERATING SYSTEM : WINDOWS 7 AND ABOVE

II. PROCESSOR : PENTIUM(ANY) OR AMD

ATHALON(3800+- 4200+ DUAL CORE)

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

K9MM-V VIA K8M800+8237R PLUS

CHIPSET FOR AMD ATHALON

IV. RAM : 512 MB+

V. Hard disk : SATA 40 GB OR ABOVE

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

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

VIII. MONITOR 14.1 or 15 -17 inch

IX. Key board and mouse

X. Printer : required

SOFTWARE REQUIREMENTS:

I. Windows OS
II. Python

13
BIBLIOGRAPHY

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


2. Website: https://www.youtube.com

***

14

You might also like