Computer Science Investigatory Project
Computer Science Investigatory Project
SCIENCE
INVESTIGATORY
PROJECT:
SESSION: 2019-20
Examiner’s signature:
2|Page
ACKNOWLEDGEME
NT
I extend my appreciation and thanks to MR
SANJEEV KUMAR. It was his unfailing
pushing and constant inspiration that this work
could take the present shape.
Turning aspirations into realities is easier when
people are supportive of your efforts. Among
such persons are my parents to whom I am
deeply indebted for the positive feedback
regarding contribution to my work and for their
unfailing steps and ungrudging help at every
step in this project.
-Priti Sharma
Class: XII-A
3|Page
INDEX
Sno Topic
.
1 System requirements
2 Feasibility study
3 Errors and its types
4 Testing
5 Maintenance
6 Flow chart of program
7 Code
8 Output
9 Appendix
10 Bibliography
4|Page
SYSTEM REQUIREMENTS
1. HARDWARE:
Processor
Keyboard
Minimum memory - 2GB
2. SOFTWARE:
Operating System –OS7, OS8
Python IDLE
MYSQL
5|Page
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 centre 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|Page
ERRORS AND ITS TYPES
An error, some time called “A BUG” is anything in the code
that prevents a program from compiling and running
correctly. There are broadly three types of errors as follows:
1. Compile- time errors: Errors that occurs during
compilation of a program is called compile time error. It
has two types as follows:
a. Syntax error: It refers to formal rules governing the
construction of valid statements in a language.
b. Semantics error: It refers to the set of rules which
give the meaning of a statement.
2. Run time Errors: Errors that occur during the execution
of program are run time errors. These are harder to detect
errors. Some run-time error stop the execution of
program which is then called program “Crashed”.
3. Logical Errors: Sometimes, even if you don’t encounter
any error during compiling-time and runtime, your
program does not provide the correct result. This is
because of the programmer’s mistaken analysis of the
problem he or she is trying to solve. Such errors are called
logical error.
7|Page
TESTING
1. 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.
2. Beta Testing: It is a formal type of software testing which
is carried out by the customers. It is performed in a real
environment before releasing the products into the
market for the actual end-users. It is carried out to ensure
that there are no major failures in the software or product
and it satisfies the business requirement. Beta Testing is
successful when the customer accepts the software.
3. White Box Testing: White box testing is based on the
knowledge about the internal logic of an application’s
code. It is also known as Glass box Testing. Internal
Software and code working should be known for
performing this type of testing. These tests are based on
the coverage of the code statements, branches, paths,
conditions etc.
4. Black Box Testing: It is a software testing, method in
which the internal structure or design of the item to be
tested is not known to the tester. This method of testing
can be applied virtually to every level of the software
testing.
8|Page
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:
1. Corrective Maintenance: When the program after
compilation shows error because of some unexpected
situations, untested areas such errors are fixed up by
Corrective maintenance.
2. Adaptive Maintenance: Changes in the environment in
which an information system operates may lead to system
management. To accommodate changing needs time to
time maintenance is done and is called Adaptive
maintenance.
3. Preventive Maintenance: If possible the errors could be
anticipated before they actually occur; the maintenance is
called Preventive maintenance.
4. Perfective Maintenance: In this rapidly changing world,
information technology is the fastest growing area. If the
existing system is maintained to keep tuned with the new
features, new facilities, new capabilities, it is said to be
Perfective maintenance.
9|Page
FLOW CHART OF THE
PROGRAM
LIST OF CANDIDATE
EXIT
10 | P a g e
CODE
import sys
con = mcon.connect(host="localhost",port="3306",user="root",passwd="root")
mycursor = con.cursor()
11 | P a g e
if con.is_connected():
mycursor.execute("use LOC")
#print(Q)
#mycursor.execute(Q)
con.commit()
at = 1
while at <= 3:
at += 1
status = 'A'
mycursor.execute("select * from user where uname = '{}' and upwd = '{}' and
ustatus = '{}'".format(uid,pwd,status))
data = mycursor.fetchone()
12 | P a g e
count = mycursor.rowcount
#print(count)
if count == 1:
print("Login Successfully.")
#--------------------------*CHOICES*-----------------------------
while True:
#--------------------------*TABLE CREATION*-----------------------------
if ch == 'I' or ch == 'i':
13 | P a g e
reg_num int(20) primary key, loc_sr_num integer NOT NULL, yr_pass_xi int(5) NOT
NULL,\
sub_4 char(15) NOT NULL,sub_5 char(15) NOT NULL,add_sub_6 char(15) NOT NULL,\
exam_of_equi_exam_passed char(20),board_of_equi_exam_passed
char(20),single_child char(5),\
#print(ins)
mycursor.execute(ins)
#--------------------------*INSERTION OF RECORDS*-----------------------------
print("Insertion Operation.")
14 | P a g e
reg = int(input("Enter student's registration_num: "))
15 | P a g e
intsub3 = input("Enter name of internal grade subject3: ")
mother_name,father_name,gender,category1,minority,PwD_status,mob_num,email
_id,\
aadhar_num,sub_1,sub_2,sub_3,sub_4,sub_5,add_sub_6,int_grade_sub1,int_grade_s
ub2,int_grade_sub3,\
annual_income,roll_num_of_equi_exam_passed,exam_of_equi_exam_passed,board
_of_equi_exam_passed,\
'{}','{}','{}','{}','{}','{}','{}',{},'{}',{},'{}','{}','{}','{}','{}','{}','{}','{}','{}',{},\
{},'{}','{}','{}','{}',{},'{}')\
16 | P a g e
".format(reg,locsr,yrpassc11,ecat,cname,mname,fname,gender,cat,minor,pwdis,mnu
m,email,ad_num,s1,s2,s3,s4,s5,s6,intsub1,intsub2,intsub3,aninc,eexrnum,eexam,eex
board,sch,mgcr,adm_num,adm_date)
mycursor.execute(q)
con.commit()
#--------------------------*UPDATION*-----------------------------
print("Updation of Record.")
mycursor.execute(qry)
con.commit()
17 | P a g e
#--------------------------*DELETION*-----------------------------
print("Removal of Record.")
mycursor.execute(qry)
con.commit()
#--------------------------*SEARCHING*-----------------------------
print("Searching Operation.")
#print(qry)
mycursor.execute(qry)
data = mycursor.fetchone()
count = mycursor.rowcount
18 | P a g e
for row in data:
print(row)
#--------------------------*DISPLAY*-----------------------------
mycursor.execute(qry)
data = mycursor.fetchall()
count = mycursor.rowcount
print("{0:<9s}{1:<9s}{2:<9s}{3:<9s}{4:<9s}{5:<9s}{6:<9s}{7:<9s}{8:<9s}
{9:<9s}".format('Sl.No','Name','MName','FName','Subject1','Subject2','Subject3','Subj
ect4','Subject5','Subject6'))
print("__________________________________________________________________
_______________________")
print("{0:<9s}{1:<9s}{2:<9s}{3:<9s}{4:<9s}{5:<9s}{6:<9s}{7:<9s}{8:<9s}
{9:<9s}".format(str(row[1]),row[4],row[5],row[6],row[14],row[15],row[16],row[17],r
ow[18],row[19]))
print("Exiting Program.")
19 | P a g e
sys.exit(0)
else:
else:
print("Login Failed")
if at !=4:
print("Try Again")
else:
OUTPUT
20 | P a g e
21 | P a g e
1.Table created successfully.
22 | P a g e
23 | P a g e
STRUCTURE OF THE TABLE
24 | P a g e
2. Insertion of record:
25 | P a g e
26 | P a g e
3. Updating record:
27 | P a g e
4. Deleting a record:
28 | P a g e
5. Searching a record:
29 | P a g e
30 | P a g e
6. Display all Records:
31 | P a g e
7. Exit:
32 | P a g e
RECORDS:
33 | P a g e
APPENDIX
34 | P a g e