Class 12 Ip Project
Class 12 Ip Project
CERTIFICATE
ACKNOWLEDGEMENT
ABOUT PYTHON
WHAT IS CSV FILE?
INTRODUCTION OF PROJECT
SOURCE CODE
OUTPUTS
GRAPH
BIBLIOGRAPHY
ABOUT PYTHON
HISTORY OF PYTHON
Python was conceived in the late 1980s[by Guido van Rossum
at Centrum Wiskunde & Informatics (CWI) in the Netherlands as
a successor to the ABC language (itself inspired by SETL),
capable of exception handling and interfacing with the Amoeba
operating system. Its implementation began in December
1989.(35] Van Rossum shouldered sole responsibility for the
project, as the lead developer, until July 12, 2018, when he
announced his permanent vacation responsibilities as Python's
Benevolent Dictator For Life, a title the Python community
bestowed upon him to reflect his long-term commitment as the
project's chief decision-maker. He now shares his leadership as
a member of a five person steering council.
What is CSV file?
A CSV is a comma-separated values file, which allows data to be
saved in a tabular format. CSVs look like a garden-variety
spreadsheet but with a .csv extension.
CSV files can be used with most any spreadsheet program, such
as Microsoft Excel or Google Spreadsheets. They differ from
other spreadsheet file types because you can only have a single
sheet in a file, they cannot save cell, column, or row. Also, you
cannot save formulas in this format.
Therefore proposed "Railway Reservation System" has been designed to automate the
process of railway for ticket reservation and back office activities. System can make the
daily activities efficient and providing the fast response.
OBJECTIVES
Our project introduces railway reservation system with an objective to make the
reservation system more efficient, easier and fast. This project explores how computer
technology can be used to solve the problem of user. The main objectives provided by
this software are as follows:
To enquire about availability of trains
To reserve and cancel their seats
To modify the information related to
To show all the reservation
To show the passenger name record(PNR)
Working
We have taken two CSV files namely CSVM.csv (Train Route) and CSVN.csv
(Reservation details).
With python pandas program and data from CSV files we have completed this
project.
LIMITATIONS OF EXISTING SYSTEM: -
Data redundancy:
It means that same data fields appear in many different files and often in different
formats. In manual system, it poses quite a big problem because the data has to be
maintained in large volumes but in our system, this problem can be overcome by
providing the condition that if the data entered is duplicate, it will not be entered,
otherwise, updating will take place.
3)New Reservation
6)QUIT''')
option=int(input("Select your option:"))
if option==1:
print()
print(pd.read_csv("C:/Documents/CSVM.csv"))
print()
sno=int(input("enter s.no"))
print()
train_no=int(input("enter train no."))
print()
train_name=input("enter train name")
print()
start=input("enter train start station")
print()
end=input("enter train end station")
print()
df.loc[sno,:]=[train_no,train_name,start,end]
writecsv(df)
print(' '*10,"processing...")
print()
print()
elif option==2:
print()
print(df)
print()
sno=int(input("enter s.no to be removed"))
print()
df.drop(sno,axis=0,inplace=True)
writecsv(df)
print('processing...')
print()
print()
print(df)
print()
print()
elif option==3:
print()
name=input("enter your name")
print()
age=int(input("enter your age"))
print()
way_from=input("enter way from station")
print()
way_to=input("enter way to station")
print()
pnr_no=random.randint(111111,999999)
fare=random.randint(500,1500)
conformation='y'
lf.loc[pnr_no,:]=[name,age,way_from,way_to,conformation,fare]
writcsv(lf)
print('processing...')
print()
print()
print(lf)
print()
print()
elif option==4:
print()
print(lf)
print()
print()
elif option==5:
print(' '*10,'*** |__| PNR_NO |__| ***')
print()
print(pd.Series(lf.index))
print()
print()
pnr_no=int(input("enter your pnr_no."))
print()
detail=lf.loc[pnr_no,:]
print()
print(' '*10,'Details related with this ',pnr_no,'is...')
print()
print()
print(detail)
print()
print()
else:
sys.exit()
enter=input('press enter:')
print()
print(' '*10,'reservation details...')
print()
print()
print(lf)
print()
print()
print(' '*10,'train details...')
print()
print()
print(df)
print()
print()
if(input('do u want ot continue y/n')=='n'):
break
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:1
enter s.no3
processing...
press enter:
reservation details...
train details...
train_no train_name start end
sno
4 65478.0 durg bilaspur DURG BHOPAL
5 52674.0 indore bilaspur durg bhopal
3 56432.0 Aurangabad Mumbai Mumbai Aurangabad
3)New Reservation
6)QUIT
Select your option:2
processing...
press enter:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:3
processing...
press enter:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:4
press enter:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:5
*** |__| PNR_NO |__| ***
0 536334
1 235443
2 435435
3 233233
4 865687
5 994536
6 373255
7 317941
8 129816
9 866898
Name: pnr_no, dtype: int64
name ashish
age 19
way_from raipur
way_to indore
conformation n
fare 874
Name: 235443, dtype: object
press enter:
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64
bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
================ RESTART: C:\python\Python38\ip project board.py
===============
.....welcome to Reservation online.....
3)New Reservation
6)QUIT
Select your option:6
>>>
BIBLIOGRAPHY