Cs. Investigatory Project
Cs. Investigatory Project
PRINCIPLE
ACKNOWLEDGMENT
It is with pleasure that I acknowledge my sincere
gratitude to our teacher, MR. DEEPAK
TRIPATHI who taught and undertook the
responsibility of teaching the subject computer
science. I have been greatly benefited from his
classes. I am especially indebted to our Principal
MS. RADHA GUPTA who has always been a
source of encouragement and support and
without whose inspiration this project would not
have been a successful I would like to place on
record heartfelt thanks to him. Finally, I would like
to express my sincere appreciation for all the other
students for my batch their friendship & the fine
time that we all shared together.
Introduction
The Student Management System is designed to
streamline and automate the management of
student data within an educational institution. The
system allows for easy and efficient data storage,
retrieval, and modification using Python and MySQL
connectivity. By replacing manual record-keeping
systems, this software improves data accuracy,
accessibility, and overall efficiency in managing
student-related information.
Objectives of the Project
The primary objectives of this Student Management System
are:
1. To design a system for securely storing and managing
student information such as name, roll number, class,
marks, and attendance.
2. To enable the easy addition, updating, deletion, and
retrieval of student records.
3. To ensure that data manipulation can be performed
efficiently using a Python-MySQL connected system.
4. To reduce manual paperwork and improve the speed
and accuracy of data handling.
Proposed System
The proposed system will involve:
• A MySQL database that stores the student
information.
• A Python-based interface that allows users
to interact with the database.
• Basic CRUD (Create, Read, Update, Delete)
operations for managing student data.
• A menu-driven interface for user interaction.
The system is simple, user-friendly, and
scalable. It uses Python's mysql-connector
library for database connectivity and ensures
efficient data storage and retrieval
Flow Chart
The flow chart below explains the basic operation of the Student Management
System:
sql
+---------------------+
| Start Program |
+---------------------+
|
v
+---------------------+
| Display Menu |
+---------------------+
|
v
+-----------------------------+
| User Selects an Option |
+-----------------------------+
| | | |
v v v v
+----------+ +---------+ +---------+ +----------+
| Add | | View | | Update | | Delete |
| Student | | Students| | Marks | | Student |
+----------+ +---------+ +---------+ +----------+
| | | |
v v v v
+-------------------------------+
| Execute Selected Operation |
+-------------------------------+
|
v
+---------------------+
| End Program |
+---------------------+
Source Code
MySQL Table Setup:
Before running the Python code, create the necessary
database and table in MySQL:
Source Code
MySQL Table Setup:
Before running the Python code, create the necessary
database and table in MySQL:
sql
CREATE DATABASE student_management;
USE student_management;
# Connect to MySQL
conn = mysql.connector.connect(
host="localhost",
user="root", # replace with your MySQL username
password="yourpassword", # replace with your MySQL password
database="student_management"
)
cursor = conn.cursor()
print(table)
print()
# Menu-driven interface
def menu():
while True:
print("----- Student Management System -----")
print("1. Add Student")
print("2. View All Students")
print("3. Update Student Marks")
print("4. Delete Student")
print("5. Exit")
choice = input("Enter your choice: ")
if choice == '1':
add_student()
elif choice == '2':
display_students()
elif choice == '3':
update_student()
elif choice == '4':
delete_student()
elif choice == '5':
break
else:
print("Invalid choice, please try again!\n")
Update Marks:
Enter roll number of student to update: 101
Enter new marks: 90
Marks updated successfully!
Delete a Student:
Enter roll number of student to delete: 101
Student deleted successfully!
Hardware and Software
Requirements
Hardware Requirements:
¥ Processor: Intel i3 or higher
¥ RAM: 4 GB or more
¥ Hard Disk Space: 500 MB for project files
¥ Monitor: Standard display
Software Requirements:
Software Requirements:
¥ Operating System: Windows, Linux, or macOS
¥ Python Version: 3.6 or higher
¥ MySQL Version: 5.7 or higher
¥ Python Libraries:
☺ mysql-connector-python for MySQL
connectivity
NOT THIS!
Bibliography
The following resources were used in the
development of this project:
€ Python Official Documentation-- https://docs.python.org/3/
€ MySQL Documentation-- https://dev.mysql.com/d/oc
€T utorials on Python-MySQL connectivity from various online sources
like StackOverflow, GeeksforGeeks, and W3Schools.
THANK
YOU!!