0% found this document useful (0 votes)
107 views

Undertaking

The document describes a student management system project created by three students using Python and MySQL. It includes an undertaking, certificate, acknowledgements, introduction, system requirements, source code, output and references sections.

Uploaded by

Manjeet Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
107 views

Undertaking

The document describes a student management system project created by three students using Python and MySQL. It includes an undertaking, certificate, acknowledgements, introduction, system requirements, source code, output and references sections.

Uploaded by

Manjeet Rana
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 13

COMPUTER SCIENCE 2022-23

UNDERTAKING

We declare that the work presented in this project entitled


“STUDENT MANAGEMENT SYSTEM”, submitted to MR. Rajesh Bisht
PGT- Computer Science, Kendriya Vidyalaya Birpur for the award of
the CBSE - AISSCE class XII certificate. I have not plagiarized or
submitted the same work for the award of any other examination. In
case this undertaking is found incorrect, we accept that our
Certificates may be unconditionally withdrawn.

1|Page
COMPUTER SCIENCE 2022-23

CERTIFICATE

THIS IS TO CERTIFY THAT “MANJEET SINGH RANA”, “ARPAN


JHAKRI MAGAR”, “GAURAV MEHTA” STUDENT OF CLASS XII-A IS
SUCCESSFULLY COMPLETED THAT PROJECT TITLED "STUDENT
MANAGEMENT SYSTEM" UNDER THE GUIDANCE OF MR.
RAJESH BISHT (SUBJECT TEACHER) DURING THE ACADEMIC
YEAR 2022-2023 IN PARTIAL FULFILLMENT OF COMPUTER
SCIENCE PRACTICAL EXAMINATION CONDUCTED BY CENTRAL
BOARD OF SECONDARY EDUCATION.

SIGN OF INTERNAL EXAMINER SIGN OF EXTERNAL EXAMINER

SIGN OF PRINCIPAL DATE-

2|Page
COMPUTER SCIENCE 2022-23

ACKNOWLEDGEMENT

IN THE ACCOMPLISHMENT OF THIS PROJECT SUCCESSFULLY, MANY


PEOPLE HAVE BESTOWED UPON US THEIR BLESSINGS AND THE
HEART PLEDGE SUPPORT, THIS TIME I AM UTILIZING TO THANK ALL
THE PEOPLE WHO HAVE BEEN CONCERNED WITH PROJECT.
PRIMARILY WE WOULD THANK GOD FOR BEING ABLE TO COMPLETE
THIS PROJECT SUCCESS. THEN WE WOULD LIKE TO THANK MY
PRINCIPAL AND COMPUTER SCIENCE TEACHER MR. RAJESH BISHT
WHOSE VALUABLE GUIDANCE HAS BEEN ONES THAT HELPED US
PATCH PROJECT AND MAKE IT FULL PROOF SUCCESSS HIS
SUGGESTION AND HIS INSTRUCTION HAS SERVE AS THE MAJOR
CONTRIBUTION TOWARDS THE COMPLETION OF THE PROJECT. THEN
WE WOULD LIKE TO THANK OUR PARENTS AND FRIENDS WHO HAVE
HELPED US WITH THEIR VALUABLE SUGGESTION AND GUIDANCE HAS
BEEN HELPFUL IN VARIOUS.

3|Page
COMPUTER SCIENCE 2022-23

CONTENTS

Undertaking.
Certificate.
Acknowledgement.
Introduction of the project.
System requirements of the project.
Source Code.
Output.
Bibliography.

4|Page
COMPUTER SCIENCE 2022-23

INTRODUCTION
We the students of CLASS XII A of KENDRIYA VIDYALAYA
BIRPUR have been assigned the work of “STUDENT
MANAGEMENT SYSTEM”.

To perform this task the students were divided into the group of
four students named as MANJEET SINGH RANA, ARPAN
JHAKRI MAGAR, GAURAV MEHTA.

MANJEET SINGH RANA, ARPAN JHAKRI MAGAR, GAURAV


MEHTA has been assigned the work of coding and programming.
ARPAN JHAKRI MAGAR and GAURAV MEHTA have been assigned the
work of analysing the overall mistakes and have done the
conclusion work.
We are so glad that this work has been assigned to us, yet we
haven’t done this work before. Mr. Rajesh Bisht our subject
teacher have also helped us a lot to complete this project. We feel
so blessed that we have learnt all this work with the help of our
sir, we are also thankful to our respected principal SMH.
BASANTI KHAMPA for providing us various facilities to
complete this project.

As we are the students of CLASS XII A and we haven’t done this


type of project before, we have performed all that which we have
learnt from our CBSE PROGRAMMING. Hence, we know that
this programming would be further done on a big platform. Since
we have started this programming from SEPTEMBER month, we
believe that this programming would further help us a lot in our
future.
We are also thankful to our groupmates for cooperating with
each other while performing this task we have also polished the
skills of group activity.

5|Page
COMPUTER SCIENCE 2022-23

System Requirements of the Project

Recommended System Requirements

