Computer Science PDF
Computer Science PDF
1
CS PROJECT
CERTIFICATE
This is to certify that _P.Ramalinga
Reddy and Amar of class XII has
successfully completed the project titled
“Employee Management System” under
the guidance of subject teacher Mrs.
Hemalatha during the academic year
2020-2021 in partial fulfillment of
Computer Science practical
examination conducted by CBSE.
Signature Signature
(Examiner) (Subject Teacher)
Signature
(Principal)
2
CS PROJECT
Acknowledgement
3
CS PROJECT
Index
S.No. Topic Page no.
1 System requirements 5
2 Feasibility study 6
3 Errors and its types 7
4 Testing 8
5 Maintenance 9
6 Source code 10
7 Code 11
8 Output 17
9 Appendix 24
10 Bibliography 25
4
CS PROJECT
System Requirements
1. HARDWARE:
• Processor
• Keyboard
• Minimum memory - 2GB
2. SOFTWARE:
• Operating System –OS7, OS8
• Python IDLE
• MYSQL
5
CS PROJECT
Feasibility Study
Feasibility study is a system proposal according to its work,
ability, impact on the operation ability to meet the needs of
users and efficient use of resources. An important outcome of
preliminary investigations the determination of that system
requested feasible.
ECONOMICAL FEASIBILITY:
Economics analysis is the most frequent use method for
evaluating the effectiveness of the candidates the benefits
and savings that are expected from system and compare them
with cost.
This software is not very costly. It just worth Rs.5500/-.So
users records can be maintained at a cheaper cost and every
school would like to use this software so that the student’s
records can be managed easily.
TECHNICAL FEASIBILTY:
Technical feasibility center on the existing computer system
and to what extent it can support the proposed task. This
involves financial consideration to accommodate technical
enhancements.
It is technically feasible because whatever technology is
needed to develop this software is easily available.
6
CS PROJECT
Testing
• Alpha Testing: It is the most common type of testing used
in the software industry. The objective of this testing is to
identify all possible issues or defects before releasing it
into the market or to the user. It is conducted at the
developer’s site.
8
CS PROJECT
Maintenance
Programming maintenance refers to the modifications in the
program. After it has been completed, in order to meet
changing requirement or to take care of the errors that
shown up. There are four types of maintenance:
• Corrective Maintenance: When the program after
compilation shows error because of some unexpected
situations, untested areas such errors are fixed up by
Corrective maintenance.
9
CS PROJECT
SOURCE CODE
importmysql.connector as mcon
import sys
mycursor = con.cursor()
ifcon.is_connected():
mycursor.execute("use LOC")
#print(Q)
#mycursor.execute(Q)
con.commit()
at = 1
while at <= 3:
10
CS PROJECT
at += 1
status = 'A'
mycursor.execute("select * from user where uname = '{}' and upwd = '{}' and ustatus =
'{}'".format(uid,pwd,status))
data = mycursor.fetchone()
count = mycursor.rowcount
#print(count)
if count == 1:
print("Login Successfully.")
#--------------------------*CHOICES*-----------------------------
while True:
#--------------------------*TABLE CREATION*----------------------------
11
CS PROJECT
#print(ins)
mycursor.execute(ins)
#--------------------------*INSERTION OF RECORDS*-------------------
print("Insertion Operation.")
12
CS PROJECT
mycursor.execute(q)
con.commit()
13
CS PROJECT
#--------------------------*UPDATION*-----------------------------
print("Updation of Record.")
qry = "update students set cand_name = '{}', mother_name = '{}' , father_name = '{}'
where reg_num = {}".format(sn,mn,fn,reg)
mycursor.execute(qry)
con.commit()
#--------------------------*DELETION*-----------------------------
print("Removal of Record.")
mycursor.execute(qry)
con.commit()
#--------------------------*SEARCHING*-----------------------------
print("Searching Operation.")
#print(qry)
14
CS PROJECT
mycursor.execute(qry)
data = mycursor.fetchone()
count = mycursor.rowcount
print(row)
#--------------------------*DISPLAY*-----------------------------
mycursor.execute(qry)
data = mycursor.fetchall()
count = mycursor.rowcount
print("________________________________ ____
_____________________________________________________"
print("Exiting Program.")
sys.exit(0)
else:
15
CS PROJECT
else:
print("Login Failed")
if at !=4:
print("Try Again")
else:
16
CS PROJECT
17
CS PROJECT
OUTPUT
TABLE CREATED SUCCESSFULLY.
18
CS PROJECT
2. Insertion of record:
19
CS PROJECT
3. Updating record:
4. Deleting a record
20
CS PROJECT
5. Searching a record:
21
CS PROJECT
7. Exit
22
CS PROJECT
RECORDS:
23
CS PROJECT
Functions Working
connect() establishes connection between
MySQL and Python
cursor() facilitates the row by row
processing of records in the
resultset
is_connected() check whether connection is
established or not
execute() for the execution of sql query
commit() to save the changes that you
have you made
fetchone() only fetch one record
fetchall() fetches all records
fetchmany() fetches as many records as you
want
rowcount() returns the number of rows
retrieved from the
cursor
24
CS PROJECT
BIBLIOGRAPHY
- bySumitaArora
• www.python.org/download
• www.py2exe.org
• www.mysql.org
25
CS PROJECT
26