Harshit 007
Harshit 007
Harshit 007
2 ARMAPUR
KANPUR
Sig. Class-12th A
Roll No. -09
#CONTENT
CERTIFICATE
ACKNOWLEDGEMENT
REQUIREMENT
PROJECT DETAIL
BRIEF INTRODEUCTION OF PYTHON
BRIEF INTRDUCTION OF MySQL
CODING(OR PROGRAM) OF PROJECT
OUTPUT
BIBLIOGRAPHY
Certificate
This is certify that Computer
Science Project Title by ‘SCHOOL
MANAGEMENT’ has been
successfully completed
by“ Harshit Yadav” Of class XII-A
bearing Roll No. 09 under the
guidance of Mr. Ashok Uttam
(Subject Teacher). During
academic session 2023-2024 as per
the guidelines issued by CBSE.
Teacher’s Signature
ACKNOWLEDGEMENT
HARSHIT YADAV
XIIth A
REQUIREMENTS
Hardware
import mysql.connector
cursor.execute("""
CREATE TABLE IF NOT EXISTS staff (
staff_id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
age INT,
position VARCHAR(50),
department VARCHAR(50),
contact_number VARCHAR(15)
)
""")
values = (staff_id,)
cursor.execute(sql, values)
db.commit()
print("Staff member deleted successfully!")
if not students:
print("No students found.")
else:
print("Student ID | Name | Age | Grade | Address |
Contact Number")
print("-----------------------------------------------------------------
-------------")
for student in students:
print(f"{student[0]:<11} | {student[1]:<12} |
{student[2]:<3} | {student[3]:<5} |
{student[4]:<21} | {student[5]:<15}")
if not staff_members:
print("No staff members found.")
else:
print("Staff ID | Name | Age | Position | Department |
Contact
Number")
print("-----------------------------------------------------------------
--------------------------
--")
for staff_member in staff_members:
print(f"{staff_member[0]:<9} |
{staff_member[1]:<12} | {staff_member[2]:<3} |
{staff_member[3]:<21} | {staff_member[4]:<21} |
{staff_member[5]:<15}")
if choice == '1':
name = input("Enter student name: ")
age = int(input("Enter student age: "))
grade = input("Enter student grade: ")
address = input("Enter student address: ")
contact_number = input("Enter student contact
number: ")
add_student(name, age, grade, address, contact_number)
delete_student(student_id)
elif choice == '6':
staff_id = int(input("Enter staff member ID to delete:
"))
delete_staff(staff_id)
else:
print("Invalid choice. Please enter a number between 1
and 9.")
*******************PROGRAM END******************
-------------------------------OUTPUT-------------------------------
https://www.google.com/
Computer Science
Notebook(Classwork Copy)