Processors: Intel® Core™ i3 processor 4300M at 2.60 GHz.

Disk space: 2 to 4 GB.

Operating systems: Windows® 10, MACOS, and UBUNTU.

Python Versions: 3.X.X or Higher.

Minimum System Requirements

Processors: Intel Atom® processor or Intel® Core™ i3

processor. Disk space: 1 GB.

Operating systems: Windows 7 or later, MACOS, and

UBUNTU. Python Versions: 2.7.X, 3.6.X.

Prerequisites before installing MySQL Connector Python

You need root or administrator privileges to perform


the installation process.

Python must be installed on your machine.

Note: – MySQL Connector Python requires python to be in the


system’s PATH. Installation fails if it doesn’t find Python.

On Windows, If Python doesn’t exist in the system’s PATH, please


manually add the directory containing python.exe yourself.

6|Page
COMPUTER SCIENCE 2022-23

SOURCE CODE
# A project by
# Manjeet Singh Rana
# of class 12th on
#topic of student managment using mysql
import mysql.connector
mydb = mysql.connector.connect(host ="localhost",user ="root",passwd = “root”)
mycur = mydb.cursor()
mycur.execute("create database if not exists student_db1")
mycur.execute("use student_db1")
abc="Y"
print(" ================================= \n
================================= \n === MANJEET SINGH RANA 12th ==== \n
================================= \n ================================= \n \n")
def while_fn ():
while abc=="Y" or abc=="y":
if menu==1:
userinput()
elif menu==2:
search_fn()
menu_fn()
while abc=="N" or abc=="n":
if menu==1 and abc=="N" or abc=="n":
userinput()
elif menu==2:
search_fn()
menu_fn
def userinput ():
roll=str(input("enter roll no. of the student : "))
name=str(input("enter name of the student : "))
dob=str(input("enter year of birth of the student : "))
att=str(input("enter attendence of the student P/A : "))
creat_tb = "create table if not exists student_tb ( sroll varchar(30) primary key, sname varchar(30),
sdob varchar(30), satt varchar(30))"
mycur.execute(creat_tb)
colum_tb = "insert into student_tb (sroll, sname, sdob, satt) values
('"+roll+"','"+name+"','"+dob+"','"+att+"')"
mycur.execute(colum_tb)
mydb.commit()
mycur.execute("select * from student_tb")
result = mycur.fetchall()
print("|| roll || name || birth y || attendence || ")
for x in result:
print(x)
global abc
abc = input("do you want to continue adding student ? [y/n]: ")

def search_fn ():


menu2=int(input(" ================================= \n [1] search by rollno. \n [2] search by
name \n [3] search by birth year \n [4] search present student \n [5] search absent student \n [6] main
menu \n =================================\n:"))
if menu2==1:
print("==================== \n [1] search by rollno. \n====================")

7|Page
COMPUTER SCIENCE 2022-23

search=str(input("Enter roll no. of student :"))


mycur.execute("select * from student_tb where sroll='"+search+"'")
result = mycur.fetchall()
print("|| roll || name || birth y || attendence ||\n=====================================\
n")
for x in result:
print(x)
elif menu2==2:
print("==================== \n [2] search by name \n====================")
search=str(input("Enter name of student :"))
mycur.execute("select * from student_tb where sname='"+search+"'")
result = mycur.fetchall()
print("\n|| roll || name || birth y || attendence ||\n=====================================\
n")
for x in result:
print(x)
elif menu2==3:
print("==================== \n [3] search by birth year \n====================")
search=str(input("Enter birth year of student :"))
mycur.execute("select * from student_tb where sdob='"+search+"'")
result = mycur.fetchall()
print("|| roll || name || birth y || attendence ||\n=====================================\
n")
for x in result:
print(x)
elif menu2==4:
print("==================== \n [4] search present student \n====================")
mycur.execute("select * from student_tb where satt='P'")
result = mycur.fetchall()
print("\n|| roll || name || birth y || attendence ||\
n=====================================\n")
for x in result:
print(x)
elif menu2==5:
print("==================== \n [5] search absent student \n====================")
mycur.execute("select * from student_tb where satt='A'")
result = mycur.fetchall()
print("\n|| roll || name || birth y || attendence ||\n=====================================\
n")
for x in result:
print(x)
elif menu2==6:
menu_fn ()

def menu_fn ():


global menu
menu=int(input("====================================\n press [1] for entery of new student \n
press [2] for searching student \n====================================\n :"))
while_fn()
print(abc)

menu_fn ()

while_fn

8|Page
COMPUTER SCIENCE 2022-23

OUTPUT

9|Page
COMPUTER SCIENCE 2022-23

10 | P a g e
COMPUTER SCIENCE 2022-23

11 | P a g e
COMPUTER SCIENCE 2022-23

12 | P a g e
COMPUTER SCIENCE 2022-23

REFERENCES
 Python class 12th book
 Python class 11th book Internet
 web pages: https://www.w3schools.com/,
https://www.geeksforgeeks.org/, https://google.com , etc

13 | P a g e

You might also like