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

Ip Project File

The document is a student project report on developing a software for managing student records in a school. It includes the source code for building functions to add, modify, delete and search student records stored in a CSV file. It also documents the output, system requirements, and bibliography for the project. The student thanks their teacher and principal for guidance and completes the project on time.

Uploaded by

gahlotkavya09
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
114 views

Ip Project File

The document is a student project report on developing a software for managing student records in a school. It includes the source code for building functions to add, modify, delete and search student records stored in a CSV file. It also documents the output, system requirements, and bibliography for the project. The student thanks their teacher and principal for guidance and completes the project on time.

Uploaded by

gahlotkavya09
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 19

Nav Bharti Sr Sec School

Name - Kavya Gahlot


Class - XII-A
Rollno-
IP project FILE
(065)
For the academic year 2023-24
Signature of teacher signature of extenal
examiner
_______________ ______________

Page | 1
CERTIFICATE

This is to certify that Kavya Gahlot


student of class XII A, bearing roll no.
has successfully completed her project on
software “student management “under the
guidance of Ms.Ritu Aswal during the
academic year 2023-24

Teacher's signature _____________

External invigilator signature___________

Page | 2
ACKNOWLEDGEMENT

I would like to express my special thanks of


gratitude to my informatic practises teacher
Ms. Ritu Aswal as well as our principal maam
Ms.Vinita Bhartiya who gave me the golden
opportunity to do this wonderful project on the
topic library management.
Secondly, I would also like to thank my
parents and friends who helped me a lot in fi-
nalizing this project within the limited time
frame.
Lastly, I like to thank all my supporters who
have motivated me to fulfill their project before
the timeline.

Page | 3
Index
Sno particulars Remarks

1. Source code

2. Output
screen

3. System
requirement

4. requirement

5. Biblio-
graphy

Introduction
Page | 4
This project is all about a software for School. It helps
the Teachers to manage
students details. It adds a student, updates an existing
student's details and on course
display details of student and store data in csv file that
can later be accessed using spreadsheet applications like
Ms Excel.

Objectives of this project


The objective of this project is to let the students apply
the programming knowledge into a real- world
situation/problem and exposed the students how
programming skills helps in developing a good
software.
1. Write programs utilizing modern software tools.
2. Apply object-oriented programming principles effect-
ively when developing medium sized projects

Source code:
import os

Page | 5
import csv
def addrecord():
print("Add a new Record")
print("================")
f=open('students.csv','a',newline='\
r\n')
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])
Page | 6
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=[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():
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 de-
lete')
s=csv.reader(f)

Page | 7
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 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:

Page | 8
print("Rollno=",rec[0])
print("Name=",rec[1])
print("Marks=",rec[2])
f.close()
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 mainmenu():
choice=0
while choice!=6:
print("\n")
print("Main Menu")
print("==========")
print("1. Add a new Record")
print("2. Modify Existing Re-
cord")
print("3. Delete Existing Re-
cord")
print("4. Search a Record")
print("5. List all Records")
Page | 9
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()

Output of code:

Page | 10
Working of program:

Page | 11
Page | 12
Page | 13
Excel data table :

Page | 14
Excel table:

Page | 15
Page | 16
Page | 17
System requirement of project

 Recommended system requirement


 Processor:intel core i3 processor 4300M at
2.60 GHz
 Disk space: 2 to 4 Gb
 Operating system: windows
10,MACOS,UBUNTU
 Python version: 3.4.8 or higher

Page | 18
Bibliography
 Youtube
https://www.youtube.com/watch?
v=nrdUTeAhepM
 www.scribd.com
 www.google.com

Page | 19

You might also like