Computer Science Investigatory Project
Computer Science Investigatory Project
SCHOOL
[HOLISTIC EDUCATION]
SUBMITTED BY
NAME: GOKULRAJ. R
CLASS: XII – A2
REG NO: 20614546
GUIDED BY
Mrs.M. POOVIZHI.,MCA.,M.Phil(PGT)
COMPUTER SCIENCE
(2021 - 2022)
CERTIFICATE
Gokulraj. R
Jeremiah. J
Karthikeyan. K
INDEX
Page | 1
SYSTEM REQUIREMENTS
1. HARDWARE:
• A Computer/Laptop with Operating System – Windows 8.2 or
above
• X86 64 – bit CPU (Intel)
• 4 GB RAM
• 10 GB free disk
2. SOFTWARE:
• Python 3.7.x or higher version
• MySQL
Page | 2
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.
Page | 3
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:
Page | 4
TESTING
Page | 5
MAINTENANCE
Page | 6
FLOW CHART OF THE PROGRAM
EXIT
Page | 7
CODE
import mysql.connector as mcon
import sys
con = mcon.connect(host="localhost",user="root",password="12345")
mycursor = con.cursor()
if con.is_connected():
mycursor.execute("use LOC")
#print(Q)
#mycursor.execute(Q)
con.commit()
at = 1
while at==1:
Page | 8
at += 1
status = 'A'
data = mycursor.fetchone()
count = mycursor.rowcount
#print(count)
if count == 1:
print("Login Successfully.")
#-----------------------------------*CHOICES*------------------------------------------
while True:
#--------------------------------*TABLE CREATION*----------------------------------
----
Page | 9
if ch == 'I' or ch == 'i':
Page | 10
Total float(5), Average float(3), Result char(10) NOT NULL,
Attempt smallint NOT NULL,\
Annual_Income
int(25),Roll_Number_of_Equivalent_Exam_passed int(10),\
Equivalent_Exam_passed char(20),
Board_of_Equivalent_Exam_passed char(20), Single_Girl char(5),\
#print(ins)
mycursor.execute(ins)
#-------------------------------*INSERTION OF RECORDS*--------------------------
-------
Page | 11
Father_Name = input("Enter the student's father's name: ")
Page | 12
Subject2_Code=input("Enter the subject code of subject 2:
").zfill(3)
Page | 13
Total=Subject1_Mark+Subject2_Mark+Subject3_Mark+Subject4_Mark
+Subject5_Mark+Subject6_Mark
Average=Total/6
Roll_Number_of_Equivalent_Exam_passed = int(input("Enter
student's roll number of equivalent exam passed: "))
Page | 14
q = "insert into students
(Roll_Number,Register_Number,LOC_Serial_Number, Year_Passed,\
School_Name,School_Number,Centre_Name,Centre_Number,Candidat
e_Name,\
Email_ID ,Aadhar_Number,\
Equivalent_Exam_passed, Board_of_Equivalent_Exam_passed,
Single_Girl,\
'{}',{},'{}',{},'{}','{}','{}','{}','{}','{}','{}','{}','{}','{}','{}',{},'{}',{},'{}',{},'{}',\
'{}','{}',{},'{}','{}','{}',{},'{}','{}','{}',{},'{}','{}','{}',{},'{}','{}',\
'{}',{},'{}','{}','{}','{}','{}',{},{},{},'{}','{}','{}','{}',{},'{}')".format(Roll_Number,R
egister_Number,LOC_Serial_Number,
Page | 15
Year_Passed,School_Name,School_Number,Centre_Name,Centre_Num
ber,Candidate_Name,Mother_Name,Father_Name,Gender,Caste,Mino
rity,PWD_Status,Nationality,State,District,Address,Mobile_Number,Em
ail_ID,Aadhar_Number,Subject1,Subject1_Mark,Subject1_Code,Subject
1_Grade,Subject2,Subject2_Mark,Subject2_Code,Subject2_Grade,Subj
ect3,Subject3_Mark,Subject3_Code,Subject3_Grade,Subject4,Subject4
_Mark,Subject4_Code,Subject4_Grade,Subject5,Subject5_Mark,Subjec
t5_Code,Subject5_Grade,Subject6,Subject6_Mark,Subject6_Code,Subj
ect6_Grade,Total,Average,Result,Attempt,Annual_Income,Roll_Numbe
r_of_Equivalent_Exam_passed,Equivalent_Exam_passed,Board_of_Equ
ivalent_Exam_passed,Single_Girl,Migration_Certificate,Admission_Nu
mber,Admission_Date)
mycursor.execute(q)
con.commit()
#--------------------------*UPDATION*-----------------------------
if ch == 'U' or ch == 'u':
if marks_names=='names' or marks_names=='NAMES' or
marks_names=='Names':
Page | 16
qry = '''update students set Candidate_Name = '{}' ,
Mother_Name = '{}' ,
mycursor.execute(qry)
con.commit()
Subject1=sub1
SubjectCode1=subc1.zfill(3)
Subject2=sub2
SubjectCode2=subc2.zfill(3)
Subject3=sub3
SubjectCode3=subc3.zfill(3)
Subject4=sub4
Page | 17
subc4=input("Enter the Subject Code of Subject 4:",)
SubjectCode4=subc4.zfill(3)
Subject5=sub5
SubjectCode5=subc5.zfill(3)
Subject6=sub6
SubjectCode6=subc6.zfill(3)
Page | 18
s5=print("Name of the Subject 5:",Subject5)
total=sm1+sm2+sm3+sm4+sm5+sm6
avg=total/6
Page | 19
mycursor.execute(qry)
con.commit()
#--------------------------*SEARCHING*----------------------------
if ch == 'S' or ch == 's':
#print(qry)
mycursor.execute(qry)
data = mycursor.fetchone()
count = mycursor.rowcount
print(row)
#--------------------------*DELETION*-----------------------------
if ch == 'D' or ch == 'd':
mycursor.execute(qry)
Page | 20
con.commit()
#---------------------------*EXIT*--------------------------------
if ch=='e' or ch=='E':
sys.exit(0)
exit
Page | 21
OUTPUT
1. Table Created Successfully
Page | 22
Page | 23
2. Insertion of Record
Page | 24
3. Updating a Record
Page | 25
4. Searching a Record
Page | 26
5. Deleting a Record
6. Exit
Page | 27
Records
Page | 28
BIBLIOGRAPHY
Page | 29