cs
cs
MADURAI
AISSCE – 2024
CLASS :X11-A1
REG NO :
2023-2024
VELAMMAL VIDYALAYA VIRAGANOOR
MADURAI
CERTIFICATE
Date: __________
Last, but not the least, I would like to thank CBSE for giving us the
opportunity to undertake this project.
INDEX
S.N CONTENT PG.N
O O
1. BRIEF OVERVIEW 1
2. NEED FOR COMPUTERIZATION 2
3. HARDWARE AND SOFTWARE 3
4. ADVANTAGES OF PROJECT 4
5. LIMITATIONS OF PROJECT 5
6. SOURCE CODE 6
7. OUTPUT 13
8 FUTURE ENHANCEMENT 25
9. BIBLIOGRAPHY 26
Brief overview
The “Report Card Generator” was developed to
overcome the problems that prevail manual system.
The software is supported to eliminate and in some
cases ,reduce the difficulties encountered by this
legacy system.
Furthermore , this system is designed for the
specific educational needs to be implemented.
SOFTWARE REQUIREMENTS:
Windows OS
Python 3.11
My SQL 5.5
MS Word
Advantages of project
SOURCE CodE
#***VELAMMAL VIDYALAYA VIRAGANOOR ***
import mysql.connector
myConnection=mysql.connector.connect(host="localhost",user=username,pass
wd=password,database='SCHOOL',auth_plugin='mysql_native_passwd' )
if myConnection:
print("\n CONGRATULATIONS ! YOUR MYSQL CONNECTION HAS
BEEN ESTABLISHED !")
cursor=myConnection.cursor()
cursor.execute("CREATE DATABASE SCHOOL")
cursor.execute("COMMIT")
cursor.close()
return myConnection
else:
print("\nERROR ESTABLISHING MYSQL CONNECTION
CHECK USERNAME AND PASSWORD !")
myConnection=mysql.connector.connect(host="localhost",user=username,pass
wd=password,database='SCHOOL',auth_plugin='mysql_native_passwd' )
if myConnection:
return myConnection
else:
print("\nERROR ESTABLISHING MYSQL CONNECTION !")
myConnection.close()
#MODULE FOR NEW ADMISSION
def newstudent():
if myConnection:
cursor=myConnection.cursor()
createTable ="CREATE TABLE STUDENT(SNAME
VARCHAR(30),FNAME VARCHAR(30),MNAME VARCHAR(30),PHONE
VARCHAR(12), ADDRESS VARCHAR(100),SCLASS
VARCHAR(5),SSECTION VARCHAR(5),SROLL_NO
VARCHAR(5),SADMISSION_NO VARCHAR(10)PRIMARY KEY)"
cursor.execute(createTable)
sname=input("\n ENTER STUDENT'S NAME : ")
fname=input(" ENTER FATHER'S NAME : ")
mname=input(" ENTER MOTHER'S NAME : ")
phone=input(" ENTER CONTACT NO. : ")
address=input(" ENTER ADDRESS : ")
sclass =input(" ENTER CLASS : ")
ssection=input(" ENTER SECTION : ")
sroll_no=input(" ENTER ROLL_NO : ")
sadmission_no=input(" ENTER ADMISSION_NO : ")
sql="INSERT into
student(SNAME,FNAME,MNAME,PHONE,ADDRESS,SCLASS,SSECTION,
SROLL_ NO,SADMISSION_NO)
VALUES('{0}','{1}','{2}','{3}','{4}','{5}','{6}','{7}','{8}')".format(sname,fname,
mname,phone,address,sclass,ssection,sroll_no,sadmission_no)
cursor.execute(sql)
myConnection.commit()
cursor.close()
print("\nNew Student Enrolled Successfully else:")
print("\nERROR ESTABLISHING MYSQL CONNECTION !")
print("###########################################################
#########")
myConnection = MYSQLconnectionCheck()
if myConnection:
MYSQLconnectionCheck()
while(1):
print("| |")
print("| Enter 1 - New Admission. |")
print("| Enter 2 - Display Student's Data. |")
print("| Enter 3 - Update Students's Data . |")
print("| Enter 4 - Add Student's Marks Detail. |")
print("| Enter 5 - Generate All Student's Report Card. |")
print("| Enter 6 - Generate Student Wise Report Card. |")
print("| Enter 7- Exit. |")
print("| |")
print("| Enter 0(ZERO) - Help. |")
print("| |")
choice=int(input("PLEASE ENTER YOUR CHOICE : "))
if choice==1:
newstudent()
elif choice==2:
displayStudent()
elif choice==3:
updateStudent()
elif choice==4:
marksStudent()
elif choice==5:
reportCardAllStudent()
elif choice==6:
reportCardOneStudent()
elif choice==7:
myConnection.close()
break
elif choice==0:
helpMe()
else:
print("Sorry ,May Be You Are Giving Me Wrong Input, Please Try
Again !!! ")
else:
print("Check Your MYSQL Connection First !!! ")
SIGNING IN
Output:
MAIN SCREEN
NEW ADMISSION
DISPLAY STUDENTS DATA
UPDATE STUDENT’S DATA
CREATE ALL STUDENTS REPORT
CARD
CREATE A STUDENT REPORT
CARD
ADDING STUDENTS MARK DETAIL
HELP
MYSQL DATABASE AND TABLES
USED IN THIS PROJECT
DATABASE
TABLE STRUCTURE
Bibliography
Text book: Computer science with python (by
Preeti Arora)
Google.com-for any online queries.
Github.com
Realpython