cs final project
cs final project
LORDSINTERNATIONALSCHOOL
VILLUPURAM
COMPUTERSCIENCEINVESTIGATORY
COMPUTERSCIENCEINVESTIGATORYPROJECT
PROJECT
RAILWAYRESERVATIONSYSTEM
SUBMITTED BY :ATHITHYAV
ROLL NO :
SUBMITTED TO :BHARTHI.K,M.CA.,B.Ed.
B.Ed.
1
CERTIFICATEOFEXCELLENCE
This is to certify that the Computer Science project on the
topic“RAILWAYRESERVATIONSYSTEM”hasbeen
successfully completed by ‘V.ATHITHYA, of class XII
under the guidance of ‘Mrs. BHARATHI K’ in particular
fulfillment of the curriculum of the Central Board Of
Secondary Education leading to the award of annual
examination of the academic year2024-2025.
SignofInternalExaminer SignofExternalExaminer
SignofSeniorPrincipal SignofPrincipal
2
ACKNOWLEDGEMENT
In light of the completion of this project, I would like to
extend my heartfelt gratitude to everyone who has bestowed
their support towards the success of this project.
3
TABLEOFCONTENTS
SL.
TOPIC PAGE
NO
1 AIMOFTHEPROJECT 5
2 INTRODUCTION 6-13
3 CODING 14-30
REQUIRMENTS
4 31
5 BIBLIOGRAPHY 31
4
AIM
5
INTRODUCTION
6
ABOUTPYTHON
Actually, the list can go on and on. This defines the power of
Python as a programming language. Hence it becomes very
important to learn how to write to a file using python and then
read from the same file.
7
Python is an interpreter , object-oriented, high-level programming
language with dynamic semantics. Its high-level built in data
structures, combined with dynamic typing and dynamic binding,
make it very attractive for Rapid Application Development, as
well as for use as a scripting or glue language to connect existing
components together.
8
On the other hand, often the quickest way to debug a program is
to add a few print statements to the source: the fast edit-test-
debug cycle makes this simple approach very effective.
Hence when are you about to handle such situations, the role of
files will come into the picture.
Python too supports file handling and allows users to handle files
i.e., to read and write files, along with many other file handling
options, to operate on files. The concept of file handling has
stretched over various other languages, but the implementation is
either complicated or lengthy, but alike other concepts of Python,
this concept here is also easy and short. Python treats file
differently as text or binary and this is important. Each line of
code includes a sequence of characters and they form text file.
Each line of a file is terminated with a special character, called
the EOL or End of Line characters like comma {,} or newline
character. It ends the current line and tells the interpreter a new
one has begun. Let’s start withReadingandWritingfiles.
Workingofopen()function:
10
We use open () function in Python to open a file in read or write
mode. As explained above, open ( ) will return a file object. To
return a file object we use open () function along with two
arguments, that accepts file name and the mode, whether to read
or write. So, the syntax being: open (filename, mode). There are
three kinds of mode, that Python provides and how files can be
opened:
One must keep in mind that the mode argument is not mandatory.
If not passed, then Python will assume it to be “r by default.
There are also various other functions that help to manipulate the
files and its contents. One can explore various other functions in
Python Docs.
11
ABOUT MODULES
We can define our most used functions in a module and import it,
instead of copying their definitions into different programs.
We can import the definitions in side a module to another module
or the interactive interpreter in Python.
We use the import key word to do this.
1. Division of development
2. Increases read ability of program
3. Programming errors can easily be detected
4. Allows reuse of code
5. Improves manageability
6. Collaboration in projects made efficient and easy.
12
ABOUTINDIANRAILWAY
Due to the huge magnitude of the spread of IR, the system cannot
sustain without computers, which have programs built for its
smooth functioning. This project deals with the Indian Railways
and presents a system to digitize the system.
13
CODING
MODULESUSED
14
15
16
17
18
19
20
MAINCODEUSED
21
22
23
24
25
26
27
28
29
30
REQUIREMENTS
BIBILIOGRAPHY
Madeby:
M.I.APSAR
V.ATHITHYA
V.MATHANBABU
31
32