You are on page 1of 23

TOPIC: EMPLOYEM

EN T
M A N A G EM E N T

COMPUTER
SCEINCE

Name= Soumyadeep De
Class= 12 A1
Roll No= 58
MEMBERS OF THE TEAM

• APOORV BHARDWAJ(22)

• SAMEER SAINI(53)

• SISANTA CHHATOI(57)

• SOUMYADEEP DE(58)
CERTIFICATE

This is to certify that Master Soumyadeep De,


Class XII A1,Roll No.58 has successfully completed
the project “Employment Management” for the
subject
Computer under the guidance of Mrs. Jaya
Chakrabarty,
for the session 2023-2024.

Internal Examiner:
Date:
INDEX

SL.
PG.
NO CHAPTER
NO
.
1. ACKNOWLEDGEMENT 5
2. INTRODUCTION 6
3. NEED FOR EMPLOYMENT 8
MANAGEMENT
4. HARDWARE AND SOFTWARE 10
REQUIREMENTS
5. MENU TREE 11
6. SOURCE CODE 12
7. CHOICE OUTPUTS 19
8. CONCLUSION 21
9. BIBLIOGRAPHY 22
ACKNOWLEDGEMENT

We would like to thank our teachers and professors


who gave us a chance to work on this project. We are
very grateful that they provided valuable suggestions
for the betterment of the project, which we greatly
appreciate them for doing so.

Furthermore, we want to extend special thanks towards


our college as well because without their resources
then none of what is seen now could have been
possible in terms of creative or intellectual
development.

Last but not least, everyone involved with this think


tank deserves recognition such as family members and
friends. they all played an important role when it came
down to giving motivation at times where there was no
hope left!
INTRODUCTION

Employment management refers to the process of


overseeing and directing the hiring, training,
development, and performance of employees in an
organization. This includes tasks such as setting goals,
creating policies and procedures, and evaluating the
performance of employees.

Effective employment management is crucial for the


success of any organization, as it helps to ensure that the
workforce is productive and satisfied. It also plays a key
role in attracting and retaining top talent. Some key
components of employment management include job
analysis and design, recruitment and selection, training
and development, performance appraisal, and
succession planning.
Effective employment management also involves
ensuring compliance with employment laws and
regulations, such as those related to equal employment
opportunity and labor relations. It is important for
organizations to be aware of and adhere to these laws,
as failure to do so can result in legal consequences.

Overall, employment management is a complex and


multifaceted field that requires strong leadership,
communication, and interpersonal skills. By effectively
managing their employees, organizations can create a
positive and productive work environment, which is
essential for achieving long-term success.
NEED FOR EMPLOYMENT
MANAGEMENT

There are several reasons why employment


management is important for organizations. Some of the
main reasons include:

1.Ensuring productivity: Effective employment


management helps to ensure that employees are
productive and motivated, which is essential for the
success of any organization.

2.Attracting and retaining top talent: By providing


opportunities for growth and development,
organizations can attract and retain top talent, which can
give them a competitive advantage.

3.Improving morale: Good employment management


practices can improve employee morale, which can lead
to increased job satisfaction and retention.
4.Reducing turnover: By managing employee
performance effectively and addressing any issues that
may arise,
organizations can reduce turnover, which can save time
and resources that would otherwise be spent on
recruitment and training.

5.Compliance with laws and regulations: Employment


management also involves ensuring compliance with
employment laws and regulations, such as those related
to equal employment opportunity and labor relations.
Failure to comply with these laws can result in legal
consequences.

Overall, employment management is essential for the


success and long-term viability of any organization.
HARDWARE AND
SOFTWARE
REQUIREMENTS

Operative System: Windows 7 and above


Processor: Pentium(any) Or Amd Athalon
RAM: 512MB+
Hard Disk: Sata 40GB or above
Platform: Python 3.10 64-bit
MENU TREE
SOURCE CODE

# importing mysql connector


import mysql.connector

# making Connection
con=mysql.connector.connect(host="localhost",user="root",
password="sql",database="employee")

# Function to mAdd_Employee
def Add_Employ():

Id = input("Enter Employee Id : ")

# Checking if Employee with given Id


# Already Exist or Not
if(check_employee(Id)==True):
print("Employee aready exists\nTry Again\n")
menu()

