Professional Documents
Culture Documents
Investigatory project on
STUDENT DETAILS & EXAM RESULT
CERTIFICATE
Internal Examiner
Principal
ACKNOWLEDGEMENT
teachers, Pramati Hillview Academy for her encouragement and for all the
facilities that they have provided for the completion of this project work. I take
I am also thankful to our Principal who has given all support to this project.
Signature of candidate
INDEX
Brief Overview of Project
Need of Computerization
Advantages of Project
Limitations of Project
Output Screening
Bibliography
BRIEF OVERVIEW
Student Details and Exam Result is developed using python. While using
this Student Details and Exam Result we can easily store student details and
marks scored in different subjects.
All you have to do is to just fill the required data like Rollno,name, …
when prompted by the computer along with different subject marks. The
program will display complete student details and his marks in different
subjects along with examination and department.
Data file handling: has been effectively used in the program. The database is a
collection of interrelated data to serve multiple applications. That is database
programs create files of information. So we see that files are worked with most,
inside the program.
Relational model
Hierarchical model
Network model
RELATIONAL MODEL: It’s based on the concept on relation. Relation is the table
that consists of rows and columns. The rows of the table are called tuple and the
columns of the table are called attribute. Numbers of rows in the table is called as
cardinality. Number of columns in the table is called as degree.
Sequential file
Serial file
Random (direct access) file BASED ON STORAGE:-
Text file
Binary File
Need of computerization
Student details and Result management is a python based project and we have
developed Student details and result management system using mysql and mysql
connector. It is easy to operate and understand by users. The entries of data is
done in a short period of time and it’s not time consuming. It ensures accurate
records and minimizes the inevitable and costly errors with manual data entry.
Merits
It generates the report on the number of students taken examination.
It deals with monitoring the information provided by the administrator.
It increases the efficiency of managing student data.
It has higher efficiency of editing, adding and updating of records.
Provides the searching facilities on various factors
Demerits
Excel export has not been developed for student database.
The transactions are executed in offline mode only.
Online transactions of student details or other data modifications are not possible.
Offline reports cannot be generated
mysql.connector
import sys
mydb = mysql.connector.connect(
host="localhost",
user="root",
password="Mohan@1972",
database="mydatabase"
conn = mydb.cursor()
conn.execute("SHOW TABLES")
for x in conn:
print(x)
myresult = conn.fetchall()
for x in myresult:
print(x)
myresult = conn.fetchall()
for x in myresult:
print(x)
#function to insert record
def insert_data():
ch="y"
while(ch=="y" or ch=="Y"):
i=0
conn.execute(sql, (stu_roll_no,))
a=conn.fetchall()
for row in a:
if(stu_roll_no == row[0]):
if sel=='1':
update_data()
i=1
ch="n"
elif sel=='2':
ch="y"
i=1
else:
admin()
ch="n"
i=1
else:
break
if i!=1:
while(len(mobile)!=10):
stu_mobile_no=int(mobile)
while(stu_age<=0 or stu_age>=30):
stu_dept.upper()
mydb.commit()
def update_data():
ch="y"
u=0
conn.execute(sql, (rn,))
a=conn.fetchall()
for row in a:
if(rn == row[0]):
while(ch=="y" or ch=="Y"):
u=1
if (choice == 1):
elif(choice==2):
elif(choice == 3):
while(len(mn)!=10):
up_mn=int(mobile)
elif(choice == 4):
while(up_age<=0 or up_age>30):
elif(choice == 5):
elif(choice == 6):
elif(choice == 7):
elif(choice == 8):
elif(choice == 9):
elif(choice == 10):
elif(choice == 11):
else:
ch="y"
u+=1
mydb.commit()
if u==1:
if u==0:
if sel==1:
insert_data()
else:
admin()
#function to delete record
def delete_data():
ch="y"
while(ch=="y" or ch=="Y"):
d=0
conn.execute(q0, (rn,))
a=conn.fetchall()
for row in a:
if(rn == row[0]):
conn.execute(q3, (rn,))
conn.execute(q4, (rn,))
mydb.commit()
d=1
if d==0:
admin()
#function to see records in user mode (it will not allow to edit)
def user():
ch="y"
v=0
conn.execute(q1, (rn,))
a=conn.fetchall()
for row in a:
if(rn == row[0]):
v=1
else:
break
conn.execute(q2, (rn,))
b=conn.fetchall()
for row1 in b:
if(rn==row1[0]):
else:
break
if v!=2:
if sel==1:
ch="y"
else:
return
else:
def view():
conn.execute(q1)
a=conn.fetchall()
print("\n........STUDENT TABLE........")
for row in a:
conn.execute(q2)
b=conn.fetchall()
print("\n........RESULT TABLE........")
for row1 in b:
def login():
if(username=="ANKITH" or username=="ankith"):
if(password=="password@123"):
print("\nLOGIN SUCCESSFUL")
admin()
else:
print("\nINVALID CREDENTIALS")
login()
else:
print("\nINVALID CREDENTIALS")
login()
#Administrator menu
def admin():
ch="y"
while(ch=="y" or ch=="Y"):
print("5. EXIT")
if (choice==1):
insert_data()
update_data()
elif (choice==3):
delete_data()
elif(choice==4):
view()
elif(choice==5):
sys.exit()
else:
admin()
#main program
ch="y"
while(ch=="y" or ch=="Y"):
print("3. EXIT")
if(choice == 1):
login()
ch="n"
elif(choice == 2):
user()
ch="n"
elif(choice == 3):
sys.exit(0)
else:
print("\nINVALID CHOICE")
sys.exit()
Future enhancements
1. The process of gathering information, diagnosing the problems, then
interpreting facts is known as System analysis. It also includes
recommending system improvements needed, based on the same data.
2. The system is observed as a whole; the inputs need to be identified firstly
before turning them and then the system is subjected to study as a whole to
identify the problem areas.