0% found this document useful (0 votes)
12 views

Alumni Management

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

Alumni Management

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

BNP T/S

CLASS-XII FINAL YEAR PROJECT-REPORT


(065)
SESSION (2020-2021)

Affiliated to CBSE up to +2 level: Affiliation No:430092


Managed by: DAV College Managing Committee
BNP T/S, Garhwa Jharkhand
Email: davbnpts@gmail.com

PROJECT WORK

1
ON
ALUMNI MANAGEMENT

SUBMITTED BY
NAME- MEENAL SINGH
CLASS- XII B
ROLL NO.-22697834
UNDER GUIDANCE- Mr. Anup Kumar Singh

2
DECLARATION

I MEENAL SINGH student of class XII


Roll no.- 22697834 here by that the
presented project work on ALUMNI
MANAGEMENT is an original copy. This project
work had not been submitted earlier to any other
board or to the same board for fulfillment of
course of study. It has been done by me with
guide of Mr. Anup Kumar Singh .

Signature of student:………….
Date:………….

3
ACKNOWLEDGEMENT

This is to acknowledge the co-operation of all the individuals


who have inspired, mentored, directed and seen the project
through to its completion.

I am especially grateful to Mr. Anup Kumar Singh my


project guide BNP T/S for allotting me work that entailed
responsibility and for his guidance, help and constant
encouragement throughout this project.

I express my gratitude to my friends and my parents for


their encouragement and support in our endeavor.

Name:-Meenal Singh
Enrollment:-………………..

4
INDEX
Topic Page no.

06
TOOLS AND PLATFORM USED

My SQL Database 07

TABLE STRUCTURE 08

Python 19

10-22
INPUT(CODING)

23-28
PYTHON (OUTPUT)

LIMITATIONS 29

30
BIBLIOGRAPHY

5
TOOLS AND PLATFORM USED
SOFTWARE
Operating system: WINDOWS 10(64-bit)
Front END : PYTHON 3.7
Back END :My SQL Server 8.0 or Higher

HARDWARE
Processor : AMD A8

RAM : Min 256mb

6
My SQL Database
MySQL is a fast, easy-to-use RDBMS being used for many small and big
businesses. MySQL is developed, marketed and supported by MySQL AB,
which is a Swedish company. MySQL is becoming so popular because of
many good reasons –

 MySQL is released under an open-source license. So you have


nothing to pay to use it.
 MySQL is a very powerful program in its own right. It handles a large
subset of the functionality of the most expensive and powerful
database packages.
 MySQL uses a standard form of the well-known SQL data language.
 MySQL works on many operating systems and with many languages
including Python, PHP, PERL, C, C++, JAVA, etc.
 MySQL works very quickly and works well even with large data sets.
 MySQL is very friendly to PHP, the most appreciated language for
web development.
 MySQL supports large databases, up to 50 million rows or more in a
table. The default file size limit for a table is 4GB, but you can
increase this (if your operating system can handle it) to a theoretical
limit of 8 million terabytes (TB).
 MySQL is customizable. The open-source GPL license allows
programmers to modify the MySQL software to fit their own specific
environments.

In this project MySQL server and Python connector is used. MySQL server
is used to store the data and MySQL-Python connector is used to connect
the program of Python to MySQL server client.

TABLE STRUCTURE

7
8
Python
Python is a popular programming language. It was created by
Guido van Rossum, and released in 1991.

It is used for:

 web development (server-side),


 software development,
 mathematics,
 system scripting.

Modules or Package installed for using


this Project
1. mysqlclient: To install this run command (pip
install mysqlclient)

Description: This package contains the MySQLdb


module. It is written in C, and is one of the most
commonly used Python packages for MySQL.

2. pymysql: to install this run command (pip install


pymysql)

Description: This package contains the pymysql


module. It is written entirely in Python.

3. python connector: to install this run command (pip


install mysql-connector-python)

Description: This package contains the


mysql.connector module. It is written entirely in
Python.

9
CODING

 For mysql connection (to be run once only)

import mysql.connector as sql

conn= sql.connect(host='localhost', user = 'root', password

='root')

c1=conn.cursor()

c1.execute("create database aldb")

10
c1.execute("use aldb")

c1.execute("create table alureg(alu_id varchar(10), first_name

varchar(30), last_name varchar(30), dob date, gender

varchar(10), add_corr varchar(50), add_offc varchar(50),

email_add varchar(50), mob_no varchar(10), curr_city

varchar(30), curr_company varchar(30), desg varchar(20),

session_from year(4), session_to year(4), branch varchar(3))")

