Professional Documents
Culture Documents
Computer Project
Computer Project
Computer Project
INTRODUCTION.
The railway reserva on system is basically a data-base based project
done with help of python language. This project is very use full for the
people to book or cancel train ckets by si ng at home with one cell
phone in their hand This project can be modified for various
reserva ons.
OBJECTIVES OF THE PROJECT.
The objec ve of this project is to let the students apply the
programming knowledge into a real-world situa on/problem and
exposed the students how programming skills helps in developing a
good so ware
Write programs u lizing modem so ware tools.
We would also like to show our gra tude to the Pijush Kan Sarkar for
sharing their pearls of wisdom with us during the course of this
research, and we thank 3" anonymous" reviewers for their insights. We
are also immensely grateful for their comments on an earlirer version
of the manuscript, although any errors are our own and should not
tarnish the reputa ons of these esteemed persons.
Signature of Teacher
Signature of Examiner
Signature of Principal
Gandhigram, Agartala
Tripura (west),PIN – 799012
CBSE AFFILIATED SCHOOL
SESSION : 2023 -24
SUBJECT : COMPUTER ASSIGNMENT
01 ACKNOWLEDGEMENT 1
02 INTRODUCTION 2
04 PROPOSED SYSYTEM 3
07 SOURCE CODE 6 – 12
08 OUTPUT 12 – 13
11 BIBLIOGRAPHY 16
PROPOSED SYSTEM
One has to use the data management so ware that has been an ascent
in atomiza on various organisa ons. Many so ware products working
are now in markets, which have helped in making the organiza ons
work easier and efficiently. Data management ini ally had to maintain
a lot of ledgers and a lot of paper work has to be done but now
so ware product on this organiza on has made their work faster and
easier. Now only this so ware has to be loaded on the computer and
work can be done
Planning
Support Analysis
Implementation Design
cur conn.cursor()
i-100
def railsmenu():
print("Railway Reserva on")
print("1.Train Detail")
print("2.Reserva on of Ticket")
print("3.Cancella on of Ticket")
print("4.Display PNR status")
print("5.Quit")
print("6.For adding in train detal"]
d=strfinput("Enter train_no:"))
I.append(d)
I1.append(d)
I2.append(d)
e="select star ng point,des na on from train detail where train_no-%
cur.execute(e,II)
f-cur.fetchall()
w=f[0]
x=w[0]
tw[1]
print(x)
print(t)
I.append(x)
I.append(t)
g=insert into
l5=13+11
l6=14+11
if mn="y":
print("your cket is confirmed")
print("in case of cancella on your unique id is "i-1)
mysql="update user_informa on set reserva on %s where train_no=%
cur.execute(mysql,l5)
conn.commit()
print('your cket is confirmed)
elif mn==”n”
print (your cket is not reserved")
mysql"update user informa on set reserva ons where train nou
eur execute(mysql.i6)
conn.commit
else:
print("wrong op on)
print(railsmenu])
print(railsmenu()
def cancel():
l=[]
q="not reserved"
l.append(q)
a=int(input("Enter Value Of Your Unique_id Provided:"))
l.append(a)
b="update user_informa on set reserva ons where unique_id=%s"
cur.execute(b.l)
conn.commit()
print("YOUR TICKET IS CANCELLED")
railsmenu()
def displayPNR():
l=[]
a=int(input("Enter Value Of Your Unique_id Provided:"}}
l.append(a)
sql="select * from user_informa on where unique_id=%s"
cur.execute(sql,1)
f=cur.fetchall[]
print("your current reserva on status is:"f
railsmenu()
def train)
print("Train Details)
ch= "y "
while (ch== "y ")
l=[]
thum int(input("Enter Train, no: ")
l.append(tnum)
ael-float(input("Enter Train cost: ")
l.append(ac1]
ac2-str(input("Enter Star ng point Of Train:"))
l.append(ac2)
ac3 str(input("Enter train's des na on:"))
l.append(ac3)
Slp=str(input("Enter via:"}}
l.append(slp)
e=str(input("Enter me of departure of train:"}}
l.append(e)
F=str(input("Enter the date of train board:"}}
l.append()
sql="insert into train_detail values(%s,%,%s, %,%s, %s,%s}"
print(sql.1)
cur.execute(sql,l)
conn.commit()
print("inser on completed")
print("Do you want to insert more train Detail")
ch-input("Enter y/n")
print("\n' *10)
print("=====================================================
=======")
railsmenu()
#def exit():
#return
print(railsmenu())
MYSQL tables used in project:
use train;