You are on page 1of 23

CERTFICATE

This is to certify that computer project titles by


successfully
"Data Management" has been
'A', Roll No:
completed byJogita Patro Of class XII

16. Under the Guidance of Mr. Niladri


Mukherjee

(Subject Teacher).

During the academic Year 2021-2022

Signature of External teacher Signature of Subiect Teacher


ACKNOWLEDGEMENT

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

Minimum memory - 4GB

2. SOFTWARE:

Operating System -Windows 7,8,10.


. Python IDLE

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:

Corrective Maintenance: When the program after


compilation shows error because of some unexpected
situations, untested areas such errors are fixed up by
Corrective maintenance.

Adaptive Maintenance: Changes in the environment in


which an information system operates may lead to system
management. To accommodate changing needs time to
time maintenance is done and is called Adaptive
maintenance.

Preventive Maintenance: lf possible the errors could be


anticipated before they actually occur; the maintenance is
called Preventive maintenance.

.Perfective Maintenance: In this rapidly


changing world,
information technology is the fastest
growing area. If the
existing system is maintained to keep tuned with the
new
features, new facilities, new
capabilities, it is said to be
Perfective maintenance.
FLOW CHART OF THE
PROGRAM
import mysql.comnector as mcon
import syss

con = moon.comnect{host="localhost",port="3306",user="root",passwd="root")

mycursor= con.cursor()
if con.is_connected():

print("MySql DataBase is connected Successfully.")

mycursor.execute("create database if not exists LOC"))

mycursor.execute("use LOC")

mycursor.executel"create table if not exists user \


(uname varchar(20) primary key,upwd
varchar(20)\
,utype char(5),ustatus char(5))")
Q- "insert into
userluname,upwd,utype) values (\ 'LOC\,I'LOC\,\'ST)"
#print(Q)
#mycursor.execute(Q)
con.commit()
at 1

while at = 3:

at+1

uid =input("Enter User Name:")


pwd input("Enter User Password: ")
status="'A'

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.")

print("Perform CRUD Operations.")

--°CHOICES

while True:

print"Input 'T' for Insertion a New Record.")


print("Input 'U' for Update an Existing Record.")
print("Input 'R' for Removal an Existing
Record.")
print("Input 'S' for Searching a Record.")
print("Input D' for Display All Records.")
print"Input 'E' for Exit the Program.")
ch input("Enter Your Option: ")

-TABLE CREATION*-

ifch== 'T or ch== 'i:


ins= "create table if not exists students(N
reg_num int{20) primary key, loc_sr_num integer NOT NULL, yr_pass_xi int{5) NOT
NULL
exam_cat char(5) NOT NULL,cand_name char(50) NOT
NOT NULL,\
NULL,mother_name char(50)

father_name char(50) NOT NULL,gender varchar(5),category1


varchar(5),\ varchar(5),minority
PwD_status varchar(20),mob_num bigint NOT NULL,email_id
varchar(50), aadhar_num bigint,\
sub_1 charf15),sub_2 char(15) NOT NULL,Sub_3
char(15) NOT NULL,\
sub_4 char(15) NOT NULLsub_5 char(15) NOT NULL,add_sub_6 char(15) NOT
NULL,\
int_grade_sub1 char(30), int_grade_sub2
char(30),int_grade_sub3 integer,
char(30)annual_income varchar(25),roll_num_of_equi_exam_passed
exam_of_equi_exam_passed char(20), board_of_equi _exam_passed
char(20),single_child char(5),\
migration_certificate char(5),adm_no integer,adm_date date)"
#printlins)

mycursor.execute(ins)

-*INSERTION OF RECORDS-

print("Insertion Operation.")

reg int(input("Enter student's registration_num: "))


locsr = intinput("Enter student'sloc_sr_num: "))

yrpassc11=intfinput("Enter student's year_passing_class11: ")


ecat input("Enter student'sexam_cat: ")
cname input("Enter student's Name: ")

mname = input("Enter student's mother's name: ")

fname = input("Enter student's father's name: ")

gender input("Enter student's gender: ")


cat= input"Enter student's category: ")
minor =input("Enter if student belongs to minority section(y/n): ")
pwdis input("Enter if student have disability (type of disability): ")
mnum
intfinput("Enterstudent's mobile_num:"))
email input("Enter student's email_id: ")
ad_num int(input("Enter student's addhar number: "))
=

s1 input("Enter subject1(compulsory language): ")


s2
input"Enter subject2: ")
$3 input("Enter subject3:")

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:")

adm_num =intfinput("Enter student's admission num:"))


adm_date = input("Enter student's admission date as (yYYy-mm-dd):")

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,

aadhar_num,sub_1,sub_2,sub_3,sub_4,sub_5, add_sub_6,int_grade_sub1,int _grade_s


ub2,int_grade_sub3,

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-

elif ch= 'U' or ch == 'u':

print("Updation of Record.")

reg = input("Enter Student's registration Number: ")

sn = input"Enter New student's Name: ")


Mother's Name: ")
mn input("Enter New student

Father's Name: ")


fn input("Enter New student
f,
students set cand_name
=
'{}', mother_name
"update
qry mn,fn,reg)
"W' where reg_num {l".format(sn,
=
=
father_name

mycursor.execute(qry)

con.commit()

Successfully.")
print "Record is updated

*DELETION-

elif ch 'R' or ch == 'r':

print("Removal of Record.")

registration Number: ")


reg= input("Enter Student's
= {}".format(reg)
from students where reg_num
qry= "delete

mycursor.executelqry)

con.commit()

print("Record is deleted Successfully.")

-*SEARCHING

elif ch == 'S' or ch == 's':

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)

for row in data:

printrow)

