Professional Documents
Culture Documents
9 Source Code
10 Sample Outputs
11 Conclusion
12 Bibliography
ACKNOWLEDGEMENT
Last but not least , I would like to thank almighty, my parents, brothers, sisters and
friends for their constant encouragement without whom the project could not have been
finished successfully.
PROJECT
ON
STUDENT MANAGEMENT SYSTEM
INTRODUCTION
Student Management System project is written in Python language and SQL is
used for database connection. This is a simple console based system which is very
easy to understand and use. Talking about the system, it contains all the basic
functions which include insert new student details, view student’s details that
already exists, update or we can modify student details also deletion function is
there to delete the student details that no more exist. It is too easy to use; he/she
can check the total student records easily. This project is multifield project, so that
it can be modified for various purposes. The main object of this system is to
provide a secure system.
EXISTING SYSTEM
In the current system we need to keep a number of records related to the student
and want to enter the details of the student and the marks manually. In this system
only the teacher or the school authority views the mark of the student and they
want to enter the details of the student. This is time consuming and has much cost.
PROPOSED SYSTEM
Aim of the this system is used to control and coordinate a student’s data ,
information ,their ,name, admission number ,add new student or delete a student’s
information. One has to use the data management software. Software has been an
ascent in atomization various organizations. Many software products working are
now in markets, which have helped in making the organizations work easier and
efficiently. Data management initially had to maintain a lot of ledgers and a lot of
paper work has to be done but now software product on this organization has made
their work faster and easier. Now only this software has to be loaded on the
computer and work can be done.
This prevents a lot of time and money. The work becomes fully automated and any
information regarding the organization can be obtained by clicking the button.
Moreover, now it’s an age of computers of and automating such an organization
gives the better look.Admin will have the full authority to add features and disable
it as per their requirements.
HARDWARE AND
SOFTWAREREQUIREMENT
HARDWARE REQUIREMENT
Processor : Intel(R) Core(TM)-i3 or (ANY)
SOFTWARE REQUIREMENT
Front End : Python
Features in Python
There are many features in Python, some of which are discussed below –
1. Easy to code:
Python is a high-level programming language. Python is very easy to learn the
language as compared to other languages like C, C#, Javascript, Java, etc. It is very
easy to code in python language and anybody can learn python basics in a few hours
or days. It is also a developer-friendly language.
SQL is an ANSI and ISO standard computer language for creating and manipulating
databases.
SQL allows the user to create, update, delete, and retrieve data from a database. SQL is
very simple and easy to learn.
SQL works with database programs like DB2, Oracle, MS Access, Sybase, MS SQL
Server, etc.
SQL Queries can be used to retrieve large amounts of records from a database quickly
and efficiently.
Example
Following is the example of connecting with MySQL database "TESTDB"
#!/usr/bin/python
importMySQLdb
READ Operation.
fetchone() − It fetches the next row of a query result set. A result set is an object that is
returned when a cursor object is used to query a table.
fetchall() − It fetches all the rows in a result set. If some rows have already been
extracted from the result set, then it retrieves the remaining rows from the result set.
rowcount − This is a read-only attribute and returns the number of rows that were
affected by an execute() method.
Source code
importos
import platform
importmysql.connector
mydb=mysql.connector.connect(host="localhost",user="root",password="ammaamrita")
mycursor=mydb.cursor()
mycursor.execute("use school")
exit='n'
while exit=='n':
os.system('cls')
print('-' * 90)
print('-' * 90)
print('-' * 90)
ch=input('YOUR Choice (I/V/U/D/E):')
ch = ch.upper()
ifch == 'I':
mycursor=mydb.cursor()
choice='y'
while choice=='y':
data = (sno,sname)
mycursor.execute(Qry,data)
if choice=='y':
continue
mydb.commit()
mydb.close()
elifch == 'V':
mydb=mysql.connector.connect(host="localhost", user="root", passwd="ammaamrita", db="school")
mycursor=mydb.cursor()
choice='y'
while choice=='y':
rno=int(input('enter the roll number of student whose record you want to search '))
data = (rno,)
mycursor.execute(Qry,data)
count=0
for(rno,name)in mycursor:
count+=1
print('=========')
print('===========')
if count%2==0:
clrscreen()
print('total records',count,'found')
choice=input('do you with to search more record(y/n)')
if choice=='y':
continue
mydb.commit()
mydb.close()
elifch == 'U':
mycursor=mydb.cursor()
choice='y'
while(choice=='y'):
rno=int(input('enter the roll number of student whose record you want to change '))
data = (name,rno)
mycursor.execute(Qry,data)
if choice=='y':
continue
mydb.commit()
mydb.close()
elifch == 'D':
mycursor=mydb.cursor()
choice='y'
while choice=='y':
rno=int(input('enter the roll number of student whose record you want to delete '))
data = (rno,)
mycursor.execute(Qry,data)
if choice=='y':
continue
mydb.commit()
mydb.close()
elifch == 'E':
print("\t\t-------------------------------------------")
break
else:
if exit=='n':
continue
Sample Outputs
Conclusion
This Student Management System Project in Python is
a way to enhance and broaden our competencies and logic ideas which
is essential in training the Python programming language.
In this Simple Student Management System, the user can also look for a
student’s call so one can recognize whether the student’s record exists in
the gadget or not.This project covers only the basic features required.
BIBLIOGRAPHY:
WEBSITE: https://www.wikipedia.org