else:
Name = input("Enter Employee Name : ")
Post = input("Enter Employee Post : ")
Salary = input("Enter Employee Salary : ")
data = (Id, Name, Post, Salary)
# Inserting Employee details in
# the Employee Table
sql = 'insert into empd values(%s,%s,%s,%s)'
c = con.cursor()

# Executing the SQL Query


c.execute(sql, data)

# commit() method to make changes in


# the table
con.commit()
print("\nEmployee Added Successfully!")
menu()

# Function to Promote Employee


def Promote_Employee():
Id = int(input("Enter Employ's Id: "))

# Checking if Employee with given Id


# Exist or Not
if(check_employee(Id)==False):
print("Employee does not exists\nTry Again\n")
menu()
else:
Amount = int(input("Enter increase in Salary"))
# Query to Fetch Salary of Employee
# with given Id
sql = 'select salary from empd where id=%s'
data = (Id,)
c = con.cursor()

# Executing the SQL Query


c.execute(sql, data)

# Fetching Salary of Employee with given Id


r = c.fetchone()
t = str(int(r[0])+Amount)

# Query to Update Salary of Employee with


# given Id
sql = 'update empd set salary=%s where id=%s'
d = (t, Id)

# Executing the SQL Query


c.execute(sql, d)

# commit() method to make changes in the table


con.commit()
print("Employee Promoted")
menu()
# Function to Remove Employee with given Id
def Remove_Employ():
Id = input("Enter Employee Id : ")

# Checking if Employee with given Id Exist


# or Not
if(check_employee(Id) == False):
print("Employee does not exists\nTry Again\n")
menu()
else:

# Query to Delete Employee from Table


sql = 'delete from empd where id=%s'
data = (Id,)
c = con.cursor()

# Executing the SQL Query


c.execute(sql, data)

# commit() method to make changes in


# the table
con.commit()
print("Employee Removed!")
menu()
# Function To Check if Employee with
# given Id Exist or Not
def check_employee(employee_id):

# Query to select all Rows f


# rom employee Table
sql = 'select * from empd where id=%s'

# making cursor buffered to make


# rowcount method work properly
c = con.cursor(buffered=True)
data = (employee_id,)

# Executing the SQL Query


c.execute(sql, data)

# rowcount method to find


# number of rows with given values
r = c.rowcount
if r == 1:
return True
else:
return False
# Function to Display All Employees
# from Employee Table
def Display_Employees():

# query to select all rows from


# Employee Table
sql = 'select * from empd'
c = con.cursor()

# Executing the SQL Query


c.execute(sql)

# Fetching all details of all the


# Employees
r = c.fetchall()
print('Employee id\tEmployee Name\tEmployee Post\
tEmployee Salary')
for i in r:
for j in i:
print(j,end='\t\t')
print()
menu()

# menu function to display menu


def menu():
global hasbeenrun
if not hasbeenrun:
print("Welcome to Employee Management Record")
hasbeenrun=True
print('-------------------------------------\n')
print("Press ")
print("1 to Add Employee")
print("2 to Remove Employee ")
print("3 to Promote Employee")
print("4 to Display Employees")
print("5 to Exit")

ch = int(input("Enter your Choice "))


if ch == 1:
Add_Employ()
elif ch == 2:
Remove_Employ()
elif ch == 3:
Promote_Employee()
elif ch == 4:
Display_Employees()
elif ch == 5:
exit(0)
else:
print("Invalid Choice")
menu()

hasbeenrun=False
# Calling menu function
menu()
CHOICE
OUTPUTS
CHOICE
OUTPUTS
CONCLUSION

Employment management involves recruiting, hiring,


training, and developing employees to improve
productivity and performance. It is important to attract
and retain talented employees through effective
recruitment and hiring practices. Once hired,
employees should be provided with comprehensive
training and development opportunities. A positive and
supportive work environment should also be created
through fair compensation and benefits, open
communication, and promoting work-life balance. This
will lead to employee engagement and satisfaction,
which will in turn help organizations achieve their
goals and stay competitive in today's business
environment.
BIBLIOGRAPHY

1. Computer Science with Python(Class 12)- Sumita


Arora
2. https://slidesgo.com/theme/notebook-cv#search-
a4&position-11&results-783&rs=search

You might also like