-*DISPLAY-

elif ch== 'D' or ch == 'd':

print("Display ALl Records.")

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("

for row in data:

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]))

elif ch= "E' or ch == 'e':

print("Exiting Program."
sys.exit(0)
else:

print("Wrong Input. Try Again!!")

else:

print("Login Failed")
if at 14:

print"Try Again")

else:

print("MySql DataBase Connection Failed.Terminating..."))


1.Table created successfully.
hataBase is cnnected
eT a e oc
3uccess fully.
Entei 3
-3aful ly.
rm CRUD Operat 1 cra.
nput '1' Inserticn a Fecord.
Iput t Lg cord.
input ''
Fen vel i n g ecor1.
eat cOrd.
Input D E Diplay Al Pecoz do.
Input 'E' for Exit the Frogram.
Etz our option:

MySQL 57 Commend ine Cie

al hoy teies.

sit 8.esec
FaeldIspe e, iDetaul Dtre

et
E
MSQL S7 Command ine iens

eld spe Defeslt Extra

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

STRUCTURE OF THE TABLE

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

Python 3.73 Steli


x Dbg Omos Wndo He
bject (additional) : Phe
name o2 internal grade subjectl: WE
nter aame of internal grade 3ubjeCtz: s s
Teme of internel grade subject3: PhE
er aT. Lal income of 3tudent 's parents: 2000000
3t d e r '3 rollnum of equivalent exam passed:3131456
* ezam or equivalent exam pas3ed:AISSE
b o a r d ot equivalent exam passed:CBSE
Jdent 13 3ingle girl child or not: NO
ation certif1cate ís required or not: YEs
GT 2aer: ' s admission nun:1478
3dent's admlssion date as (yYYy-mm-dd) :2008-12-12
e arted Success fully.
E Insertion a New Record.
Opdate an Existing Record.
Femoval an Existing Record .
Searchi ng e Fecord.
D : tisplay All Pecord: .
' ' t r Ez1t the Program.
E er Y r op1cn: D
D ley ALI hecoris.
1 N. f Fecord: 3
Subjectl Subject2 Subjects Subject4 Subject5 SuD ject
Nae MNate FNee
Math: PhysiC3 BIOlogy Ehe
1 /a Peefiaa Mano Engiish Hind
Goo PHE
Econcmi csH1atory English
HLna
Prat ina b h 6y
3eea ki.1 ) i t Englih Phys1cs ChemistryMath»
'T

' at an xi 1. 1 .

3. Updating record:
aina.

em val aEX1Sing Re1d.

lay All Retais.


FxI te P TAm

ittaton Numkel: l2676


Name: Nikita
MtheI ' : Na me: 3eema
ather Nae: Abhijit
te Suecesst aliy
3et1 a New Recozd.
F a a e a7 Exiating Record.
Fenc va an Existing Record
Ssarching a Record.
s a y All Records.
Ex1 tte PrcIram.

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é

Kalpa JIna tilek English I P ECO BST ACC PHE


FYIti Pratima AbhaY EconomicsHistory Engl1sh Geo Hind PHE
P:iti abhay English Physics ChemistryMath3 CS phe
Insert1n a New Record.
to: Dpdate an Existing Record.
f r Femcval an Ex1sting Record.
S'for Sear ching a Record.
'Dfor Display All
Records.
E f o :Exit the Program.
e Your Ogtion: R
m y a - f Fecerd.
E : udent 's registzation Number: 51
1 deleted Success fully.
n s e r t l o n a New Record.
U'
ior Update an Existing Record,
' f : r Femcval an Existing Record.
s t o r Searching a Record.
fer Display All
Records .
for Exit tie Program.
O cn: |

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

Ftefd hel Debug Optos Wdoe yhon 3.7.3 She

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: ||

6. Display all Records:


Ty help", "copyrigh". "cred.ts" cr "ii cense () * ior mcre 1nf rmai on.
PESTAPT: C: Usern \3ys 02\ Dest of Nalayax\LOC 2029.py ***
M at aEas 1
nhe. ed ccennt iullf.
ame
1 Passu.I1 c
fully

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.

Kalp Ina lak Engl1sh ECO EST PHE


erat ina honay Econonicsiistory English Seo Hind
ge Priti apnay Engl:sh Physics ChemistryMaths CS pne
apt'I' r In3ertion a New Fecord.
Inf.t'U' or Update an Existing Reco rd.
Ing ut ' ' for Remo val ar Existing Record.
Ing ut or Searching a Record.
Input 'D" for Display A1l Records.
InputE' or Ez1t the Progra.
Eter cur optin: |

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

Marno) Engliz Hndi Math FDyc B1logy Fne


at ira Ahay EcononlcaH.sturY English Ge
Abh:i Englst Phy hemiyNah
ut 1.i i.3u!tioh a New l e-uid.

I:ut ' fr Fen. val a: Exia:inz Feccr 1

' Sear ch.1n7 a P#cord.

' r E1the 71Am.

E7t1ng FI11 am.


RECORDS:

Cammand Cie

pess xitexn catcanid rase


sut
erersuti2 ant gade sub3 anual ine roilu, ofeuai_exan gasie e
roof eaui exar pessed sgle clo I migration certif date

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

ros set 0 sec)

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

Teatbock tor CeSE Class XI


202
Computer python
Science
With

Pythen FREETI ARORA

You might also like