c1.execute("create table event(event_name varchar (100),

event_date date, venue varchar (30), status varchar(20))")

conn.commit()

 Main Python program

import os
import platform
import mysql.connector
import pandas as pd

11
constr=mysql.connector.connect(host="localhost",user="root",passwd="root
",database="aldb")
print(constr)
mycursor=constr.cursor()
def RegisterAlumni():
L=[]
fname=input("Enter Your First Name : ")
L.append(fname)
lname=input("Enter Your Last Name :")
L.append(lname)
dob=input("Enter Dob in YYYY-MM-DD Format : ")
L.append(dob)
gender=input("Enter Your Gender : ")
L.append(gender)
add_c=input("Enter your correspondence address : ")
L.append(add_c)
add_of=input("Enter your official address : ")
L.append(add_of)
email=input("Enter your email address Ex: aa@gmail.com: ")
L.append(email)
mob=input("Enter Your Mobile No: ")
L.append(mob)
cur_c=input("Enter City Name You Stay : ")
L.append(cur_c)

12
com=input("Enter Company/Organization You are Working : ")
L.append(com)
desg=input("Enter Your Desgination in Company/Organization : ")
L.append(desg)
start_y=input("Enter Your Session Start Year in College: ")
L.append(start_y)
start_e=input("Enter Your Session End Year in College : ")
L.append(start_e)
branch=input("Enter Your Branch in College : ")
L.append(branch)
alid="al"+fname[0:2]+lname[0:2]+mob[0:4]
L.insert(0,alid)
alumni=(L)
sql="insert into alureg
(alu_id,first_name,last_name,dob,gender,add_corr,add_offc,email_add,mo
b_no,curr_city,curr_company,desg,session_from,session_to,branch)
values (%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s)"
mycursor.execute(sql,alumni)
constr.commit()
print("You Have Been Succesfully Registered: This is You AlumniID ,Use
This For Further Correspondence")
print(alid)
def ViewAlumniDetails():
print("Select the search criteria to View Details : ")
print("1. Fname")

13
print("2. Lname")
print("3. Company")
print("4. Stream")
print("5. City")
print("6. Session Start")
print("7. To View All Records")
ch=int(input("Enter the choice : "))
if ch==1 :
s=input("Enter First Name to Be Searched For")
rl=(s,)
sql="select * from alureg where first_name like %s"
mycursor.execute(sql,rl)
elif ch==2:
s=input("Enter Last Name to Be Searched For")
rl=(s,)
sql="select * from alureg where last_name like %s"
mycursor.execute(sql,rl)
elif ch==3:
s=input("Enter Company Name to Be Searched For")
rl=(s,)
sql="select * from alureg where curr_company=%s"
mycursor.execute(sql,rl)
elif ch==4:
s=input("Enter Stream : ")

14
rl=(s,)
sql="select * from alureg where branch=%s"
mycursor.execute(sql,rl)
elif ch==5:
s=input("Enter City : ")
rl=(s,)
sql="select * from alureg where curr_city=%s"
mycursor.execute(sql,rl)
elif ch==6:
s=input("Enter Session Start Year ")
rl=(s,)
sql="select * from alureg where session_from=%s"
mycursor.execute(sql,rl)
elif ch==7:
sql="select * from alureg"
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Alumni Details are as Follows")

print("(alu_id,first_name,last_name,dob,gender,add_corr,add_offc,email_a
dd,mob_no,curr_city,curr_company,desg,session_from,session_to,branch)"
)
for x in res:
print(x)
def EditAlumni():

15
alid=input("Enter Alumni ID to be edited : ")
sql="select * from alureg where alu_id=%s"
ed=(alid,)
mycursor.execute(sql,ed)
res=mycursor.fetchall()
for x in res:
print(x)
print("")
fld=input("Enter the field which you want to edit : ")
val=input("Enter the value you want to set : ")
sql="Update alureg set " + fld +"='" + val + "' where alu_id='" + alid + "'"
sq=sql
mycursor.execute(sql)
print("Editing Done : ")
print("After correction the record is : ")
sql="select * from alureg where alu_id=%s"
ed=(alid,)
mycursor.execute(sql,ed)
res=mycursor.fetchall()
for x in res:
print(x)
constr.commit()
def SearchAlumni():
print("Enter The Alumni ID")

16
aluid=input("Enter the Alumni ID for the alumni to be viewed : ")
sql="select * from alureg where alu_id=%s"
rl=(aluid,)
mycursor.execute(sql,rl)
res=mycursor.fetchall()
if res==None:
print("Record not Found . . . ")
return
print("The details of the students are : " )

print("(alu_id,first_name,last_name,dob,gender,add_corr,add_offc,email_a
dd,mob_no,curr_city,curr_company,desg,session_from,session_to,branch)"
)
for x in res:
print(x)
def DeleteAlumni():
aluid=input("Enter the Alumni ID for the alumni to be deleted : ")
sql="Delete from alureg where alu_id=%s"
rl=(aluid,)
mycursor.execute(sql,rl)
constr.commit()
print("Alumni deleted successfully")
def ScheduleEvent():
E=[]
ename=input("Enter Event Name to Schedule : ")

