0% found this document useful (0 votes)
5 views3 pages

Student Result Project Plan

The document outlines a Class XII Computer Science practical project by the group 'CodeCrafters', focusing on a Python application titled 'Student Result Database System' that integrates with MySQL. The project aims to manage student academic records through CRUD operations, featuring functionalities such as adding, viewing, searching, updating, and deleting student entries. Technologies used include Python and MySQL, with a sample code structure provided for database connectivity and operations.

Uploaded by

ds2182178
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)
5 views3 pages

Student Result Project Plan

The document outlines a Class XII Computer Science practical project by the group 'CodeCrafters', focusing on a Python application titled 'Student Result Database System' that integrates with MySQL. The project aims to manage student academic records through CRUD operations, featuring functionalities such as adding, viewing, searching, updating, and deleting student entries. Technologies used include Python and MySQL, with a sample code structure provided for database connectivity and operations.

Uploaded by

ds2182178
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/ 3

Class XII Computer Science Practical Project

1. Group Details

Group Name: CodeCrafters

Group Members:

- Priya Sharma

- Rahul Mehta

- Anika Verma

2. Project Overview

We have selected a Python project that demonstrates the integration of Python with MySQL using the

`mysql.connector` module.

Our project is titled **Student Result Database System** and is designed to manage student academic

records.

3. Project Description

Project Title: Student Result Database System

Objective:

To develop a console-based application in Python that uses SQL database connectivity to perform CRUD

operations on student records.

Key Features:

- Add new student results to the database

- View all records

- Search students by roll number or name


Class XII Computer Science Practical Project

- Update student marks

- Delete student entries

Technologies Used:

- Python

- MySQL

- Python MySQL Connector (mysql.connector)

Modules Used:

- mysql.connector

4. Code Structure

Sample Code Outline:

1. Connect to MySQL database

2. Create database and table (if not exists)

3. Define functions for:

- add_student()

- view_students()

- search_student()

- update_student()

- delete_student()

4. Create a menu-driven interface


Class XII Computer Science Practical Project

5. Sample Code Snippet

import mysql.connector

def connect_db():

return mysql.connector.connect(host="localhost", user="root", password="yourpassword",

database="school")

def add_student():

con = connect_db()

cursor = con.cursor()

name = input("Enter name: ")

roll = int(input("Enter roll number: "))

marks = float(input("Enter marks: "))

cursor.execute("INSERT INTO students (name, roll, marks) VALUES (%s, %s, %s)", (name, roll, marks))

con.commit()

print("Student added.")

con.close()

# Similarly, you would define view_student, update_student, delete_student functions.

You might also like