SlideShare a Scribd company logo
1 of 36
Subodh Public
School
A
Project Report
on
Employee Management
Submitted By Under the Guidance of
1. Kratika Mittal Mr. Sunil Nehra
2. ManishSuryakantJain
3. Mohit Chandel
PGT (Computer Science)
CERTIFICATE
This is to certify that Kratika Mittal, Manish Suryakant Jain and Mohit Chandel of
Class XII A, has successfully completed the investigatory project on the topic Employee
Management under the guidanceof Mr. Sunil Nehra (PGT, Computer Science) during
the academic year 2019-20 in the partial fulfillment of AISSCE Practical Examination
conducted by CBSE.
Signature of
Internal Examiner
Signature of
External Examiner
Signature of
Candidate
DECLARATION
I hereby declare that the project work entitled “Employee Management” submitted to
Departmentof Computer Science, Subodh Public School, Jaipur is prepared by us. All the
coding is result of my personal efforts.
1. Kratika Mittal – XII A
2. Manish Suryakant Jain – XII A
3. Mohit Chandel – XII A
ACKNOWLEDGEMENT
I would like to express a deep sense of thanks and gratitude to my projectguide Mr. Sunil
Nehra Sir for guidingme immensely throughthe course of the project. He alwaysevinced
keen interest in my work. His constructive advice and constant motivation have been
responsible for the successful completion of this project.
My sincere thanks goes to Dr Bela Joshi, our Principal Madam, for her coordination in
extending every possible support for completion of this project.
I also thanks to my parents for their motivation and support. I must thanks to my
classmates for their timely help and support for compilation of this project.
Last but not least, I would like to those who had helped directly or indirectly towards the
completion of this project.
1. Kratika Mittal – XII A
2. Manish Suryakant Jain – XII A
3. Mohit Chandel – XII A
CONTENTS
1. Introduction
2. Imported files and used functions in Python
3. Table Created in MySQL
4. Coding
5. Output Scenes
6. Limitations and Enhancement
7. Bibliography
INTRODUCTION
The project is designed to keep records of Employee in specific department and
specific post who are working in these companies. A table named cred in
MySQL5.0 to store information about user login ids and passwords.
One more table named department in MySQL5.0 to store information about
department code, name and their packages.
One more table named post in MySQL5.0 to store information about post code
and name.
One more table named staff in MySQL5.0 to store information about employee
(staff) name, address, phone number, salary and post.
Administrator of the project can enter new record, display all/specific
passenger record; he can modify and delete records in any table.
Files Imported in Project
1. Import MYSQL for database connectivity
Functions Used in Project
1. connect()- For Database and tables creation
2. cursor()- To execute MySQL queries.
3. fetchall ()- To fetch all the rows.
4. commit()- To execute (commit) current transaction.
5. fetchone ()- To fetch row according to query.
Tables Created in MySQL
Table: cred
Table: staff
Table: department
Table: post
CODING
import mysql.connector as my
yu="n"
while yu=="n":
print("---1-FOR LOGIN---")
print("---2-FOR SIGNUP---")
print("---0-EXIT---")
a6=input("ENTER:-")
if a6=="1":
uname=input(" ENTER USERNAME:-")
pswd=input(" ENTER PASSWORD:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select passwd,user_n fromcredwhere user_n='"+uname+"'")
row=cur.fetchall()
for r in row:
if r[0]==pswd:
print("Sucessfully Login!")
cur.close()
# !!!department's employee management functions!!!
f0="n"
while f0=="n":
print("""
---1-Employee Details---
---2-Department Functions---
---3-Post Details---
---4-Update Or Delete LoginID AndPassword---
---0-LOGOUT---""")
a=input("ENTER:-")
if a=="1":
# !!!employee details functions!!!
f1="n"
while f1=="n":
print("")
print("---1-All Staff Details---")
print("---2-SearchEmployee By E_ID---")
print("---3-Change Employee Details---")
print("---4-AddNewEmployee---")
print("---5-Delete EmployeeDetails---")
print("---0-ExitStaff Functions---")
a1=input("ENTER:-")
# !!!all details!!!
if a1=="1":
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *from staff")
for i in cur:
print(i)
con.close()
# !!!searcher!!!
if a1=="2":
y="y"
while y=="y":
eid=input("Enter Employee ID:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *fromstaff where s_id='"+eid+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("select *fromstaff where s_id='"+eid+"'")
for i incur:
print(i)
con.close()
y=input("SearchAnother Id(y/n):-")
# !!!changer!!!
if a1=="3":
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
eid=input("Enter Employee ID:-")
cur.execute("select *from staff where s_id='"+eid+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
print("""
---1-Change name---
---2-Change Contact---
---3-Change Address---
---4-Change Salary---""")
a10=input("ENTER:-")
if a10=="1":
aq=input("Enter NewName:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("update staff set s_name='"+aq+"' where
s_id='"+eid+"'")
con.commit()
con.close()
print("RecordUpdated!")
if a10=="2":
aq=input("Enter NewContact:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("update staff set s_phone='"+aq+"'where
s_id='"+eid+"'")
con.commit()
con.close()
print("RecordUpdated!")
if a10=="3":
aq=input("Enter NewAddress:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("update staff set s_addr='"+aq+"' where s_id='"+eid+"'")
con.commit()
con.close()
print("RecordUpdated!")
if a10=="4":
aq=input("Enter NewSalary:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("update staff set s_salary='"+aq+"' where
s_id='"+eid+"'")
con.commit()
con.close()
print("RecordUpdated!")
# !!!adder!!!
if a1=="4":
nid=input("Enter ID:-")
nna=input("Enter name:-")
nad=input("Enter address:-")
nap=input("Enter Contact:-")
nsa=input("Enter Salary:-")
npo=input("Enter post:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select s_idfromstaff where s_id='"+nid+"'")
x=cur.fetchone()
if x==None and len(nap)<=11:
cur.execute("insertintostaff
values('"+str(nid)+"','"+nna+"','"+nad+"','"+nap+"','"+nsa+"','"+npo+"')")
con.commit()
con.close()
print("DetailsSaved!")
else:
print("ID Already Exists Or InvalidContact!")
# !!!remover!!!
if a1=="5":
aw=input("Enter Employee ID:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *from staff where s_id='"+aw+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("delete fromstaff where s_id='"+aw+"'")
con.commit()
con.close()
print("RecordRemoved!")
if a1=="0":
f1="y"
print("Staff Functions Closed!")
# !!!Department Functions!!!
if a=="2":
f1="n"
while f1=="n":
print("""
---1-See Department---
---2-SearchDepartment---
---3-AddDepartment---
---4-Remove Department---
---5-Upadate Department---
---0-Exit Department Functions---""")
a2=input("ENTER:-")
# !!!see Department!!!
if a2=="1":
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *from department")
for i in cur:
print(i)
# !!!searchitem!!!
if a2=="2":
ad="y"
while ad=="y" or ad=="Y":
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
a=input("Enter Department Code:-")
cur.execute("select *fromdepartment where deptcode='"+a+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("select *fromdepartment where deptcode='"+a+"'")
for i incur:
print(i)
ad=input("SearchOther Department(y/n):-")
# !!!AddDepartment!!!
if a2=="3":
ad="y"
while ad=="y" or ad=="Y":
ico=input("Enter Department code:-")
ina=input("Enter Department Name:-")
ipa=int(input("Enter Department package:-"))
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *fromdepartment where deptcode='"+ico+"'")
x=cur.fetchall()
if x==None:
print("Try Again!")
else:
cur.execute("insertintodepartment
values('"+ico+"','"+ina+"','"+str(ipa)+"')")
print("Sucessfully Added!")
con.commit()
con.close()
ad=input("AddOther Department(y/n):-")
print("Departmentcode Already Exists!")
# !!!remover!!!
if a2=="4":
ad="y"
while ad=="y" or ad=="Y":
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
a=input("Enter Department Code:-")
cur.execute("select *fromdepartment where deptcode='"+a+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("delete fromdepartment where deptcode='"+a+"'")
con.commit()
con.close()
ad=input("Remove Other Department(y/n):-")
print("DeletedSucessfully!")
# !!!updater!!!
if a2=="5":
ad="y"
while ad=="y" or ad=="Y":
print("""
---1-Change Department Name---
---2-Change Department Package---""")
i=input("ENTER:-")
if i=="1":
e="y"
while e=="y" or e=="Y":
a=input("Enter Department Code:-")
na=input("Enter NewName:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select * fromdepartment where deptcode='"+a+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("update department setdeptname='"+na+"'where
deptcode='"+a+"'")
con.commit()
con.close()
e=input("Change Any Other Name(y/n):-")
if i=="2":
e="y"
while e=="y" or e=="Y":
a=input("Enter Department Code:-")
na=int(input("Enter Newpackage:-"))
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *fromdepartment where deptcode='"+a+"'")
x=cur.fetchone()
if x==None:
print("InvalidId!")
else:
cur.execute("update department setdeptname='"+na+"'where
deptcode='"+a+"'")
con.commit()
con.close()
e=input("Change Any Other Package(y/n):-")
print("RecordUpdated!")
ad=input("Change Any Other Record(y/n):-")
if a2=="0":
f1="y"
print("Department Closed!")
# !!!post functions!!!
if a=="3":
qp="n"
while qp=="n":
print("""
---1-See List Of Post---
---2-Update Post---
---3-Remove Or AddPost---
---0-Exit Post Functions---""")
a3=input("ENTER:-")
# !!!For list seeing!!!
if a3=="1":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
cur.execute("select *from post")
for i in cur:
print(i)
con.close()
# !!!Updater!!!
if a3=="2":
er="y"
while er=="y" or er=="Y":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
ic=input("Enter Post Code:-")
cur.execute("select *frompost where post_code='"+ic+"'")
x=cur.fetchone()
if x==None:
print("InvalidCode!")
else:
upq=int(input("Enter NewNo_Of_Employees:-"))
cur.execute("update post set no_of_employees='"+str(upq)+"'where
post_code='"+ic+"'")
con.commit()
con.close()
print("Post Updated!")
er=input("Change Any Other Post(y/n):-")
# !!!remover and adder!!!
if a3=="3":
ui="y"
while ui=="y" or ui=="Y":
print("""---1-AddNewPost---
---2-Remove Post---""")
rty=input("ENTER:-")
if rty=="1":
df="y"
while df=="y" or df=="Y":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
itc=input("Enter Post Code:-")
itn=input("Enter Post Name:-")
itq=input("Enter No_Of_Employees:-")
cur.execute("select post_codefrompost where
post_code='"+itc+"'")
x=cur.fetchall()
if x==None:
cur.execute("insert intopost values('"+itc+"','"+itn+"','"+itq+"')")
con.commit()
con.close()
print("Post Added!")
else:
print("Post Code Already Exists!")
df=input("AddAny Other Post(y/n):-")
if rty=="2":
op="y"
while op=="y" or op=="Y":
itc=input("Enter Post Code:-")
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
cur.execute("select post_codefrompost where
post_code='"+itc+"'")
x=cur.fetchone()
if x==None:
print("InvalidPost Code!")
else:
cur.execute("delete frompost where post_code='"+itc+"'")
con.commit()
con.close()
print("Post Removed!")
op=input("Remove Any Other Post(y/n):-")
ui=input("AddOr Remove Any Other Post(y/n):-")
if a3=="0":
qp="y"
print("Posts Closed!")
# !!!loginIdor Passwordupdate or delete programme!!!
if a=="4":
lk="n"
while lk=="n" or lk=="N":
print("""
---1-For Updating LoginIdOr Password---
---2-For Remove AnID---
---0-For Exit---""")
jkl=input("ENTER:-")
if jkl=="1":
ty="y"
while ty=="y":
print("""
---1-Update LoginID---
---2-Update Password---""")
rt=input("ENTER:-")
if rt=="1":
nm="y"
while nm=="y" or nm=="Y":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
oid=input("Enter OldLoginID:-")
nid=input("Enter NewLoginID:-")
cur.execute("select *fromcredwhere user_n='"+oid+"'")
x=cur.fetchone()
if x==None:
print("IdDoes not Exists!")
else:
cur.execute("update credset user_n='"+nid+"'where
user_n='"+oid+"'")
con.commit()
con.close()
print("LoginID Updated!")
nm=input("Change Any Other LoginID(y/n):-")
if rt=="2":
nm="y"
while nm=="y" or nm=="Y":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
oid=input("Enter LoginID:-")
nid=input("Enter NewPassword:-")
cur.execute("select *fromcredwhere user_n='"+oid+"'")
x=cur.fetchone()
if x==None:
print("IdDoes not Exists!")
else:
cur.execute("update credset passwd='"+nid+"'where
user_n='"+oid+"'")
con.commit()
con.close()
print("PasswordUpdated!")
nm=input("Change Any Other Password(y/n):-")
ty=input("Change Any Other LoginOr Password(y/n):-")
if jkl=="2":
nm="y"
while nm=="y" or nm=="Y":
con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage"
)
cur=con.cursor()
oid=input("Enter LoginID:-")
cur.execute("select *fromcred where user_n='"+oid+"'")
x=cur.fetchone()
if x==None:
print("IdDoes not Exists!")
else:
cur.execute("delete fromcredwhere user_n='"+oid+"'")
con.commit()
con.close()
print("LoginID Removed!")
nm=input("Change Any Other Credential(y/n):-")
if jkl=="0":
lk="y"
print("Sucessfully Exit!")
if a=="0":
f0="y"
print("Sucessfully LOGOUT!")
else:
print("InvalidLoginId or Password!")
print("Try Again!!")
# !!!Signup Function!!!
if a6=="2":
y="y"
while y=="y" or y=="Y":
us=input("Enter NewUsername:-")
ps=input("Enter NewPassword:-")
con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage
")
cur=con.cursor()
cur.execute("select *fromcredwhere user_n='"+us+"'")
x=cur.fetchone()
if x==None:
cur.execute("insert intocredvalues('"+us+"','"+ps+"')")
print("Sucessfully Saved!")
con.commit()
con.close()
else:
print("UserID Already Exists!")
y=input("Create Other Newid(y/n):-")
# !!!Programme Closer!!!
if a6=="0":
yu="y"
print("Programme Closed!")
OUTPUT
Main Record, Employee Details, Insert record, Show Particular
Record, Delete Record, Department record, Post Record, Delete
Record, Update Record.
Limitations and Enhancement
Limitations:
1. Printing facility is not available.
Enhancement:
1. Printing facility code can be generated.
BIBLIOGRAPHY
1. www.google.com
2. Computer Science with Python Book By Preeti Arora Arora
3. https://www.w3schools.com/python

More Related Content

What's hot

Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)KushShah65
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)lokesh meena
 
Foaming Capacity of Soap
Foaming Capacity of SoapFoaming Capacity of Soap
Foaming Capacity of SoapSaurav Ranjan
 
Project front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementProject front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementAnupam Narang
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In PythonAbhishekKumarMorla
 
Chemistry Investigatory Project on COLD DRINKS
Chemistry Investigatory Project on COLD DRINKSChemistry Investigatory Project on COLD DRINKS
Chemistry Investigatory Project on COLD DRINKSNaveen R
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsHarsh Solanki
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Pythonvikram mahendra
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Self-employed
 
Physics Investigatory Project
Physics Investigatory  ProjectPhysics Investigatory  Project
Physics Investigatory ProjectDIVYANSHU KUMAR
 
Chemistry Investigatory Project Class XII
Chemistry Investigatory Project Class XII Chemistry Investigatory Project Class XII
Chemistry Investigatory Project Class XII AsanalMahathir
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingHarsh Kumar
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project NIKHIL DWIVEDI
 
chemistry project for class 12 on analysis of honey
chemistry project for class 12 on analysis of honeychemistry project for class 12 on analysis of honey
chemistry project for class 12 on analysis of honeyRadha Gupta
 
CHEMISTRY INVESTIGATORY PROJECT 2017-18
CHEMISTRY INVESTIGATORY PROJECT 2017-18CHEMISTRY INVESTIGATORY PROJECT 2017-18
CHEMISTRY INVESTIGATORY PROJECT 2017-18HIMANSHU .
 
Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava adharshvg
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science ProjectAshwin Francis
 
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILK
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILKPREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILK
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILKRajivSingh261
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...AnkitSharma1903
 
Physics Investigatory - Electromagnetic Induction. CLASS XII
Physics Investigatory - Electromagnetic Induction.    CLASS XIIPhysics Investigatory - Electromagnetic Induction.    CLASS XII
Physics Investigatory - Electromagnetic Induction. CLASS XIIEligetiVishnu
 

What's hot (20)

Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)Informatics Practices/ Information Practices Project (IP Project Class 12)
Informatics Practices/ Information Practices Project (IP Project Class 12)
 
Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)Computer science Project for class 11th and 12th(library management system)
Computer science Project for class 11th and 12th(library management system)
 
Foaming Capacity of Soap
Foaming Capacity of SoapFoaming Capacity of Soap
Foaming Capacity of Soap
 
Project front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgementProject front page, index, certificate, and acknowledgement
Project front page, index, certificate, and acknowledgement
 
class 12th computer science project Employee Management System In Python
 class 12th computer science project Employee Management System In Python class 12th computer science project Employee Management System In Python
class 12th computer science project Employee Management System In Python
 
Chemistry Investigatory Project on COLD DRINKS
Chemistry Investigatory Project on COLD DRINKSChemistry Investigatory Project on COLD DRINKS
Chemistry Investigatory Project on COLD DRINKS
 
Factors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell dependsFactors on which the internal resistance/emf of a cell depends
Factors on which the internal resistance/emf of a cell depends
 
BOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in PythonBOOK SHOP SYSTEM Project in Python
BOOK SHOP SYSTEM Project in Python
 
Physics Investigatory Project Class 12
Physics Investigatory Project Class 12Physics Investigatory Project Class 12
Physics Investigatory Project Class 12
 
Physics Investigatory Project
Physics Investigatory  ProjectPhysics Investigatory  Project
Physics Investigatory Project
 
Chemistry Investigatory Project Class XII
Chemistry Investigatory Project Class XII Chemistry Investigatory Project Class XII
Chemistry Investigatory Project Class XII
 
Computer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market BillingComputer science class 12 project on Super Market Billing
Computer science class 12 project on Super Market Billing
 
cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project cbse 12th chemistry investigatory project
cbse 12th chemistry investigatory project
 
chemistry project for class 12 on analysis of honey
chemistry project for class 12 on analysis of honeychemistry project for class 12 on analysis of honey
chemistry project for class 12 on analysis of honey
 
CHEMISTRY INVESTIGATORY PROJECT 2017-18
CHEMISTRY INVESTIGATORY PROJECT 2017-18CHEMISTRY INVESTIGATORY PROJECT 2017-18
CHEMISTRY INVESTIGATORY PROJECT 2017-18
 
Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava Presence Of Oxalate Ions In Guava
Presence Of Oxalate Ions In Guava
 
12th CBSE Computer Science Project
12th CBSE Computer Science Project12th CBSE Computer Science Project
12th CBSE Computer Science Project
 
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILK
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILKPREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILK
PREPARATION OF SOYBEAN MILK AND ITS COMPARISION WITH NATURAL MILK
 
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
To find the refractive indexes of (a) water,(b) oil using a plane mirror, an ...
 
Physics Investigatory - Electromagnetic Induction. CLASS XII
Physics Investigatory - Electromagnetic Induction.    CLASS XIIPhysics Investigatory - Electromagnetic Induction.    CLASS XII
Physics Investigatory - Electromagnetic Induction. CLASS XII
 

Similar to computer science with python project for class 12 cbse

Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)PiyushKashyap54
 
Employee management system report
Employee management system reportEmployee management system report
Employee management system reportPrince Singh
 
Employee Management System in C++
Employee Management System in C++Employee Management System in C++
Employee Management System in C++Jayant Gope
 
Domestic Data Entry Operator.pdf
Domestic Data Entry Operator.pdfDomestic Data Entry Operator.pdf
Domestic Data Entry Operator.pdfJaspreetKaur612789
 
Office Management System
Office Management SystemOffice Management System
Office Management SystemShamimSumon
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul PatelMitul Patel
 
IRJET- Employee Task Management System with High Authentication
IRJET- Employee Task Management System with High AuthenticationIRJET- Employee Task Management System with High Authentication
IRJET- Employee Task Management System with High AuthenticationIRJET Journal
 
Payroll Management System Complete Report
Payroll Management System Complete ReportPayroll Management System Complete Report
Payroll Management System Complete ReportSavio Aberneithie
 
Design & implementation
Design & implementationDesign & implementation
Design & implementationSuman Mia
 
Smu mba sem 4 mis spring 2016 solved assignments
Smu mba sem 4 mis spring 2016 solved assignmentsSmu mba sem 4 mis spring 2016 solved assignments
Smu mba sem 4 mis spring 2016 solved assignmentssmumbahelp
 
Best Practices with ODI : Flexibility
Best Practices with ODI : FlexibilityBest Practices with ODI : Flexibility
Best Practices with ODI : FlexibilityGurcan Orhan
 

Similar to computer science with python project for class 12 cbse (20)

Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)Employee Management (CS Project for 12th CBSE)
Employee Management (CS Project for 12th CBSE)
 
Employee management system report
Employee management system reportEmployee management system report
Employee management system report
 
Employee Management System in C++
Employee Management System in C++Employee Management System in C++
Employee Management System in C++
 
Office collaborator
Office collaboratorOffice collaborator
Office collaborator
 
Domestic Data Entry Operator.pdf
Domestic Data Entry Operator.pdfDomestic Data Entry Operator.pdf
Domestic Data Entry Operator.pdf
 
Office Management System
Office Management SystemOffice Management System
Office Management System
 
Steps for PA and OM
Steps for  PA and OMSteps for  PA and OM
Steps for PA and OM
 
Report Card making BY Mitul Patel
Report Card making BY Mitul PatelReport Card making BY Mitul Patel
Report Card making BY Mitul Patel
 
Project Management System
Project Management SystemProject Management System
Project Management System
 
SYNOPSIS
SYNOPSISSYNOPSIS
SYNOPSIS
 
IRJET- Employee Task Management System with High Authentication
IRJET- Employee Task Management System with High AuthenticationIRJET- Employee Task Management System with High Authentication
IRJET- Employee Task Management System with High Authentication
 
Sap HR questions
Sap HR questionsSap HR questions
Sap HR questions
 
Payroll Management System Complete Report
Payroll Management System Complete ReportPayroll Management System Complete Report
Payroll Management System Complete Report
 
Design & implementation
Design & implementationDesign & implementation
Design & implementation
 
saad cv
saad cv saad cv
saad cv
 
saad cv
saad cv saad cv
saad cv
 
Smu mba sem 4 mis spring 2016 solved assignments
Smu mba sem 4 mis spring 2016 solved assignmentsSmu mba sem 4 mis spring 2016 solved assignments
Smu mba sem 4 mis spring 2016 solved assignments
 
Resume BI and DataAnalyst
Resume BI and DataAnalystResume BI and DataAnalyst
Resume BI and DataAnalyst
 
CVManojKrMadhukar1
CVManojKrMadhukar1CVManojKrMadhukar1
CVManojKrMadhukar1
 
Best Practices with ODI : Flexibility
Best Practices with ODI : FlexibilityBest Practices with ODI : Flexibility
Best Practices with ODI : Flexibility
 

More from manishjain598

Introducing Western-style HRM practices to China.pptx
Introducing Western-style HRM practices to China.pptxIntroducing Western-style HRM practices to China.pptx
Introducing Western-style HRM practices to China.pptxmanishjain598
 
Resume writing for freshers
Resume writing for freshersResume writing for freshers
Resume writing for freshersmanishjain598
 
 ' A Travel Guide Map' of Odisha
 ' A Travel Guide Map' of Odisha ' A Travel Guide Map' of Odisha
 ' A Travel Guide Map' of Odishamanishjain598
 
Presentation tips for better impression
Presentation tips for better impressionPresentation tips for better impression
Presentation tips for better impressionmanishjain598
 
Tourist places in Odisha
Tourist places in OdishaTourist places in Odisha
Tourist places in Odishamanishjain598
 
Youth and India - OVERVIEW
Youth and India - OVERVIEWYouth and India - OVERVIEW
Youth and India - OVERVIEWmanishjain598
 
Presentation tips - preparing to presenting
Presentation tips - preparing to presentingPresentation tips - preparing to presenting
Presentation tips - preparing to presentingmanishjain598
 
Tips for group discussion by manish jain
Tips for group discussion by manish jainTips for group discussion by manish jain
Tips for group discussion by manish jainmanishjain598
 
Personality straits of J K ROWLING
Personality straits of J K ROWLINGPersonality straits of J K ROWLING
Personality straits of J K ROWLINGmanishjain598
 
English spoken ppt who moved my cheese BY JOHN SPENCER
English spoken ppt   who moved my cheese BY JOHN SPENCEREnglish spoken ppt   who moved my cheese BY JOHN SPENCER
English spoken ppt who moved my cheese BY JOHN SPENCERmanishjain598
 
The monk who sold his ferrari summary and review english ppt by manish jain
The monk who sold his ferrari summary and review english ppt by manish jainThe monk who sold his ferrari summary and review english ppt by manish jain
The monk who sold his ferrari summary and review english ppt by manish jainmanishjain598
 
class 11 and 12 political science investigatory project
class 11 and 12 political science investigatory projectclass 11 and 12 political science investigatory project
class 11 and 12 political science investigatory projectmanishjain598
 

More from manishjain598 (12)

Introducing Western-style HRM practices to China.pptx
Introducing Western-style HRM practices to China.pptxIntroducing Western-style HRM practices to China.pptx
Introducing Western-style HRM practices to China.pptx
 
Resume writing for freshers
Resume writing for freshersResume writing for freshers
Resume writing for freshers
 
 ' A Travel Guide Map' of Odisha
 ' A Travel Guide Map' of Odisha ' A Travel Guide Map' of Odisha
 ' A Travel Guide Map' of Odisha
 
Presentation tips for better impression
Presentation tips for better impressionPresentation tips for better impression
Presentation tips for better impression
 
Tourist places in Odisha
Tourist places in OdishaTourist places in Odisha
Tourist places in Odisha
 
Youth and India - OVERVIEW
Youth and India - OVERVIEWYouth and India - OVERVIEW
Youth and India - OVERVIEW
 
Presentation tips - preparing to presenting
Presentation tips - preparing to presentingPresentation tips - preparing to presenting
Presentation tips - preparing to presenting
 
Tips for group discussion by manish jain
Tips for group discussion by manish jainTips for group discussion by manish jain
Tips for group discussion by manish jain
 
Personality straits of J K ROWLING
Personality straits of J K ROWLINGPersonality straits of J K ROWLING
Personality straits of J K ROWLING
 
English spoken ppt who moved my cheese BY JOHN SPENCER
English spoken ppt   who moved my cheese BY JOHN SPENCEREnglish spoken ppt   who moved my cheese BY JOHN SPENCER
English spoken ppt who moved my cheese BY JOHN SPENCER
 
The monk who sold his ferrari summary and review english ppt by manish jain
The monk who sold his ferrari summary and review english ppt by manish jainThe monk who sold his ferrari summary and review english ppt by manish jain
The monk who sold his ferrari summary and review english ppt by manish jain
 
class 11 and 12 political science investigatory project
class 11 and 12 political science investigatory projectclass 11 and 12 political science investigatory project
class 11 and 12 political science investigatory project
 

Recently uploaded

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxsocialsciencegdgrohi
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Celine George
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 

Recently uploaded (20)

CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptxHistory Class XII Ch. 3 Kinship, Caste and Class (1).pptx
History Class XII Ch. 3 Kinship, Caste and Class (1).pptx
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
Incoming and Outgoing Shipments in 1 STEP Using Odoo 17
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 

computer science with python project for class 12 cbse

  • 1. Subodh Public School A Project Report on Employee Management Submitted By Under the Guidance of 1. Kratika Mittal Mr. Sunil Nehra
  • 2. 2. ManishSuryakantJain 3. Mohit Chandel PGT (Computer Science) CERTIFICATE This is to certify that Kratika Mittal, Manish Suryakant Jain and Mohit Chandel of Class XII A, has successfully completed the investigatory project on the topic Employee Management under the guidanceof Mr. Sunil Nehra (PGT, Computer Science) during the academic year 2019-20 in the partial fulfillment of AISSCE Practical Examination conducted by CBSE. Signature of Internal Examiner Signature of External Examiner Signature of Candidate
  • 3. DECLARATION I hereby declare that the project work entitled “Employee Management” submitted to Departmentof Computer Science, Subodh Public School, Jaipur is prepared by us. All the coding is result of my personal efforts. 1. Kratika Mittal – XII A 2. Manish Suryakant Jain – XII A 3. Mohit Chandel – XII A
  • 4. ACKNOWLEDGEMENT I would like to express a deep sense of thanks and gratitude to my projectguide Mr. Sunil Nehra Sir for guidingme immensely throughthe course of the project. He alwaysevinced keen interest in my work. His constructive advice and constant motivation have been responsible for the successful completion of this project. My sincere thanks goes to Dr Bela Joshi, our Principal Madam, for her coordination in extending every possible support for completion of this project. I also thanks to my parents for their motivation and support. I must thanks to my classmates for their timely help and support for compilation of this project. Last but not least, I would like to those who had helped directly or indirectly towards the completion of this project. 1. Kratika Mittal – XII A 2. Manish Suryakant Jain – XII A 3. Mohit Chandel – XII A
  • 5. CONTENTS 1. Introduction 2. Imported files and used functions in Python 3. Table Created in MySQL 4. Coding 5. Output Scenes 6. Limitations and Enhancement 7. Bibliography
  • 6. INTRODUCTION The project is designed to keep records of Employee in specific department and specific post who are working in these companies. A table named cred in MySQL5.0 to store information about user login ids and passwords. One more table named department in MySQL5.0 to store information about department code, name and their packages. One more table named post in MySQL5.0 to store information about post code and name. One more table named staff in MySQL5.0 to store information about employee (staff) name, address, phone number, salary and post. Administrator of the project can enter new record, display all/specific passenger record; he can modify and delete records in any table.
  • 7. Files Imported in Project 1. Import MYSQL for database connectivity Functions Used in Project 1. connect()- For Database and tables creation 2. cursor()- To execute MySQL queries. 3. fetchall ()- To fetch all the rows. 4. commit()- To execute (commit) current transaction. 5. fetchone ()- To fetch row according to query.
  • 8. Tables Created in MySQL Table: cred Table: staff Table: department Table: post
  • 9. CODING import mysql.connector as my yu="n" while yu=="n": print("---1-FOR LOGIN---") print("---2-FOR SIGNUP---") print("---0-EXIT---") a6=input("ENTER:-") if a6=="1": uname=input(" ENTER USERNAME:-") pswd=input(" ENTER PASSWORD:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select passwd,user_n fromcredwhere user_n='"+uname+"'") row=cur.fetchall() for r in row: if r[0]==pswd: print("Sucessfully Login!") cur.close()
  • 10. # !!!department's employee management functions!!! f0="n" while f0=="n": print(""" ---1-Employee Details--- ---2-Department Functions--- ---3-Post Details--- ---4-Update Or Delete LoginID AndPassword--- ---0-LOGOUT---""") a=input("ENTER:-") if a=="1": # !!!employee details functions!!! f1="n" while f1=="n": print("") print("---1-All Staff Details---") print("---2-SearchEmployee By E_ID---") print("---3-Change Employee Details---") print("---4-AddNewEmployee---") print("---5-Delete EmployeeDetails---") print("---0-ExitStaff Functions---") a1=input("ENTER:-")
  • 11. # !!!all details!!! if a1=="1": con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *from staff") for i in cur: print(i) con.close() # !!!searcher!!! if a1=="2": y="y" while y=="y": eid=input("Enter Employee ID:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *fromstaff where s_id='"+eid+"'") x=cur.fetchone() if x==None: print("InvalidId!") else:
  • 12. cur.execute("select *fromstaff where s_id='"+eid+"'") for i incur: print(i) con.close() y=input("SearchAnother Id(y/n):-") # !!!changer!!! if a1=="3": con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() eid=input("Enter Employee ID:-") cur.execute("select *from staff where s_id='"+eid+"'") x=cur.fetchone() if x==None: print("InvalidId!") else: print(""" ---1-Change name--- ---2-Change Contact--- ---3-Change Address--- ---4-Change Salary---""")
  • 13. a10=input("ENTER:-") if a10=="1": aq=input("Enter NewName:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("update staff set s_name='"+aq+"' where s_id='"+eid+"'") con.commit() con.close() print("RecordUpdated!") if a10=="2": aq=input("Enter NewContact:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("update staff set s_phone='"+aq+"'where s_id='"+eid+"'") con.commit() con.close() print("RecordUpdated!") if a10=="3": aq=input("Enter NewAddress:-")
  • 14. con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("update staff set s_addr='"+aq+"' where s_id='"+eid+"'") con.commit() con.close() print("RecordUpdated!") if a10=="4": aq=input("Enter NewSalary:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("update staff set s_salary='"+aq+"' where s_id='"+eid+"'") con.commit() con.close() print("RecordUpdated!") # !!!adder!!! if a1=="4": nid=input("Enter ID:-") nna=input("Enter name:-") nad=input("Enter address:-")
  • 15. nap=input("Enter Contact:-") nsa=input("Enter Salary:-") npo=input("Enter post:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select s_idfromstaff where s_id='"+nid+"'") x=cur.fetchone() if x==None and len(nap)<=11: cur.execute("insertintostaff values('"+str(nid)+"','"+nna+"','"+nad+"','"+nap+"','"+nsa+"','"+npo+"')") con.commit() con.close() print("DetailsSaved!") else: print("ID Already Exists Or InvalidContact!") # !!!remover!!! if a1=="5": aw=input("Enter Employee ID:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *from staff where s_id='"+aw+"'")
  • 16. x=cur.fetchone() if x==None: print("InvalidId!") else: cur.execute("delete fromstaff where s_id='"+aw+"'") con.commit() con.close() print("RecordRemoved!") if a1=="0": f1="y" print("Staff Functions Closed!") # !!!Department Functions!!! if a=="2": f1="n" while f1=="n": print(""" ---1-See Department--- ---2-SearchDepartment--- ---3-AddDepartment--- ---4-Remove Department--- ---5-Upadate Department--- ---0-Exit Department Functions---""")
  • 17. a2=input("ENTER:-") # !!!see Department!!! if a2=="1": con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *from department") for i in cur: print(i) # !!!searchitem!!! if a2=="2": ad="y" while ad=="y" or ad=="Y": con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() a=input("Enter Department Code:-") cur.execute("select *fromdepartment where deptcode='"+a+"'") x=cur.fetchone() if x==None: print("InvalidId!") else:
  • 18. cur.execute("select *fromdepartment where deptcode='"+a+"'") for i incur: print(i) ad=input("SearchOther Department(y/n):-") # !!!AddDepartment!!! if a2=="3": ad="y" while ad=="y" or ad=="Y": ico=input("Enter Department code:-") ina=input("Enter Department Name:-") ipa=int(input("Enter Department package:-")) con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *fromdepartment where deptcode='"+ico+"'") x=cur.fetchall() if x==None: print("Try Again!") else: cur.execute("insertintodepartment values('"+ico+"','"+ina+"','"+str(ipa)+"')") print("Sucessfully Added!")
  • 19. con.commit() con.close() ad=input("AddOther Department(y/n):-") print("Departmentcode Already Exists!") # !!!remover!!! if a2=="4": ad="y" while ad=="y" or ad=="Y": con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() a=input("Enter Department Code:-") cur.execute("select *fromdepartment where deptcode='"+a+"'") x=cur.fetchone() if x==None: print("InvalidId!") else: cur.execute("delete fromdepartment where deptcode='"+a+"'") con.commit() con.close() ad=input("Remove Other Department(y/n):-") print("DeletedSucessfully!")
  • 20. # !!!updater!!! if a2=="5": ad="y" while ad=="y" or ad=="Y": print(""" ---1-Change Department Name--- ---2-Change Department Package---""") i=input("ENTER:-") if i=="1": e="y" while e=="y" or e=="Y": a=input("Enter Department Code:-") na=input("Enter NewName:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select * fromdepartment where deptcode='"+a+"'") x=cur.fetchone() if x==None: print("InvalidId!") else:
  • 21. cur.execute("update department setdeptname='"+na+"'where deptcode='"+a+"'") con.commit() con.close() e=input("Change Any Other Name(y/n):-") if i=="2": e="y" while e=="y" or e=="Y": a=input("Enter Department Code:-") na=int(input("Enter Newpackage:-")) con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *fromdepartment where deptcode='"+a+"'") x=cur.fetchone() if x==None: print("InvalidId!") else: cur.execute("update department setdeptname='"+na+"'where deptcode='"+a+"'") con.commit() con.close()
  • 22. e=input("Change Any Other Package(y/n):-") print("RecordUpdated!") ad=input("Change Any Other Record(y/n):-") if a2=="0": f1="y" print("Department Closed!") # !!!post functions!!! if a=="3": qp="n" while qp=="n": print(""" ---1-See List Of Post--- ---2-Update Post--- ---3-Remove Or AddPost--- ---0-Exit Post Functions---""") a3=input("ENTER:-") # !!!For list seeing!!! if a3=="1": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor()
  • 23. cur.execute("select *from post") for i in cur: print(i) con.close() # !!!Updater!!! if a3=="2": er="y" while er=="y" or er=="Y": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() ic=input("Enter Post Code:-") cur.execute("select *frompost where post_code='"+ic+"'") x=cur.fetchone() if x==None: print("InvalidCode!") else: upq=int(input("Enter NewNo_Of_Employees:-")) cur.execute("update post set no_of_employees='"+str(upq)+"'where post_code='"+ic+"'") con.commit()
  • 24. con.close() print("Post Updated!") er=input("Change Any Other Post(y/n):-") # !!!remover and adder!!! if a3=="3": ui="y" while ui=="y" or ui=="Y": print("""---1-AddNewPost--- ---2-Remove Post---""") rty=input("ENTER:-") if rty=="1": df="y" while df=="y" or df=="Y": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() itc=input("Enter Post Code:-") itn=input("Enter Post Name:-") itq=input("Enter No_Of_Employees:-") cur.execute("select post_codefrompost where post_code='"+itc+"'") x=cur.fetchall()
  • 25. if x==None: cur.execute("insert intopost values('"+itc+"','"+itn+"','"+itq+"')") con.commit() con.close() print("Post Added!") else: print("Post Code Already Exists!") df=input("AddAny Other Post(y/n):-") if rty=="2": op="y" while op=="y" or op=="Y": itc=input("Enter Post Code:-") con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() cur.execute("select post_codefrompost where post_code='"+itc+"'") x=cur.fetchone() if x==None: print("InvalidPost Code!") else: cur.execute("delete frompost where post_code='"+itc+"'")
  • 26. con.commit() con.close() print("Post Removed!") op=input("Remove Any Other Post(y/n):-") ui=input("AddOr Remove Any Other Post(y/n):-") if a3=="0": qp="y" print("Posts Closed!") # !!!loginIdor Passwordupdate or delete programme!!! if a=="4": lk="n" while lk=="n" or lk=="N": print(""" ---1-For Updating LoginIdOr Password--- ---2-For Remove AnID--- ---0-For Exit---""") jkl=input("ENTER:-") if jkl=="1": ty="y" while ty=="y": print("""
  • 27. ---1-Update LoginID--- ---2-Update Password---""") rt=input("ENTER:-") if rt=="1": nm="y" while nm=="y" or nm=="Y": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() oid=input("Enter OldLoginID:-") nid=input("Enter NewLoginID:-") cur.execute("select *fromcredwhere user_n='"+oid+"'") x=cur.fetchone() if x==None: print("IdDoes not Exists!") else: cur.execute("update credset user_n='"+nid+"'where user_n='"+oid+"'") con.commit() con.close() print("LoginID Updated!") nm=input("Change Any Other LoginID(y/n):-")
  • 28. if rt=="2": nm="y" while nm=="y" or nm=="Y": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() oid=input("Enter LoginID:-") nid=input("Enter NewPassword:-") cur.execute("select *fromcredwhere user_n='"+oid+"'") x=cur.fetchone() if x==None: print("IdDoes not Exists!") else: cur.execute("update credset passwd='"+nid+"'where user_n='"+oid+"'") con.commit() con.close() print("PasswordUpdated!") nm=input("Change Any Other Password(y/n):-") ty=input("Change Any Other LoginOr Password(y/n):-") if jkl=="2":
  • 29. nm="y" while nm=="y" or nm=="Y": con=my.connect(host='localhost',user="root",passwd="manager",database="empmanage" ) cur=con.cursor() oid=input("Enter LoginID:-") cur.execute("select *fromcred where user_n='"+oid+"'") x=cur.fetchone() if x==None: print("IdDoes not Exists!") else: cur.execute("delete fromcredwhere user_n='"+oid+"'") con.commit() con.close() print("LoginID Removed!") nm=input("Change Any Other Credential(y/n):-") if jkl=="0": lk="y" print("Sucessfully Exit!") if a=="0": f0="y"
  • 30. print("Sucessfully LOGOUT!") else: print("InvalidLoginId or Password!") print("Try Again!!") # !!!Signup Function!!! if a6=="2": y="y" while y=="y" or y=="Y": us=input("Enter NewUsername:-") ps=input("Enter NewPassword:-") con=my.connect(host="localhost",user="root",passwd="manager",database="empmanage ") cur=con.cursor() cur.execute("select *fromcredwhere user_n='"+us+"'") x=cur.fetchone() if x==None: cur.execute("insert intocredvalues('"+us+"','"+ps+"')") print("Sucessfully Saved!") con.commit() con.close() else:
  • 31. print("UserID Already Exists!") y=input("Create Other Newid(y/n):-") # !!!Programme Closer!!! if a6=="0": yu="y" print("Programme Closed!")
  • 32. OUTPUT Main Record, Employee Details, Insert record, Show Particular Record, Delete Record, Department record, Post Record, Delete Record, Update Record.
  • 33.
  • 34.
  • 35. Limitations and Enhancement Limitations: 1. Printing facility is not available. Enhancement: 1. Printing facility code can be generated.
  • 36. BIBLIOGRAPHY 1. www.google.com 2. Computer Science with Python Book By Preeti Arora Arora 3. https://www.w3schools.com/python