17
E.append(ename)
edate=input("Enter Event Date in YYYY-MM-DD :")
E.append(edate)
evenue=input("Enter Venue of Event :")
E.append(evenue)
estat=input("Enter Event Status as Completed Or Not Completed :")
E.append(estat)
event=(E)
sql="insert into event (event_name,event_date,venue,status) values
(%s,%s,%s,%s)"
mycursor.execute(sql,event)
constr.commit()
print("You Have Succesfully Added A Event")
def ViewEventDetails():
print("Select the search criteria to View Event Details : ")
print("1. Event Name")
print("2. Venue")
print("3. Status")
print("4. To View All Records")
ch=int(input("Enter the choice : "))
if ch==1 :
s=input("Enter Event Name to Be Searched For")
rl=(s,)
sql="select * from event where event_name like %s"

18
mycursor.execute(sql,rl)
elif ch==2:
s=input("Enter Venue Name to Be Searched For")
rl=(s,)
sql="select * from event where event like %s"
mycursor.execute(sql,rl)
elif ch==3:
s=input("Enter Status to Be Searched For")
rl=(s,)
sql="select * from event where status=%s"
mycursor.execute(sql,rl)
elif ch==4:
sql="select * from event"
mycursor.execute(sql)
res=mycursor.fetchall()
print("The Event Details are as Follows")
print("(Event_Name,Event_Date,Venue,Status)")
for x in res:
print(x)
def DeleteEvent():
ename=input("Enter the Event Name to be deleted : ")
sql="Delete from event where event_name=%s"
rl=(ename,)
mycursor.execute(sql,rl)

19
constr.commit()
print("Event deleted successfully")
def MainMenu():
print("Enter 1 : To Register Alumni")
print("Enter 2 : To View Alumni Details ")
print("Enter 3 : To Edit Alumni Details ")
print("Enter 4 : To Search Alumni ")
print("Enter 5 : To delete Alumni")
print("Enter 6 : To Add a Event")
print("Enter 7 : To Search a Event")
print("Enter 8 : To Delete a Event")
try:
userInput = int(input("Please Select An Above Option: "))
except ValueError:
exit("You Had Enetered Wrong Choice")
else:
print("\n")
if(userInput == 1):
RegisterAlumni()
elif (userInput==2):
ViewAlumniDetails()
elif (userInput==3):
EditAlumni()
elif (userInput==4):

20
SearchAlumni()
elif (userInput==5):
DeleteAlumni()
elif (userInput==6):
ScheduleEvent()
elif (userInput==7):
ViewEventDetails()
elif (userInput==8):
DeleteEvent()
else:
print("Enter correct choice. . . ")
MainMenu()
def AskChoiceAgain():
AksChcRun = input("\nwant To Run Again Y/n: ")
while(AksChcRun.lower() == 'y'):
if(platform.system() == "Windows"):
print(os.system('cls'))
else:
print(os.system('clear'))
MainMenu()
AksChcRun = input("\nwant To Run Again Y/n: ")
AskChoiceAgain()

21
22
23
MENU

TO REGISTER ALUMNI

24
TO VIEW DETAILS

25
TO EDIT ALUMNI DETAILS

26
TO SEARCH ALUMNI

TO DELETE ALUMNI

27
TO ADD A EVENT

TO SEARCH A EVENT

28
TO DELETE A EVENT

29
LIMITATIONS

1. FORMAT OF DATE IS NOT REGULAR AS DD-MM-


YYYY.
2. IT WORKS ONLY OFFLINE.
3. YOU CAN’T CHANGE THE ALUMNI ID.
4. THERE IS NO OPTION TO UPLOAD PIC OF
ALUMNI.
5. DELETED RECORD WILL BE DELETED
PERMANENTLY.

30
BIBLIOGRAPHY

HELP TAKEN TO COMPLETE THIS PROJECT IS FROM:


 GUIDE MR. ANUP KUMAR SINGH
 MY FRIEND VIKAS
 pythonworld.in
 Google.co.in
 W3schools.com

31

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