Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Gamnj

Download as pdf or txt
Download as pdf or txt
You are on page 1of 24

SHAHEED BISHAN SINGH

MEMORIAL SR. SEC. SCHOOL


(2020-2021)

PROJECT FILE

Made by :-

Name: MUSKAN Class: XII


ACKNOWLEDGEMENT

This project, i.e., "School Management System"


which was impossible to complete without the
help and support of a good few who helped me
through the course of my project coding, directly
and indirectly.

First I offer my thanks to Mr. GURMEET


SINGH, who gave me, chance to work on this
project by giving his full support and guidance
as well as all his valuable time.

Next I would like to thank our principal ma'am


for providing us with all type of valuable
instruments and necessary facilities, which help
us to learn this subject.

At last I would like to thank my group members


for their support and assistance.
CERTIFICATE

This is to certify that MUSKAN


Of class XII, stream science has
satisfactorily completed the project
under my guidance. She completed
the project work of "School
management System" alone. The
concept and the codes for the
program are original in nature and
are not copied from anywhere else.

Mr. Gurmeet Singh


Content
PARTICULARS
1. Preface
2. Aims and objectives
3. System Description at a Glance
4. System Requirement Specifications
5. Structure of the Tables used
6. Forms and Data Environments used
7. Future Extensions
8. Screenshots of the program
9. Conclusion
10. Bibliography
Preface
The Central Board of Secondary
Education has included in its course,
a full-fledged computer course
covering the fundamentals of
computer and programming.
Exploring the world of computer and
the project is both informative and
exciting .The project Management
System" has been allotted to me.
"School

This project work allocated is a part


of the tire process involved in
computerization of the School
Management System.
Aims and objectives
The project "School Management System"
has been allocated to me with the aim of
testing the knowledge of computer as a
subject and to make them realize the
problems that comes during the software
development process. Thus the methodology
adopted by the Central Board of Secondary
Education is to make the examination
process more practical based and realistic
by familiarizing the students with real life
situations. Its main aims and objectives are:
-
• To develop a database management
system based on MySQL for maintaining
the records relating to the management of
the organization.
. To develop programs to record the details
of the students.
System description at a glance

A School Management System to record the


Student records entry that involves several
entries relating to New admission of the student
of school and enter students records and display,
manipulate. Thus recording of entries becomes
easy and the expenditures incurred in the
working of the organization can be easily
derived.
System requirements specifications
A proposed computerized system shall be covering the
following aspects:
> One time accurate data entry should be required by
the system and thereafter it should take care of all
the selection processes, report generation processes
and maintenance of the data, in order to overcome all
the possibilities of introduction of any manual error,
which might lead to incorrect results.
> Maintenance of huge data.
The system should facilitate the storage and > The
system should take care of the New students record
but should be designed such that it could easily be
used for subsequent years also after slight
modification.
The system should cater to the requirements of
School Management System; and must be designed in
a manner, so that any entries in future can be easily
appended to it.
> The system should be highly efficient with respect
to time involved in selection and report generation.
STRUCTURE OF THE TABLES USED
Create Database test
CREATE TABLE project

Forms and data environments used


Python forms:
1. Enter student record
2. Display student record
3. Search student record
4. Delete student record
5. Update student record
Coding of the program
import mysql.connector
myconn=mysql.connector.connect(host="localhost",us
er="root",passwd="",database="test",charset="utf8")
def creatab():
cur=myconn.cursor()
a='create table if not exists project(roll int, name
varchar(20),gender char(1),section char(1),class
varchar(4),stream varchar(10),fname varchar(20))'
print('Table created if not exists')
cur.execute(a)
cur.close()

