Computer Science Project
Computer Science Project
Computer Science Project
UTTARKASHI
SESSION 2021-22
2. Acknowledgements
3. Declaration
4. Aim
7. Requirements
8. Bibliography
CERTIFICATE
This is certify that SACHIN AND SHRIYAM
Have successfully completed this project report
entitled
“RAILWAY RESERVATION SYSTEM”
During the academic year 2021-2022 partial
fulfillment of
C.S. Practical Examination conducted by
CBSE.
“RAILWAY RESERVATION
SYSTEM”
Is prepared by us,
under the supervision
of our subject teacher
For the partial fulfillment of
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.
Python is an interpreted, 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.
Hence when you about to handle such situations, the role of files
are 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 with Reading and Writing files.
“ r “, for reading.
“ w “, for writing.
“ a “, for appending.
“ r+ “, for both reading and writing
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.
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 inside a module to another module
or the interactive interpreter in Python.
We use the import keyword to do this.
1. Division of development
2. Increases readability 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.
ABOUT INDIAN RAILWAY
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.
CODING
MODULES USED
MAIN CODE USED
REQUIREMENTS
BIBILIOGRAPHY