Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 15

JAWAHAR NAVODAYA VIDYALAYA

EAST GODAVARI-1(DT.)

CERTIFICATE
THIS IS TO CERTIFY THAT THE PROJECT WORK
“STUDENT RECORD MANAGEMENT SYSTEM”

Is the bonafide work by name: SAI GOVINDA KRISHNA THOTA


Ht no: 20606443
In The Department Of Computer Science, Jawahar Navodaya
Vidyalaya, Peddapuram, East Godavari_1 Submitted In Partial
Fulfillment Of The Requirement Of As Per The Circulum Of The Xii
Level During The Year 2021-2022

Internal examiner External Examiner

Principal
INVESTIGATORY PROJECT ON

TOPIC: STUDENT RECORD MANAGEMENT


SYSTEM
NAME: SAI GOVINDA KRISHNA THOTA
HT NO: 20606443
CLASS: XIITH SCIENCE

PROJECT SUBMITTED TO DEPARTMENT OF


COMPUTER SCIENCE
JAWAHAR NAVODAYA VIDYALAYA ,E.G

2021-22
ACKNOWLEDGEMENT
I acknowledge my sincere gratitude to our teacher,
GEETHANJALI.B.K (PGT IT) who taught and
undertook the responsibility of teaching the subject
computer science. I have been greatly benefited from
her classes. I am especially indebted to our Principal
K.RAMIREDDY sir who has always been a source of
encouragement and support and without whose
inspiration this project would not have been a
successful I would like to place on record heartfelt
thanks to him. Finally, I would like to express my
sincere appreciation for all the other students for my
batch their friendship & the fine times that we all shared
together.

NAME: JOHN AKHIL RAYAPATI


CLASS: XIITH SCIENCE
HT. NO.: 20606430

NAME: RAHUL MEKALA


CLASS: XIITH SCIENCE
HT. NO.: 20606437
INDEX
S NO. DESCRIPTION PAGE NO
1. ACKNOWLEDGEMENT

2. INTRODUCTION

3. OBJECTIVES OF THE PROJECT

4. SOURCE-CODE
5. OUTPUT (SCREENSHOTS)
PROJECT ON STUDENT RECORD MANAGEMENT
SYSTEM

INTRODUCTION
The student record management system is very
useful in schools for keeping the record of students
as well as the record of marks and information
about students.

OBJECTIVES OF THE PROJECT


1.To eliminate the paper-work in SCHOOL
OFFICE
2. To record every transaction in computerized
system so that the problem such as record file
missing won’t happen.
3. To design a user-friendly graphical user
interface which suits the users.
4. To complete the system according to project
schedule
5.To produce technical report that documents the
phases, tasks and deliverables in the project
SOURCE CODE
import os
import csv
def addrecord():
print("Add a new Record")
print("================")
f=open('students.csv','a')
s=csv.writer(f)
rollno=int(input('Enter rollno='))
name=input('Enter name=')
marks=float(input('Enter marks='))
rec=[rollno,name,marks]
s.writerow(rec)
f.close()
print("Record Saved")
input("Press any key to continue..")

def modifyrecord():
print("Modify a Record")
print("================")
f=open('students.csv','r',newline='\r\n')
f1=open('temp.csv','w',newline='\r\n')
f1=open('temp.csv','a',newline='\r\n')
r=input('Enter rollno you want to modify')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("Rollno=",rec[0])
print("Name=",rec[1])
print("Marks=",rec[2])
choice=input("Do you want to modify this
record(y/n)")
if choice=='y' or choice=='Y':
rollno=int(input('Enter New rollno='))
name=input('Enter new name=')
marks=float(input('Enter new marks='))
rec[0]=rollno
rec[1]=name
rec[2]=marks
rec=[rollno,name,marks]
s1.writerow(rec)
print("Record Modified")
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove("students.csv")
os.rename("temp.csv","students.csv")
input("Press any key to continue..")

def deleterecord():
print("Delete a Record")
print("================")
f=open('students.csv','r',newline='\r\n')
f1=open('temp.csv','w',newline='\r\n')
f1=open('temp.csv','a',newline='\r\n')
r=input('Enter rollno you want to delete')
s=csv.reader(f)
s1=csv.writer(f1)
for rec in s:
if rec[0]==r:
print("Rollno=",rec[0])
print("Name=",rec[1])
print("Marks=",rec[2])
choice=input("Do you want to delete this
record(y/n)")
if choice=='y' or choice=='Y':
pass
print("Record Deleted")
else:
s1.writerow(rec)
else:
s1.writerow(rec)
f.close()
f1.close()
os.remove("students.csv")
os.rename("temp.csv","students.csv")
input("Press any key to continue..")

def viewall():
print("List of All Records")
print("===================")
f=open('students.csv','r',newline='\r\n') #Remove
new line character from output
s=csv.reader(f)
i=1
for rec in s:
print(rec[0],end="\t\t")
print(rec[1],end="\t\t")
print(rec[2])
i+=1
f.close()
input("Press any key to continue..")

def search():
print("Search a Record")
print("===================")
f=open('students.csv','r',newline='\r\n') #Remove
new line character from output
r=input('Enter rollno you want to search')
s=csv.reader(f)
for rec in s:
if rec[0]==r:
print("Rollno=",rec[0])
print("Name=",rec[1])
print("Marks=",rec[2])
f.close()
input("Press any key to continue..")

def mainmenu():
choice=0
while choice!=6:
print("\n")
print("Main Menu")
print("==========")
print("1. Add a new Record")
print("2. Modify Existing Record")
print("3. Delete Existing Record")
print("4. Search a Record")
print("5. List all Records")
print("6.Exit")
choice=int(input('Enter your choice'))
if choice==1:
addrecord()
elif choice==2:
modifyrecord()
elif choice==3:
deleterecord()
elif choice==4:
search()
elif choice==5:
viewall()
elif choice==6:
print("Software Terminated")
break

mainmenu()
SCREENSHOTS OF FEW OUTPUTS:

1, BY THE START OF THE PROGRAM:

2, ADDING A NEW RECORD:


3, MODIFYING EXISTING RECORD:

4, DELETING EXISTING RECORD:


5, SEARCHING A RECORD:

6, LISTING ALL RECORDS:

THANKING YOU

You might also like