Professional Documents
Culture Documents
(Subject Teacher).
and thanks to MR
I extend my appreciation
MUKHERJEE. It was his
NILADRI
constant inspiration
that
unfailing pushing and
this work could take the present shape.
into realities is easier
Turning aspirations
when people are supportive of your efforts.
Among such persons are my parents to whom
I am deeply indebted for the positive feedback
regarding contribution to my work and for
their unfailing steps and ungrudging help at
every step in this project.
Jogita Patro
Class: XII-A
E
LO
SYSTEM REOUIREMENTS
1. HARDWARE:
ProcesSor
. Keyboard
2. SOFTWARE:
MYSQL
MAINTENANCE
modifications in
Programming maintenance refers to the
meet
the program. After it has been completed, in order to
that
changing requirement or to take care of the errors
shown up. There are four types of maintenance:
con = moon.comnect{host="localhost",port="3306",user="root",passwd="root")
mycursor= con.cursor()
if con.is_connected():
mycursor.execute("use LOC")
while at = 3:
at+1
mycursor.execute("select from user where uname = "{f' and upwd = '{}' and
ustatus="'".formatfuid,pwd,status))
data mycursor.fetchone()
count mycursor.rowcount
#printcount)
ifcount==1:
print("Login Successfully.")
--°CHOICES
while True:
-TABLE CREATION*-
mycursor.execute(ins)
-*INSERTION OF RECORDS-
print("Insertion Operation.")
s4 =
input("Enter subject4:")
sS=input("Enter subject5:")
s6 input("Enter
subject6(additional): ")
intsub1= input("Enter name of internal grade subject1: ")
intsub2 input("Enter name of internal grade subject2: ")
intsub3 input("Enter name of internal grade subject3: ")
aninc =
intfinput("Enter annual income of student's parents: "))
eexrnum =intfinput("Enter student's rollnum of equivalent exam passed:"))
eexam= input("Enter student's exam ofequivalent exam passed:")
eexboard =input("Enter student's board of equivalent exam passed:")
sch input("Enter if student is single girl child or not:")
mgcr = input("Enter if migration certificate is required or not:")
q= "insertinto students
(regnum,loc_sr_num,yr_pass_xi,exam_cat,cand_name,\
mother_name,father_name,gender,.category1,minority,PwD_status,mob_num,email
id,
annualincome,rollnum_of_equi_exam_passed,exam_of_equi_exam_passed, board
of_equi exam_passed,A
single_child, migration_certificate,adm_no,adm_date) values (}{.T'N
".formatregJocsr,yrpassc11,ecat,cname.mname,fname,gender,.cat.minor,pwdis,mnu
m.email,ad_num,s1,s2s3,54,s5,s6,intsub1,intsub2,intsub3,aninc.eexrnum,eexam,eex
board,sch,mgcradm_numadm_date)
mycursor.execute(q)
con.commit()
print("Record is inserted Successfully.")
--°UPDATION-
print("Updation of Record.")
mycursor.execute(qry)
con.commit()
Successfully.")
print "Record is updated
*DELETION-
print("Removal of Record.")
mycursor.executelqry)
con.commit()
-*SEARCHING
print("Searching Operation.")
reg= input("EnterStudent's registration Number: ")
qry= "select from students where reg_num = {} ".formatreg)
#print(qry)
mycursor.executelqry)
print("Record is found Successfully.")
data mycursor.fetchonel)
count mycursor.rowcount
print("Total No. of Record:",count)
printrow)
-*DISPLAY-
qry "select *
from students"
mycursor.execute(qry)
data = mycursor.fetchali()
count mycursor.rowcount
print("Total No. of Record: ",count)
print("(0:<9sH1:9s{2:«9sH3:«9sH4:<9sH5:«95}H6:<9s}H7:<9sH8:<9sH9:<9sl".format
SL.No',Name, MName" FName',Subjectl',Subject2', Subject3, Subject4",Subjects,
Subject6'))
print("
print("{0:<9sH1:<9s}{2:<9sH3:<9sH4:<9sHS:<9sH6:<95H7:«9sH8:<9sH9:<9s}".format(
str(row{1]),rowj4].row[51,row[6],row[14],row[15],row[16],row[17].row[18),row[19]))
print("Exiting Program."
sys.exit(0)
else:
else:
print("Login Failed")
if at 14:
print"Try Again")
else:
al hoy teies.
sit 8.esec
FaeldIspe e, iDetaul Dtre
et
E
MSQL S7 Command ine iens
loc sr nu iet13
iet(
Pxat cat
caran ohar(50) NALL
her(S8)
father nne har 58)
Fe er erchart5)VES NL
ercher (S VES
ty varster(5)YES
PO statis warcher(2e) VES
gite)VES
ema) d archer(58)YES
ae er u gint 2e YES NULL
char(15) VES
char(15) AULL bjecté6
art13) ULL
chari15)
har(15)
asdsit hari15) WLL
intgrase subl che( 34) VES
t r e d e sub? har(34) YES
tgrade_ cuh? char(30) YES
uircome varchar(25) YES NULL
r o l l ru of Paul exen p e s s e d i i t ( l 1
YES
exan of equa exam Jassed har(20) YES
bcardef eui exan passed char(20) VES
single child chartS) VES ULL
igration certs char(5) VES
int (11) YES
adncate dete YES ULL
2. Insertion of record:
I tDertian a Ne
pdare anz1n
rd.
ay
.
7 1 t r a t i on n um: 1111
C _aurt: 2004
year_paas in g_claanll : 201
exan cati F
Name R1ya
t Y I s nane: Feema
arhe r's name : Manoj
Jede i: F
CategOry: gen
ant bGl ongs to mi.CIi-Y 3 e c t i o n (y/n): n
ent have di3ab11ity (ype of di1sability): n
ob1le_nun: 900B007001
emeilid: rya¬gma1l.com
addhar aumber: 12345¬789034
(compulsory language): English
2: indi
3: Maths
ect4: Phy>1ccs
5:Biology
c E (adaitional) : Phe
ter 7hame f i n t e . a l arade sub iectl: NE
' at an xi 1. 1 .
3. Updating record:
aina.
ece
MName FName Subjectl Subjec:2 Subject3 Subject4 Subject5 Subjecte
Pretima Abhay EconomicsHistory English Geo Hindi PHE
3eema Abhijit English Physics ChemistryMaths CS phe
sertiOn a New Record.
ate an Exis*ing Record.
4. Deleting a record:
yNen 3.73 She
eb Cptens Aindw
f Removal an
Exiaing Recrd.
ea: chihg Reci rd.
fr 1splay Al Rece ras.
f Ex1 the ?ioCia.
ur Oy tion: DD
ALI Records.
al No. of Fe cord:
.N Name MName Nane Sub jecti 3utject2 sub ject 3 3ub je ct4 3ulject5 Sub)ecté
5. Searching a record:
e 39
2Dateßa 3e 3
s Nar .ecte d Succesofully.
CC
e1
Passw: r : l o c
3uccesaful ly.
n a New Fecard.
pda
" an Exist nG Record.
r eno7el a Lxising record.
archi ng Reco rd.
input DIplay ALI Fe Cords
Taput E' forZxi the rcgrer
Enter Yuur of1on:
Se8rcning operaticn.
Enter Student ' s regi
stza.aon N umbez:
RecCTd 1 tound 3uccesatul 123465
Total N. f Record: 1
ly.
2346
PI1tl
Pratima
Abhay
34
hu Jna.l.con
2345
np gma1l.com
24356
Economi cs
HsTory
English
Geo
HLndi
PHE
phe
600000
3131224
AISSE
CBSE
Y
1309
2018-07-04
I nput 'I' for Insertlon a New Record.
I npu 'g' for Update an Existing Record.
Input 'P' fo: Femoval an xisting Fecord.
Input 'S" fo Search1ng a Record.
Input 'D' for Display All
Pecords
Input E tor Ex1t the PIOgYam.
Eater Tour Option: ||
Inset wFecotd.
Update a Exioting Record.
Peme l a xisting ecord,
Sear ing a Fecord.
DSiayhLl Fecora,
for Exit he Progran.
i a yLI Pecorda.
tal N hec.rd: 3
Name MIName TName Subject 1 3ubject2 Subect 3 Suhject4 Sukjec:s Supject.
7. Exit:
PYTn 313 Set
ie Pes ebg n Windce Heo
Eertuden: 'z board of equivalen: exam paszed: CBSE
Ler t 3tudernt i3 single g i l child or not:NO
T 1 2 n1gration CPTti1cate i3 required or not: YEs
E e r 3tudent ' s adm1s3ion m:1473
Encer 3tudent 's admi33ion date as (yyYY-rn-dd) :2008-12-12
Pecord 2 inserted Sucoe33iully.
T ' T f o r Insarti on a Now Record.
'T' 1or Update a Exis.irg Record.
ut
ut '' for Femcval an Ex13ting Record.
fut c f r Searching a Pecord.
or Diaplay All Records.
It E or Lzit the Frogran.
uryion: D
a AL Pecords.
N. Fe::i:
MLAn FName 3ubject l 3ubject2 ub)ec:3 Surject 4 Subj-cr Suhjecte
Cammand Cie
2891
Mario
2 2453799034 English Hindi Maths yss iology
315745tA
YES
1234 2819F Prit1 Pratima nbay
14/3 288-12-14
2345 peeme zi.co 24356 1
Econom ics History English aeo
phe 3131224 ATS
9SE 113891 2818 47-94 1
2019 ikito seema Abhi it
60915220471 kanikobgme il.con123498764567 Enelisth P h y s i s Chenistry Aaths (5
331454 AS
bse
12343 2019-84 e
LaC
Bibliography
1, https://www.qoogle.com
2. https://stackoverflow.com
3. https://docs.pyhton.org/3/
4. https://www.tutorialspoint.com/python
5. httpS://www.slideshares.com
6. www.youtube.com
Google YouTube
slideshare