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

Computer SCIENCE With PYTHON

This document describes a Python project to create an alumni management system. The system allows users to register alumni details, view details of alumni based on search criteria, edit alumni details, search for alumni by ID, delete alumni records, and schedule events. It imports necessary modules like mysql.connector for database connectivity and pandas for data manipulation. The coding section shows functions to perform the various operations and interact with an alumni database.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
334 views

Computer SCIENCE With PYTHON

This document describes a Python project to create an alumni management system. The system allows users to register alumni details, view details of alumni based on search criteria, edit alumni details, search for alumni by ID, delete alumni records, and schedule events. It imports necessary modules like mysql.connector for database connectivity and pandas for data manipulation. The coding section shows functions to perform the various operations and interact with an alumni database.
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 18

Computer SCIENCE with

PYTHON

project On
alumni management

SUBMITTED BY - Seemant Mohapatra


CLASS - XII (A) Science
AISSCE ROLL NO-
GUIDED BY - Mr. Manash Ranjan Sahoo
PGT (Computer Science)

KENDRIYA VIDYALAYA NO-04


NEELADRI VIHAR
BHUBANESWAR-751021
CERTIFICATE
This is certify that Seemant Mohapatra of class XII Science, has
successfully completed their project on Computer Science
practical for the AISSCE (All India Senior School Certificate
Examination) as prescribed by CBSE in the year 2019-20

Date :

Signature of Subject Signature of Principal


Teacher

____________________ ___________________

Signature of External Examiner

____________________
ACKNOWLEDGEMENT
We thank our computer teacher Mr.Manash Ranjan Sahoo for
guidance and support. I also thank our Principal Mrs. Aneeta
Dash. I would like to thank all of our friends and teachers for
encouraging us during the course of this project. Finally I would
like to thank CBSE for giving us this opportunity to undertake
this project.

Name: Seemant Mohapatra


Board Roll :
Class: XII ‘A’ Science
Session: 2019-20
TABLE OF CONTENTS

 Certificate
 Acknowledgement
 Modules to import
 Requirements
 Coding
 Output
 Conclusion
 Bibliography
INTRODUCTION
The aim of this Alumni Management System project is to build a
system that will be able to manage alumni data of a college and
provide easy access to the same. Alumni of a college generally stay in
touch with their immediate friends but find it hard to stay connected
with other college mates. Contact between alumni can be used to forge
business connections and to gain references or insight in a new
field. New college students will be initially given a student login ID.
Access to the system can help them in building connections to help
them in their projects or for placements.

The system will automatically list all college students as alumni on


their graduation and their account status will be transferred from the
student module to the alumni module. Users will be prompted to
update social network details such as their Face book, LinkedIn and
Twitter handles. Users can also choose to automatically share new
updates in work status from their LinkedIn profile. Users will also be
able to share and promote their business Face book pages or Twitter
handles through the system. This single system will be able to bypass
the requirement of any other Alumni organization. The system can
track user location as given by the user. Once the system notices that
more than 10 alumni are available in the same city it can notify all of
them about the possibility of a meet.

Alumni will also be able to provide public posts on the system about
possible job opportunities or other college related news. Since it is
unlikely that alumni will check the system frequently the system will
be able collate all public posts and create a newsletter that can be
emailed to all alumni. The system will also privacy features. Users can
determine what information they want to share and also whom they
want to share it with. For example users can choose to share their
Facebook profile name and mobile number with alumni who
graduated in the same year as them. They system will also have a chat
feature which will enable alumni to chat without revealing their
mobile number or personal e – mail ID.
MODULES IMPORTED

1. math- for arithmetic Operations

2. mysql.connector- for connecting with mysql

3. pandas- for manipulating numerical tables and time series

4. platform- to access the underlying platform’s data

5. os- to use operating system dependent functionality

REQUIREMENTS
 HARDWARE REQUIRED

 Printer, to print the required documents of the project

 Processor : Intel i5 Processor

 Ram : 2 GB

 Hard disk : 500 GB.

 SOFTWARE REQUIRED

 Operating system : Windows 8/10

 Python 3.7.0 for execution of program and

 Ms word, for presentation of output.


CODE

import os
import platform
import mysql.connector
import pandas as pd
constr=mysql.connector.connect(host="localhost",\
user="root",\
passwd="",\
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: [email protected]: ")
L.append(email)
mob=input("Enter Your Mobile No: ")
L.append(mob)
cur_c=input("Enter City Name You Stay : ")
L.append(cur_c)
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_a
dd,mob_no,curr_city,curr_company,desg,session_from,session_to,bra
nch) 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")
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 : ")
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_add,mob_no,curr_city,curr_company,desg,session_from,session
_to,branch)")
for x in res:
print(x)
def EditAlumni():
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")
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_add,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()
def ScheduleEvent():
E=[]
ename=input("Enter Event Name to Schedule : ")
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"
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)
constr.commit()
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):
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()
OUTPUT SCREENSHOTS
CONCLUSION
We can hereby conclude that:

 The system effectively automated the functions involved in the


processes being handled manually before.

 The cost and benefit analysis shows that the system was quite
successful in saving costs and generate benefits.

 The system is secure and scalable.

 The system design has been done keeping user-friendliness and


efficiency in mind.
FUTURE SCOPE OF THE PROJECT

The proposed system will be on-line so it can be accessed by alumni


anywhere. It will enable quick and easy communication. Each user
will be responsible for the updating their own information. Each user
will also have the option to maintain their privacy. It does not require
the constant attention of a group of students for its maintenance.
Alumni will be able to organize meetings and find out about job
opportunities on themselves using this system.
BIBLIOGRAPHY
 https://www.python.org

 https://www.mysql.com

 https://pythontrends.wordpress.com

 Computer Science with Python by Sumita Arora

 Python Essential Reference by David M. Beazley

 Learning Python by Mark Lutz

You might also like