Sunteți pe pagina 1din 14

KENDRIYA VIDYALAYA

KARIMNAGAR
SUBJECT: COMPUTER SCIENCE
(PYTHON)
TOPIC: - student
management system
DONE BY
1) K.ABHISHEK, ROLL NO:- 14
2) M.D. SAMEER, ROLL NO:- 26
CLASS: - XI
1
CERTIFICATE
This is to certify that K. Abhishek (Roll no. 14) and
M.D. Sameer (Roll no.26) of class XI have successfully
completed the computer science (083) project laid down
under the regulations of CBSE entitled

for year 2019-2020.

Mr.Vaman Rao Mr. Sanjiv Jaiswal


(Incharge principal) (Guide Teacher)

Signature: Signature:

2
TABLE OF CONTENTS

S.NO DESCRIPTION PAGE.NO

1 ACKNOWLEDGEMENT 4

2 INTRODUCTION 5

3 OBJECTIVES 6

4 PROPOSED SYSTEM 7

5 PROGRAM CODE 8-11

6 OUTPUT 12-13

7 BIBILOGRAPHY 14

3
Acknowledgement
Apart from the efforts of us, the success of any project depends
largely on the encouragement and guidelines of many others.
We take this opportunity to express our gratitude to the people
who have been instrumental in the successful completion of this
project.

We express our heartfelt gratitude to our parents for constant


encouragement while carrying out this project.
We would like to express a deep sense of thanks & gratitude to
our guide teacher Mr. Sanjiv Jaiswal sir for guiding us
immensely through the course of the project.

We express our deep sense of gratitude to the


Incharge Principal Mr.Vaman Rao who has been continuously
motivating and extending their helping
hand to us.

Last but not the least we would like to thank all those who had
helped directly and indirectly towards the completion of this
project.

4
INTRODUCTION
Simple Student Management System project is written in
Python. The project file contains a python script (student.py).
This is a simple console based system which is very easy to
understand and use. Talking about the system, it contains
basic functions which include Add students, view students,
search students and remove the student. In this mini project,
there is no such login system. This means he/she can use all
those available features easily without any restriction. It is too
easy to use, he/she can check the total student’s record.

5
Objectives

 Add Students
 List all students
 Search students
 Remove Students

DISADVANTAGES OF THE MANUAL SYSTEM


Student files can easily get lost or mix up with other guest file
documents.
Files occupy a large storage space.
Unnecessary duplication of data.
Files are prone to theft unauthorized modification due to low
data security levels and standards.
Due to easy access to guest data by unauthorized users,
student data is extremely unconfident.
Retrieval of guest records is extremely difficult.
Data entry procedure is prone to errors.

6
PROPOSED SYSTEM
Our proposed system, contains basic functions which
include Add students, view students, search students and
remove the student. In this mini project, there is no such login
system. This means he/she can use all those available features
easily without any restriction. It is too easy to use, he/she can
check the total student’s record. While adding the
students, the user only has to enter his/her name then the
system adds the record and displays to the user. And the user
can view all these students lists from the view section.
In this Simple Student Management, the user can also search
for student’s name in order to know whether the student’s
record exists in the system or not. This simple console based
Student Management system provides the simplest
management of student’s list. In short, this projects mainly
focus on CRUD. There is no database connection or neither
any external text nor other files used in this mini project to
save user’s data permanently.

7
PROGRAM CODE
import os

import platform

global listStd #Making ListStd As Super Global Variable

listStd = ["yugesh", "kishor", "gajen", "Gopi"] #List Of Students

def manageStudent(): #Function For The Student Management System

x = "#" * 30

y = "=" * 28

global bye #Making Bye As Super Global Variable

bye = "\n {}\n# {} #\n# ===> Brought To You By <=== #\n# ===> code-
projects.org <=== #\n# {} #\n {}".format(x, y, y, x) # Will Print GoodBye
Message

#Printing Welcome Message And options For This Program

print("""

------------------------------------------------------

|======================================================|

|======== Welcome To Student Management System ========|

|======================================================|

------------------------------------------------------

Enter 1 : To View Student's List

8
Enter 2 : To Add New Student

Enter 3 : To Search Student

Enter 4 : To Remove Student

""")

try: #Using Exceptions For Validation

userInput = int(input("Please Select An Above Option: ")) #Will


Take Input From User

except ValueError:

exit("\nHy! That's Not A Number") #Error Message

else:

print("\n") #Print New Line

#Checking Using Option

if(userInput == 1): #This Option Will Print List Of Students

print("List Students\n")

for students in listStd:

print("=> {}".format(students))

elif(userInput == 2): #This Option Will Add New Student In The List

newStd = input("Enter New Student: ")

if(newStd in listStd): #This Condition Checking The New Student Is


Already In List Ur Not

9
print("\nThis Student {} Already In The
Database".format(newStd)) #Error Message

else:

listStd.append(newStd)

print("\n=> New Student {} Successfully Add


\n".format(newStd))

for students in listStd:

print("=> {}".format(students))

elif(userInput == 3): #This Option Will Search Student From The List

srcStd = input("Enter Student Name To Search: ")

if(srcStd in listStd): #This Condition Searching The Student

print("\n=> Record Found Of Student {}".format(srcStd))

else:

print("\n=> No Record Found Of Student {}".format(srcStd))


#Error Message

elif(userInput == 4): #This Option Will Remove Student From The List

rmStd = input("Enter Student Name To Remove: ")

if(rmStd in listStd): #This Condition Removing The Student From


The List

listStd.remove(rmStd)

print("\n=> Student {} Successfully Deleted


\n".format(rmStd))

for students in listStd:

10
print("=> {}".format(students))

else:

print("\n=> No Record Found of This Student


{}".format(rmStd)) #Error Message

elif(userInput < 1 or userInput > 4): #Validating User Option

print("Please Enter Valid Option") #Error Message

#brought to you by code-projects.org

manageStudent()

def runAgain(): #Making Runable Problem1353

runAgn = input("\nwant To Run Again Y/n: ")

if(runAgn.lower() == 'y'):

if(platform.system() == "Windows"): #Checking User OS For


Clearing The Screen

print(os.system('cls'))

else:

print(os.system('clear'))

manageStudent()

runAgain()

else:

quit(bye) #Print GoodBye Message And Exit The Program

runAgain()

11
OUTPUT

12
13
BIBILOGRAPHY

Computer science with Python - Class XI by: Sumita Arora


https://www.w3resource.com
https://en.wikipedia.org/wiki/E_(mathematical_constant)
https://cbsetoday.com
https://www.academia.edu/

14

S-ar putea să vă placă și