def showtab():
cur=myconn.cursor()
cur.execute('show tables')
for i in cur:
print(i)
cur.close()
def insrec():
cur=myconn.cursor()
c='Y'
while c=='Y':
r=int(input('enter rollno: '))
n=input('enter name: ')
g=input("enter gender: ")
sec=input("enter section : ")
c=input("enter class : ")
s=input("enter stream : ")
fname=input("enter fname : ")
value=(r,n,g,sec,c,s,fname)
a='insert into project
values(%s,%s,%s,%s,%s,%s,%s)'
cur.execute(a,value)
myconn.commit()
c=input('Do u want to add more
records(Y/N):').upper()
cur.close()
def showrec():
cur=myconn.cursor()
cur.execute('select * from project')
rec=cur.fetchall()
print('Rollno',' ','Name',' ','gender',' ','section',' ','class','
','stream',' ','fname')
for r in rec:
print(r[0],' ',r[1],' ',r[2],' ',r[3],' ',r[4],'
',r[5],' ',r[6])

def delerec():
r=int(input('enter rollno to delete :'))
value=r,
cur=myconn.cursor()
a='delete from project where roll=%s'
cur.execute(a,value)
if cur.rowcount>=1:
myconn.commit()
print('Total records deleted',cur.rowcount)
else:
print('not found')
cur.close()

def search1():
r=int(input('enter rollno to search :'))
value=r,
cur=myconn.cursor()
a='Select * from project where roll=%s'
cur.execute(a,value)
rec=cur.fetchone()
if cur.rowcount==1:
print('Rollno',' ','Name',' ','gender',' ','section','
','class',' ','stream',' ','fname')
print(rec[0],' ',rec[1],' ',rec[2],' ',rec[3],'
',rec[4],' ',rec[5],' ',rec[6])
else:
print('record not found')

def search2():
s=input("enter stream : ")
value=s,
cur=myconn.cursor()
a='Select * from project where stream=%s'
cur.execute(a,value)
rec=cur.fetchone()
if cur.rowcount==1:
print('Rollno',' ','Name',' ','gender',' ','section','
','class',' ','stream',' ','fname')
print(rec[0],' ',rec[1],' ',rec[2],' ',rec[3],'
',rec[4],' ',rec[5],' ',rec[6])
else:
print('record not found')

def search3():
g=input("enter gender: ")
value=g,
cur=myconn.cursor()
a='Select * from project where gender=%s'
cur.execute(a,value)
rec=cur.fetchone()
if cur.rowcount==1:
print('Rollno',' ','Name',' ','gender',' ','section','
','class',' ','stream',' ','fname')
print(rec[0],' ',rec[1],' ',rec[2],' ',rec[3],'
',rec[4],' ',rec[5],' ',rec[6])
else:
print('record not found')

def modirec():
r=input('enter rollno to modify :')
value=r,
cur=myconn.cursor()
a="Select * from project where roll=%s"
cur.execute(a,value)
rec=cur.fetchone()
if cur.rowcount==1:
print('Rollno',' ','Name',' ','gender',' ','section','
','class',' ','stream',' ','fname')

print(rec[0],'\t',rec[1],'\t',rec[2],'\t',rec[3],'\t',rec[4],'\t'
,rec[5],'\t',rec[6])
n=input('enter new name')
g=input("enter new gender: ")
sec=input("enter new section : ")
c=input("enter new class : ")
s=input("enter new stream : ")
fname=input("enter new fname : ")
value=n,g,sec,c,s,fname,r
a='update project set name=%s where roll=%s'
cur.execute(a,value)
print('record modified')
else:
print('record not found')

cur.close()
print(''' SHAHEED
BISHAN SINGH MEMORIAL SR. SEC. SCHOOL

*** WELCOME
TO SCHOOL MANAGEMENT***
1. Create table
6. Search by streamwise

2. Show Tables
7. search by genderwise

3. Insert record
8. Delete records

4. Show records
9. Modify records

5. Search by rollnowise
10. Exit
''')

ch='Y'
while ch=='Y':
print('1.Create table')
print('2.Show Tables')
print('3.insert record')
print('4.show records')
print("5.search record by rollnowise")
print("6.search record by streamwise")
print("7.search record by genderwise")
print('8.delete records')
print('9.Modify records')
print('10 Exit')
ch=int(input('enter your choice :'))
if ch==1:
creatab()
elif ch==2:
showtab()
elif ch==3:
insrec()
elif ch==4:
showrec()
elif ch==5:
search1()
elif ch==6:
search2()
elif ch==7:
search3()
elif ch==8:
delerec()
elif ch==9:
modirec()
elif ch==10:
break
ch=input('continue Y/N :').upper()
Output
BIBLIOGRAPHY

https://www.google.com/
https://www.wikipedia.org/
computer science with python
object oriented programming

You might also like