0% found this document useful (0 votes)
49 views29 pages

Kalyani Cs Project-129

Uploaded by

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

Kalyani Cs Project-129

Uploaded by

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

1

GMEINER
NN SC
A H
M

OO
R
HE

L
2023-2024

Student Management System


jhzxsgjn
Submitted To : Submitted By :
MR. ANUJ KUMAR SINGH KALYANI PANDEY
Class: XII
Roll no:

CENTRAL BOARD OF SECONDARY EDUCATION

1
2

CERTIFICATE
This is to certify that Student Name CBSE Roll
no……… has successfully completed the Project
work entitled student management system in the
subject Computer Science (083) laid down in the
regulations of CBSE for the purpose of Practical
Examination in Class XII to be held in HERMANN
GMEINER SCHOOL on Date

External examiner signature Internal examiner signature


Name____________ Name____________
Exaxminer no__________ Exaxminer no__________

Principal signature:
____________________

2
3

PREFACE

The main objective of computer science


student is to get as much of practical
knowledge as possible. According to CBSE
norms MYSQL and PYTHON, Programming
languages have been introduced in class 12
syllabus because of being popular and widely
used by majority as they are easy, interesting
and cost effective. Python contains
predefined codes and are case sensitive and
these features lets a student to work on it. As
we all know, having a practical knowledge is
as important as theoretical knowledge.
At last, we all are thankful of having a project.

3
4

ACKNOWLEDGEMENT

I would like to express my special thanks


of gratitude to my computer teacher
”Mr.Anuj Singh ” a well as our principal
Mr. A p gaur who give us the golden
opportunity to do this wonderful project
on the given topic which also help me in
doing a lot of reseach and I came to know
about so many new things, I am really
thankful to them….

“STUDENT Management System” which


also helped me in increasing my
knowledge regarding to Python.
Secondaly, I am thankful to my parents to
get me a moral support and guided me to
complete this project on time.
4
5

TABLE OF CONTENTS:

SR.N DESCRIPTION PAGE NO.


O.
1 PROJECT 6
INTRODUCTION
2 HARDWARE AND 7
SOFTWARE
INTRODUCTION
3 INTRODUCTION 8
ABOUT PYTHON
4 INTRODUCTION 9
ABOUT MYSQL
5 SOURCE CODE 10-16
6 OUTPUT 17-27
7 DESIGN 28
7 BIBLIOGRAPHY 29

5
6

INTRODUCTION OF PROJECT

STUDENT Management System is


complete solution for managing a
school, in other words, an enhanced
tool that assists in organizing every
essential details regarding a particular
student. This STUDENT Management
System keeps every record and
reduces paper work. These records are
stored in database with security.

6
7

Requirements:

I.OPERATING SYSTEM: WINDOWS 7 AND ABOVE

II. RAM : 4GB+

III. Hard disk : HDD/SSD 256GB ABOVE

IV. MONITOR

V. Key board and mouse

VI. ELECTRICITY SOFTWARE

REQUIREMENTS:

• Windows OS
• Python
• Mysql

7
8

INTRODUCTION TO PYTHON

Python is a widely used general-


purpose, high level programming
language. It was created by “Guido van
Rossum” in 1991 and further
developed by the “Python software
foundation” .It was designed with an
emphasis on code readability, and it’s
syntax allows programmers to express
their concepts in fewer lines of code.
This is good for both beginners and
expert more importantly is fun to
program with.

8
9

INTRODUCTION TO MYSQL

MySQL is an open-source relational database


management system (RDBMS). It is the most
popular database system used with PHP. MySQL
is developed, distributed, and supported by
Oracle Corporation. The data in a MySQL
database are stored in the table which consists of
columns and rows. A relational database
organizes data into one or more data tables in
which data types may be related to each other
and these relations help structure the data. It is
open source under the terms of the GNU General
Public License, and is also available under a
variety of proprietary licenses. MySQL was
owned and sponsored by the Swedish company
“MySQL AB”, which was bought by “Sun
Microsystems”

9
10

SOURCE
CODE..

10
11

import mysql.connector

# Connect to MySQL
connection = mysql.connector.connect(
host="local host",
user="root",
password="sql123",
database="kalyani"
)

# Create a cursor object to interact with the


database
cursor = connection.cursor()

# ... (Code for table creation and function


definitions)

def main_menu():

11
12

print("\nStudent Management System Menu:")


print("1. Add Student")
print("2. Display Students")
print("3. Update Student")
print("4. Delete Student")
print("5. Students by Grade")
print("6. Average Age of Students")
print("7. Total Number of Students")
print("8. Oldest Student")
print("9. Drop Students Table (CAUTION)")
print("0. Exit")

def main():
while True:
main_menu()
choice = input("Enter your choice (0-9): ")

if choice == "1":
12
13

name = input("Enter student name: ")


age = int(input("Enter student age: "))
grade = input("Enter student grade: ")
add_student(name, age, grade)

elif choice == "2":


print("\nAll Students:")
display_students()

elif choice == "3":


student_id = int(input("Enter student ID to
update: "))
new_name = input("Enter new name: ")
new_age = int(input("Enter new age: "))
new_grade = input("Enter new grade: ")
update_student(student_id, new_name,
new_age, new_grade)
print("Student updated successfully.")

13
14

elif choice == "4":


student_id = int(input("Enter student ID to
delete: "))
delete_student(student_id)
print("Student deleted successfully.")

elif choice == "5":


grade = input("Enter grade to filter
students: ")
students = get_students_by_grade(grade)
print(f"\nStudents in {grade} grade:")
if not students:
print("No students found.")
else:
for student in students:
print(student)

14
15

elif choice == "6":


print("\nAverage Age of Students:",
get_average_age())

elif choice == "7":


print("Total Number of Students:",
get_student_count())

elif choice == "8":


oldest_student = get_oldest_student()
print("\nOldest Student:")
if oldest_student:
print(oldest_student)
else:
print("No students found.")

elif choice == "9":


confirmation = input("Are you sure? This
will drop the 'students' table. (y/n): ")
15
16

if confirmation.lower() == 'y':
drop_students_table()
print("Students table dropped.")

elif choice == "0":


print("Exiting Student Management
System.")
break

else:
print("Invalid choice. Please enter a
number between 0 and 9.")

if __name__ == "__main__":
main()
# Close the cursor and connection when done
cursor.close()
connection.close()

16
17

OUTPUT:

17
18

TO ADD STUDENT:

18
19

TO DISPLAY STUDENTS

19
20

TO UPDATE STUDENT

20
21

TO DELETE STUDENT

21
22

TO FILTER STUDENT ACCORDING TO GRADE

22
23

AVERAGE AGE OF STUDENTS

23
24

TOTAL NUMBER OF STUDENTS

24
25

OLDEST STUDENT

25
26

DROP STUDENT TABLE

26
27

TO EXIT…..

27
28

Design:

28
29

BIBLIOGRAPHY
For the completion of this project I
have taken help from the following
book/sites:

1. Sumita Arora class XI


2. Sumita Arora class XII

29

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy