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

Cs File

Yarr

Uploaded by

Tejasvi Dwivedi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
40 views

Cs File

Yarr

Uploaded by

Tejasvi Dwivedi
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 18
INDEX * Introduction * Software & Hardware requirements * Advantages of this project * Source Code in Python * Output Screen * MySQL tables * Limitations * Tyture Scopes * Bibliography 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 | feacher, fee structure ,etc, Data file handling has been affectively used in the program. Database is a collection of interrelated data fo serve muliple 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. I has three model Relation model: 9¢ stores information in form of rows (oardinality) and colamns (degree). Hierarchical model: In this type of model we have multiple records inside a single record. Network model: In this, the data is represented by collections of record and relationsh ips i separate feck by associations, Characteristics of OBMS © Iveduces the redlundancy. © Data sharing © Data standardization © Reduction of | data inconsistency Types of, [les based! on access ° Sequential} file © Serial file © Random file © Test file © Binary file Software and Hardware requirement # Software Specifications:~ « Operating system: Windows 10/8/7 * Platform : Python IDLE 3.7 ¢ Database : MySQL e Languages : Python #Hardware Specifications: ¢ Processor : Dual core or above ¢ Hard Disk : 40 GB « 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 Source Code in Python import mysql.connector as a consa.connect (host=" localhost’ ,user=' root’ ,database='test' ,passwd="rema") def Addst() n=input ("Student name cl=input ("Class:") reint(input ("Roll no:")) asinput ("Addres! ph=input ("Phene: data=(n,cl,r,a,ph) sqi='insert into student values (%: e=con. cursor () c.execute (sql, data) con. commit () print ("Data entered successfully") print ("") main () Removest () el=input ("Class:") reint (input ("Roll no data=(cl,r) sqi='delete from student where clas: e=con. cursor () c.execute (sql, data) con.commit () print(“Data Updated") peint( main () DisplaySt (): el=input ("Clas: data=(cl,) sql='select * from student where class=ts' e=con. cursor () c.executs (sql, data) dee. fetchall () for i in d: print ("Name:",i[0]) print ("Class:",i[1]) print ("Roll no:",i[21) print ("Adres print ("Phone: print ("") print("") main() Adar () : teode=int (input ("TCode: ")) nsinput ("Teacher name:") ssint (input ("Salary:")) a=input (Address: ") ph=input ("Phone data=(tcode,n,s,a,ph) sqi='insert into teacher values(%s,% e=con. cursor () e. execute (sql, data) con. commit () print("Data entered successfully”) n=input (Teacher: ") teode=int (input (""Teode : ") data=(n, tcode) sql='delete from teacher where name-ts and tcode-ts’ e=con. cursor () . execute (sql, data) con. commit () print("Data Updated") print("") main() Updatesal (): n=input ("Teacher") teode=int (input ("Teode:")) salary=int (input ("Salary:")) data=(n, teode) aql='update teacher set salary=ts where name=ts and teode=ts! c=con.cursor () c. execute (sql ,data) con. commit () print ("Data Update") print("*) main() DisplayT(): sql='select * from teacher’ e=con.cursor() ©. execute (sql) dec. fetchall () for i ind: print ("feode:",i[0]) print ("Name:",i[1]) print ("Salary:",i[2}) print ("Address:",i[3]) print ("Phone:",i[4]) print("™) print("") main () elattd (): d=input ("Class elt=input ("Class teacher:") tint (input ("Class strenght:")) d=input ("Date:") ab=int (input ("No of absentess:")) data=(d,clt,t,d, ab) sql='insert into Clattendance e=con.cursor() c. execute (sql, data) con. commit () print ("Data entered successfully") print("") main() Displayclated () : sql='select * from ClAttendanc c=con.cursor () ©. execute (sql) dec. fetchall () for i in d: print ("Class:",i[0]) print ("Class teacher:",i[1]) print ("Total st:",i[2]) print ("Date:",4(3]) print ("Absentees:",i[4]) print ("") print("") main() TAttd() : n=input ("Name:") d=input ("Date:") nput (Attendance: ") data=(n,d,a) sgl='insert into tattendance values(%s,%s,%s)' c=con. cursor () ©. execute (sql, data) con. commit-() print ("Data entered successfully") print("") main () DisplayTAttd() : sql='select * from tattendance’ =con. cursor () c.execute (sql) dee. fetchall () for 4 in d: print ("Nama:”,4[0]) print ("Date:",4[11) print ("Attendance:",i[2]) print ("") print ("") main() UpdateFees () el=input("Clase:") m=input ("Monthly: beinput ("BusFee:") sc=input ("SeFee:") tc=input ("TechFee:") t=input ("Total data=(cl,) sql='update FeeStructure set monthly=%s, Bus! TechFe: Total=ts' c.execute (sql ,data) con. commit () Print("Data Updated") print("") e=con. cursor () ¢.execute (sql) d=c.fetchall () for 4 in d: print ("Class:",i[0]) print ("Monthly:",i[1]) print ("BusFee:",i[2]) print ("ScFee:",i[3]) print ("TechFee:",i[4]) print ("Total:",4[5]) print("") print (*") main () int (input ("Book id:")) teinput ("Title:") a=input ("Author:") p=input (Publisher: ") g=input ("Genre:") data=(bid,t,a,p,g) sql='insert into library values (%s,%s c=con. cursor () execute (sql, data) con. commit () print ("Data entered successfully") print ("") main () RemoveB () t=input ("Title bid-int (input ("Book id:")) data=(t, bid) sql='de: from library where t=ts and bid= =con.cursor() execute (sql, data) eon. commit () print ("Data Updated") print ("") main() DisplayB(): aql="select * from library’ e=con.cursor() c.execute (sql) d=c.fetchall () for i in a: print("Bid:",4[01) print ("Title print("Author: print("Publisher: 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.Idbrary") table=int (input("enter table no:")) print ("") if table==1: op='y! while op in ['y','¥']: print ("1.Add student”) print ("2.Remove student") print ("3.Display St detail") task-int (input("enter task no:")) if task==1: Adds () elif task==2 Removest () elif task==3 Displayst() print ("Enter Valid Choice!!") opsinput("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 taske=1 Addr () elif task==2: Removel () elif task==3: UpdateSal () elif task==4 DisplayT(): else print ("Enter Valid Choice! opsinput ("Continue in this table(y/n):") elif table==3 op='y* while op in ['y','¥"] print ("1.Class Attendance") print("2-Display Clattd details") task=int (input (“enter task no:")) if task==, ciated () elif task==2: DisplayClAttd () else: print ("Enter Valid Choice!!") opsinput("Continue in this table(y/n): elif table—4: op="y! while op in ['y','¥']: print("l.Teacher attendance") print("2.Display TAttd details”) task=int (input ("enter task no:")) if tas! TAted() elif task==2: DisplayTAttd() else print ("Enter Valid Choice!!") op=input ("Continue in this table(y/n):") elif table==5: epee 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==2: DisplayFees () print ("Enter Valid Choice!! op-input ("Continue in this table(y/n):") elif table: op='y' while op in ['y',"¥'] print ("1.Add Book") print("2.Remove Book") print("3.Display Book") task=int (input ("enter task no:")) Removes () elif task==3 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 rython 3.7.4 (tags/v}.7.4:0093591126, 32 ‘Type "help". “copyright”, “credits” 0 ‘== RESTART: C:\Users\abc\Appoata\toca Fight", "credits" or "license()" for Pitts Modacn School School Teacher \CLAttendance TAttendence Feestructure Library enter table no:1 1.Add student 2 Remove student 3.Display Stdetaiis enter task no: Student name:Rema class:12a Roll no:40 Address: Siromtoli phone : 8002742766 class:12a Mame: Ra} elass:124 Continua in student table (y/a):n De you want ts continua(y/n) =y Pitts Modern School student ‘Teacher \cLAttendance ‘Tattendance Feestructure Library 4 Display Tdetatls phone: 8002742766 Data entered successfully Continue in student table (y/n) :y 1.Add student 2 Remove student 3.Dimplay stdatails enter task no:2 elase:12 Rell 76:40 Data updated continue in atudent table (y/n) :y L.Add student 2.Remove student 3.Display Stdetails ‘Siromtolt Phone=8002742766 Salary: 64000 Address:lince Phone:9430182766 Continue in teacher table yn) :y Ladd teacher 2 Remove teacher 3 Update salary ‘Display Tdeeails ‘lbisplay Téetacls enter task 10:3 ‘Teacher :Ajay ‘Toade:10% Date:2021-0-13 Absenteos:12 Continue in ctAttendance table(y/n) :n Bo you want to entinue(y/a) : Pitts Modern School 1 .Student 2. Teacher 3.cLAttendance 4.Tattendance 5 \Feestructure 6.Labrary 1. Class Attendance 2.Display CLAttd details enter task no:i Clase:22A Class teacher:A Singh Class strength: 60 Date:2021-02-13 Mo of absentees:15 Data entered successfully Continue in CLattendance table(y/n) :y 1.Class Attendance 2.Display CLAttd details Se tty Spe te 6.Library enter table no: i Teacher Attendance 2.Display Tattd details enter task no:3 Name :Ajay Date:2021-03-13 Attendance: Present Data entered successfully 2.Display TAttd details enter task no:2 Mame :Ajay Date:2021-02-13 Attendance: Present Mame: Seena Date2021-02-13 Attendance:Absent on a Continue in TAttendance table(y/n) :n Do you want to continue (y/n) :¥ Pitts Modern School 1, Student 2. Teacher 3.CLAttendance 4. TAttendance 5.Feestructure 6. Library enter table no:5 1.Updat Fees 2.Display Fees enter task no:1 Class:124 Monthly =3700 BusFee:500 ScFee:200 TechFee:200 Total: 4600 Data Update continue in Feestructure table (y/n) :y 1.Update Fees TT as 3.ClAttendance 4.Tattendance 5. Feestructure 6.Library enter table no:6 1.Add Book 2.Remove Book 3.Display Book enter task no:1 Book id:11092 ‘Title:Da Vinet Code Author:Dan Brown Publisher: Transworld Genre: Thriller Data entered successfully Continue in Library table(y/n):¥ enter task no: Title:Da Vinei Code Book id:11092 Data Updated Continue in Edbrary table(y/a) iy 1.Update Fees 2.Display Fees enter task no Class: 12 Monthiy:3700 BuaFee:500 Fee: 200 TechFee:200 Total: 4600 Class: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 Pitta Modern School 1. Student 2 Teacher 3.CLAttendance Continue in Library table(y/n) :y enter task no: Book id:11091 Data Updated Continue in Library table(y/n) :y enter task no Book £4:11091 Title:Da Vinci Code Author :Dan Brown Publisher: Transworld Genre: Thriller Book 44:11092 Title: Twilight Author :Stephenie Meyer Publisher:Little Brown Book Genre: Fiction Continue in library table(y/n) :n De you want te continue (y/n) :n >>> Pte ote) preg iectiges sy lass | vorehar(30) rity Nasr ec dy address | varchar(30) phone | varchar(30) ee acer ros! eee era eecsnat | Field | Type oa ee see) i pr prestige ry Stim Britis address | varchar(30) ce oe) Ce eon ot Srey varchar(30) | YES oe elteacher | varchar(40) | YEs ron rst ee gee ee ne cr varchar(30) | YES Le absentees | varchar(30) | YES cory 5 rows in set (0.012 sec) (ots lekecmticet abs euses fl ee ee eee fem mad ire ned varehar(30) | YES ie attendance | varchar(30) | YES crs Pr eor ece eo) ee aces ect er ote ca) Sree merits) Prem Baie rie.}y Pree scfee ects wULL Pring ion Pest rn cure Bibliography e Computer Science with Sumita Arora e Computer Science with Preeti Arora ¢ www. wikipedia.org ° www.w3resource.com e Under the guidance of subject teacher

You might also like