You are on page 1of 19
Introduction This project work automates school) management system. School Management System consist of tasks such registering students, attendance record keeping control to absentees, details of teacher, fee structure ,ete. Data file handling has heen effectively used in the [program Database is a collection of interrelated data to serve multiple applications ive, database programs create files of information, So we see that files are worked with most inside the program itself. DBMS The software required for management of data is called DBMS. It has three models, Relation model: 9¢ stores information in form of rows Cc cardinality) and columns (degree). Hierarchical model: In this type of model, we have multiple records inside a single record. Network model: 9n this, the data is represented by collections of record and relationships is separated | by associations, Characteristics of OB MS © I reduces the rechundancy, © Data sharing © Data standardization © Reduction of ‘data inconsistency Types of files based on access . Sequential} file © Serial file © Random file © Test file © Binary file Software and Hardware requirement # Software Specifications:~ e Operating system: Windows 10/8/7 e Platform : Python IDLE 3.7 e Database : MySQL e Languages : Python # Hardware Specifications: e Processor : Dual core or above e Hard Disk : 40 GB e RAM : 1024 MB Advantages of Project: . Saves time of teachers and administrators . Fee Collection . Improving Teaching Standards . Complete attendance automation . Effortless grades and marks management . Publishing of online forums and assignments . Easy management of class information analytical reports . Ordering books for library accordingly NAoohwnr oo Source Code in Python import mysql.connector as a con=a.connect (host=' localhost ' ,user='root' ,database=' test’ ,passwd='rema') def Addst (): sinput ("Student name:") cl=input ("Class:") reint (input ("Roll no:")) a=input ("Address:") ph=input ("Phone:") data=(n,cl,r,a,ph) sql='insert into student values (%s,%s,%s,%s,%s) ' =con.cursor() c.execute (sql data) con. commit () print ("Data entered successfully") print ("") main() RemoveSt () : cl-input ("Class:") nt (input ("Roll no:")) data=(cl,r) sql='delete from student where class=%s and roll=%s' e=con. cursor () c.execute (sql data) con. commit () print ("Data Updated") print ("") main() Displayst(): cl=input ("Class:") data=(cl,) sql='select * from student where class=ts' =con. cursor () c.execute (sql, data) d=c.fetchall() for i in d: print ("Name:",i[0]) print ("Class:",i[1]) print ("Roll no:",i[2]) print ("Address:",i[3]) print ("Phone:",[4]) print(" print ("™) main() Add () : tcode=int (input ("TCode:")) n=input ("Teacher name:") nt (input ("Salary:")) a=input ("Address:") ph=input ("Phone:") data=(tcode,n,s,a,ph) sql='insert into teacher values (%s,%s,%s,%s,%s)' c=con. cursor () c. execute (sql, data) con. commit () print ("Data entered successfully") print("") main() RemoveT () : n=input ("Teacher:") teode=int (input ("Tcode: ") data=(n, tcode) sql='delete from teacher where name c=con. cursor () c.execute (sql, data) con. commit () print ("Data Updated") print("") main() Updatesal () : n=input ("Teacher") teode=int (input ("Pcode:")) salary=int (input ("Salary:")) data=(n,tcode) sql='update teacher set salary=ts where name=%s and tcode=%s' =con . cursor () c.execute (sql, data) con. commit () print("Data Update") print("") main() Display? () : sql='select * from teacher’ c=con. cursor () c.execute (sql) d=c. fetchall () for i in d: print ("Teode:",4[0]) print ("Name:",i[1]) print ("Salary:",i[2]) print ("Address:",i[3]) print ("Phone:",i[4]) print ("") print ("") main() ciatta(): nput ("Class:" elt=input ("Class teacher tint (input ("Class strenght:")) d=input ("Date:") ab=int (input ("No of absentees:")) data=(d,clt,t,d,ab) sql='insert into Clattendance values (%s,%s,%s,%s,%s)' =con.. cursor () c.execute (sql data) con. commit () print("Data entered successfully") print("") main() DisplayClattd() : sql='select * from ClAttendance' c=con. cursor () c.execute (sql) isc. fetchall () for i in d: print ("Class:",i[0]) print("Class teacher:",i[1]) print("Total st:",i[2]) print ("Date:",4[31) print ("Absentees:",i[4]) print ("") print("") main() TAttd() : input ("Name:") d=input ("Date nput ("Attendance:") data=(n,d,a) sql='insert into tattendance values(%s,%s,%s)' c=con. cursor () c.execute (sql, data) con. commit () print("Data entered successfully") print("") main () DisplayTAttd(): sql='select * from tattendance’ c=con.cursor() c.execute (sql) d=c.fetchall () for i in d: print ("Name:",4[0]) print ("Date:",4[1]) print ("Attendance:",i[2]) print ("") print("") main() Updaterees() : cl=input ("Class:") m=input (""Monthly:") b=input ("BusFee:") sc=input ("ScFee:") tc=input ("TechFee t=input ("Total:") data=(cl,) sql='update FeeStructure set monthly=%s, BusFee=%s, ScFee=%s, TechFee=%s, Total=%s' c. execute (sql, data) con. commit () print ("Data Updated") print(") main() DisplayFees(): sql='select * from FeeStructure! c=con.cursor() cc. execute (sql) d=c.fetchall() for i in d: print ("Class:",i[0]) print ("Monthly:",i[1]) print ("BusFee:",i[2]) print ("ScFee:",[3]) print ("TechFee:",i[4]) print ("Total:",i[5]) print("") print("") main() AdaBook () : bid=int (input ("Book id:")) sinput ("Title:") p=input ("Publisher") g=input ("Genre:") data=(bid,t,a,p,g) sql='insert into library values (%s,%s,%5,%s,%s) ' c=con. cursor () c.execute (sql data) con. commit () print("Data entered successfully") print("") main() RemoveB () teinput ("Title bid-int (input ("Book id:")) data=(t,bid) sql='delete from library where t=%s and bid=ts' c=con. cursor () c.execute (sql, data) con. commit () print ("Data Updated") print("") main() DisplayB() : sql='select * from library’ c=con. cursor () c.execute (sql) i=c. fetchall() for i ind: print ("Bid:",4[0]) print ("Title:",i[1]) print ("Author:",4[2]) print ("Publisher:",i[3]) print ("Genre:",i[4]) print ("") print("") main() def main(): ch='y! while ch in ['y','¥']: print ("Pitts Modern School") print ("1. Student") print ("2.Teacher") print ("3.ClAttendance") print ("4.TAttendance") print ("5.FeeStructure") print ("6. Library") table=int (input ("enter table no:")) print ("") if tabl op="'y' while op in ['y','¥']: print ("1.Add student") print ("2.Remove student") print ("3.Display St detail") nt (input ("enter task no:")) RemoveSt () elif tas Displayst () else: print ("Enter Valid Choice!!") op=input ("Continue in this table(y/n elif table==2: op='y' while op in ['y','¥! print("1.Add teacher") print ("2.Remove teacher") print ("3.Update Salary") print ("4.Display Tdetails") task=int (input ("enter task no:")) if task==1: Ada? () elif tas Remover () elif tas Updatesal () elif task: Display? (): else: print ("Enter Valid Choice!!") op=input ("Continue in this table(y/n): elif table ops'y while op in ['y','¥']: print ("1.Class Attendance") print ("2.Display Clattd details") task=int (input ("enter task no:")) if task==1: ciatta() elif tas DisplayClattd() else: print ("Enter Valid Choice! !") op=input ("Continue in this table(y/n elif table==4: ) op='y while op in ['y’,'¥! print ("1.Teacher attendance") print ("2.Display TAttd details") task=int (input ("enter task no:")) if tas TAttd () elif tas DisplayTAttd() else: print ("Enter Valid Choice!!") op=input ("Continue in this table(y/n):") elif tabl op='y while op in ['y','¥']: print ("1.Update Fees") print("2.Display Fees details") task=int (input ("enter task no:")) if task==1: UpdateFees() elif task: DisplayFees () else print ("Enter Valid Choice! !") op=input ("Continue in this table(y/n) :") elif tabl op='y' while op in ['y','¥']: print("1.Add Book") print ("2.Remove Book") print("3.Display Book") task=int (input ("enter task no:")) if task==1: AdaBook () elif tas elif tas DisplayB() else print ("Enter Valid Choice! !") op=input ("Continue in this table(y/n) :") else: print ("ENTER VALID CHOICE!!!") ch=input ("Do you want to continue (y/n) :") Output Screen Python 3.7.4 (tags/v3.7.4:609359112e, phone: 8002742766 32 Data entered successfully Type "help", "copyright", "credits" o: >>> Continue in student table (y/n) :y ‘== RESTART: C: \Users\abc\AppData\Loca Ladd student Eight", "credits" or "license()" for 1 2 Remove student Pitts Modern school 3.Digplay stdetails School enter task no:2 ‘Teacher Clase:12a, CAE tandance Roll no:40 pendence Data update Feestructure -_ Library continue in student table(y/n) :y enter table no:1 1.Add student 2 Remove student 3.Display Stdetails enter task no:3 class:128 Nane:Rema Class:12a, Roll :40 Address: Siromtoli Phone: 8002742766 Ladd student 2 Remove student 3:Display stdetaiis enter task no:1 Student nane:Rema Clase:12a Roll no:40 Address: Siromtoli phone: 8002742766 Clase:12a enter task no:1 Name :Raj ‘Toede:101 clase:12A ‘Teacher name:Ajay Roll: 41 Salary: 64000 Address :Bariatu Address: Hinoo Phone: 6204881532 Phone:9430182766 Continue in teacher table (yn) :y 1.Add teacher continue in student table(y/n) :n 2 Remove teacher Do you want to continue(y/n) :y 3 Update salary Pitts Modern School 4.Display Tdetails student enter task no:2 ‘Teacher ‘Teacher :Ajay cLattendance ‘reode:101 ‘mattendance Data Updated Feestructure Library continue in teacher table (y/n) :y enter table no:2 Ladd teacher 2:Renove teacher L.add teacher ‘3lupdate salary 2 Remove teacher 4.Display Tdetails 3.update salary enter task no:3 ‘Display Tdetaile ‘Teacher :Ajay enter task noil ‘roode:101 ‘Teode:101 Salary: 68000 Pata Updated continue in teacher table(y/n) :y L.Add teacher 2 Remove teacher 3.update Salary ‘4 Display Tdetails enter task no:d ‘Teode:101, Nane:Ajay Salary: 68000 Address :Hinoo Phonr: 943018276 eode:102 Name: Seema Salary:51000 Addres :Kokar Phone: 6340484603, Continue in teacher table(y/n) :n 2.Display CLAttd details enter task no:2 claa:12A, Class teacher:A singh Total st:60 Date:2021-02-13 ‘Absentees:15 class:128 Clase teacher:RK Sinha Total sti67 Date:2021-0-13 Absentees:12 Continue in Clattendance table (y/n) :n Do you want to cntinue(y/n) :y Pitts Modern School 2.student 2 teacher 3 cLattendance ‘.rattendance S.Feestructure 6 tabrary Continue in teacher table(y/n) :n Do you want to continue (y/n:y Pitts Modern school ‘student ‘Teacher cLattendance 2 3 4. tattendance 5.Feestructure 6 Library enter table no:3 L.class Attendance 2.Display cIAttd details enter task no:1 Clase:12A Clase teacher:A Singh Class strength:60 Date:2021-02-13 No of absentees:15 Data entered successfully continue in CLAttendance table (y/n) ty 1.Clase Attendance 2.Display cIAttd details 6.Library enter table no:4 L.feacher Attendance 2 Display TAttd details enter task no:1 Nane:Ajay Date:2021-03-13 Attendance: Present Data entered successfully continue in TAttendance table (y/n) :y L.feacher Attendance 2 Display TAttd details enter task no:2 Name:Ajay Date:2021-02-13 Attendance: Present. Name:Seema Date2021-02-13 Attendance: Absent Continue in TAttendance table (y/n) in Do you want to continue(y/n) :y Pitts Modern School student 2 teacher 3.cLattendance ‘4.tattendance S.Feestructure 6.Labrary enter table no:5 L.updat Fees 2 Display Fees enter task no:t Clase:12a Monthly :3700 BusFee:500 soFee:200 TechFee:200 Total:4600 Data Update Continue in Feestructure table (y/n) :y 1.Update Fees 3.cLattendance ‘.tattendance 5 Feestructure 6.1abrary enter table no:6 1.Add Book 2 Remove Book 3 Display Book enter task noil Book id:11091 Title:Da Vinei code Author:Dan Brown Publisher: Transworld Genre: Thriller Data entered successfully Continue in Library table(y/n) :y enter task no:2 Title:Da Vinei Code Book id:11091 Data Updated Continue in Library table(y/n) :y 1.Update Fees 2 Display Fees enter task no:2 Clase:12 BuaFee 500 soFee: 200 TechFee:200 Total: 4600 clase:11 Monthly: 3700 BusFee 500 scFee: 200 TechFee:200 Total: 4600 Continue in Feestructure table (y/n) :n Do you want to continue(y/n) :y Pitts Modern School 1.student 2 teacher 3 cLAttendance OT Continue in Library table(y/n) :y enter task no:2 Title:Da Vines Code Book id:11091 Data Updated Continue in Library table(y/n) :y enter task no:3 Book id:11092 Title:Da Vinci Code ‘Author:Dan Brown, Publisher: Transworld Genre: Thriller Book id:11092 Title:Twilight Author:Stephenie Meyer Publisher:Little Brown Book Genre: Fiction Continue in library table(y/n) :n Do you want to continue(y/n) :n ere ee er Null | Key | Default | extra Reet) era) eerie) eee) varchar(30) Coe mere ry ca varchar(30) TPT) Sere rieet) Pere) in set (0.009 sec) eee finer rier yy Steric) fotaist | varchar(30) Paty Reeser od Absentees | varchar(30) Reciiiee ona 3 Pere IRs | attendance | varchar(30) | YES varchar¢30) Mares tess varchar(30) Varchar(30) Perera) Ree) aes Reece om nil cigs om id Perens Reece msd Limitations e The limitation of the application is more improvement in online examinations. Limited questions had been stored and need more updation and maintenance of the application. e Storage capacity is too small so that it cannot be stored large amount of data so that backup is necessary for the future improvement. Future Scope e In future our system can include accounting system, good backup, and restore facility. e System is so much flexible so in future it can increase easily and new modules can be added easily. e You can add student admission as well as pay online fees. e Make online exams more effective, efficient and more dynamic so that it helps to get good support from the student. Bibliography ¢ Computer Science with Sumita Arora ¢ Computer Science with Preeti Arora ¢ www. wikipedia.org © www.w3resource.com ¢ Under the guidance of subject teacher

You might also like