COMPUTER SCIENCE PROJECT CLASS 12
COMPUTER SCIENCE PROJECT CLASS 12
2024-25
A
“
PROJECT REPORT ”
ON
STUDENT MANAGEMENT SYSTEM
Last but not the least I would like to thank my classmates who
have helped me a lot.
INDEX
➢ Certificate
➢ Acknowledgement
➢ Introdcution
➢ Hardware And Software
➢ Software Development Lifecycle
➢ Source Code
➢ Output
➢ Database Connector Output
➢ Bibliography
INTRODUCTION
Student management systems make faculty jobs more
accessible by giving them an easy place to find and sort
information. This system allows teachers and student
managers to follow with their student engagement.
✓ Processor
✓ Keyboard
✓ Python IDLE
✓ MYSQL
Software Development Lifecycle
SOURCE CODE
import mysql.connector
def display_menu():
print("6. Exit")
def connect_to_database():
try:
connection = mysql.connector.connect(
host="localhost",
user="root",
password="root",
database="siddhesh"
return connection
def create_table(cursor):
table_query = """
name VARCHAR(100),
course VARCHAR(50),
fees FLOAT,
dob DATE
"""
cursor.execute(table_query)
insert_query = """
"""
cursor.execute(insert_query, values)
connection.commit()
update_query = """
UPDATE siddhesh
WHERE admno = %s
"""
cursor.execute(update_query, values)
connection.commit()
if cursor.rowcount > 0:
else:
delete_query = """
DELETE FROM siddhesh
WHERE admno = %s
"""
cursor.execute(delete_query, (admno,))
connection.commit()
if cursor.rowcount > 0:
else:
def search_student(cursor):
search_query = """
WHERE admno = %s
"""
cursor.execute(search_query, (admno,))
result = cursor.fetchone()
if result:
print("Name:", result[1])
print("Course:", result[2])
print("Fees:", result[3])
print("Date of Birth:", result[4])
else:
def display_students(cursor):
select_query = """
"""
cursor.execute(select_query)
result = cursor.fetchall()
if result:
print("Name:", row[1])
print("Course:", row[2])
print("Fees:", row[3])
print("--------------")
else:
def main():
connection = connect_to_database()
if not connection:
return
cursor = connection.cursor()
create_table(cursor)
while True:
display_menu()
if choice == 1:
add_student(connection, cursor)
elif choice == 2:
update_student(connection, cursor)
elif choice == 3:
delete_student(connection, cursor)
elif choice == 4:
search_student(cursor)
elif choice == 5:
display_students(cursor)
elif choice == 6:
break
else:
connection.close()
if __name__ == "__main__":
main()
OUTPUT
DATABASE CONNECTER OUTPUT
BIBLIOGRAPHY
Computer Science with Sumita Arora
Computer Science with Preeti Arora
www.wikipedia.org
Under the guidance of Mrs. Kajal Kashyap
PGT-Computer Science, KV KARWAR