Docsity

Software Development Life Cycle (SDLC) Project Report: Train Management System, Summaries of Physics

Toggle sidebar
bg1
St. Thomas Public School, Dipka
PROJECT REPORT ON
TRAIN MANAGEMENT SYSTEM
A Project report Submitted
In Partial Fulfillment of the Requirements
In
COMPUTER SCIENCE (083)
By:
1. Khushi Dewangan -XII A -ROLL NO:12616117
2. Navjivan Kumar Mehta -XII A -ROLL NO:12616119
3. Prashank Sahu -XII A -ROLL NO:12616120
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18

Partial preview of the text

Download Software Development Life Cycle (SDLC) Project Report: Train Management System and more Summaries Physics in PDF only on Docsity!

St. Thomas Public School, Dipka

PROJECT REPORT ON

TRAIN MANAGEMENT SYSTEM

A Project report Submitted In Partial Fulfillment of the Requirements In COMPUTER SCIENCE (083)

By:

  1. Khushi Dewangan - XII A - ROLL NO: 12616117
  2. Navjivan Kumar Mehta - XII A - ROLL NO:
  3. Prashank Sahu - XII A - ROLL NO:

UNDERTAKING

We declare that the work presented in this project titled "TRAIN MANAGEMENT SYSTEM", submitted to Mr. John Thomas TGT Computer Science ST. THOMAS PUBLIC SCHOOL, DIPKA for the award of the CBSE-AISSE class XII certificate. We have not plagiarized or submitted the same work for the award of any other examination. In case this undertaking is found incorrect, we accept that our Certificates may be unconditionally withdrawn. MARCH, 202 2 Place: ST. THOMAS PUBLIC SCHOOL, DIPKA

**1. Khushi Dewangan - XII A - ROLL NO:

  1. Navjivan Kumar Mehta - XII A - ROLL NO:
  2. Prashank Sahu - XII A - ROLL NO:**

ACKNOWLEDGEMENT

I express my sincere gratitude to Rev. Siju Robert, Principal of St. Thomas Public School, Pragati Nagar, Dipka, Korba, Chhattisgarh. We are deeply indebted to our mentor Mr. John Thomas. We futher thank to all the staff members of St. Thomas Public School, Dipka. We owe our sincere gratitude towards St. Thomas Public School. Our heartfelt thanks to CBSE. We also express our deepest gratitude to our parents. Finally, we would like to wind up by paying our heartfelt thanks to all our near and dear ones.

**1. Khushi Dewangan - XII A - ROLL NO:

  1. Navjivan Kumar Mehta - XII A - ROLL NO:
  2. Prashank Sahu - XII A - ROLL NO:**

CONTENTS

  1. Software Development Life Cycle
  2. Theoretical Background
  3. Introduction
  4. System Requirement of the Project
  5. System Design and Development
  6. Source Code 7.Sample Output
  7. Bibliography

The following figure is a graphical representation of the various stages of a typical SDLC. A typical Software Development Life Cycle consists of the following stages – Stage 1: Planning and Requirement Analysis Requirement analysis is the most important and fundamental stage in SDLC. It is performed by the senior members of the team with inputs from the customer, the sales department, market surveys and domain experts in the industry. This information is then used to plan the basic project approach and to conduct product feasibility study in the economical, operational and technical areas. Planning for the quality assurance requirements and identification of the risks associated with the project is also done in the planning stage. The outcome of the technical feasibility study is to define the various technical approaches that can be followed to implement the project successfully with minimum risks.

Stage 2: Defining Requirements Once the requirement analysis is done the next step is to clearly define and document the product requirements and get them approved from the customer or the market analysts. This is done through an SRS (Software Requirement Specification) document which consists of all the product requirements to be designed and developed during the project life cycle. Stage 3: Designing the Product Architecture SRS is the reference for product architects to come out with the best architecture for the product to be developed. Based on the requirements specified in SRS, usually more than one design approach for the product architecture is proposed and documented in a DDS - Design Document Specification. This DDS is reviewed by all the important stakeholders and based on various parameters as risk assessment, product robustness, design modularity, budget and time constraints, the best design approach is selected for the product. A design approach clearly defines all the architectural modules of the product along with its communication and data flow representation with the external and third party modules (if any). The internal design of all the modules of the proposed architecture should be clearly defined with the minutest of the details in DDS. Stage 4: Building or Developing the Product In this stage of SDLC the actual development starts and the product is built. The programming code is generated as per DDS during this stage. If the design is performed in a detailed and

Theoretical Background

Database A database is a separate application that stores a collection of data. Each database has one or more distinct APIs for creating, accessing, managing, searching and replicating the data it holds. Other kinds of data stores can also be used, such as files on the file system or large hash tables in memory but data fetching and writing would not be so fast and easy with those type of systems. Nowadays, we use relational database management systems (RDBMS) to store and manage huge volume of data. This is called relational database because all the data is stored into different tables and relations are established using primary keys or other keys known as Foreign Keys. A Relational DataBase Management System (RDBMS) is a software that −

  • Enables you to implement a database with tables, columns and indexes.
  • Guarantees the Referential Integrity between rows of various tables.
  • Updates the indexes automatically.
  • Interprets an SQL query and combines information from various tables.

RDBMS Terminology Before we proceed to explain the MySQL database system, let us revise a few definitions related to the database.

  • Database − A database is a collection of tables, with related data.
  • Table − A table is a matrix with data. A table in a database looks like a simple spreadsheet.
  • Column − One column (data element) contains data of one and the same kind, for example the column postcode.
  • Row − A row (= tuple, entry or record) is a group of related data, for example the data of one subscription.
  • Redundancy − Storing data twice, redundantly to make the system faster.
  • Primary Key − A primary key is unique. A key value can not occur twice in one table. With a key, you can only find one row.
  • Foreign Key − A foreign key is the linking pin between two tables.
  • Compound Key − A compound key (composite key) is a key that consists of multiple columns, because one column is not sufficiently unique.
  • Index − An index in a database resembles an index at the back of a book.
  • Referential Integrity − Referential Integrity makes sure that a foreign key value always points to an existing row.
➢ PYTHON

What is Python? Python is a popular programming language. It was created by Guido van Rossum, and released in 1991. It is used for:

  • web development (server-side),
  • software development,
  • mathematics,
  • system scripting. What can Python do?
  • Python can be used on a server to create web applications.
  • Python can be used alongside software to create workflows.
  • Python can connect to database systems. It can also read and modify files.
  • Python can be used to handle big data and perform complex mathematics.
  • Python can be used for rapid prototyping, or for production- ready software development. Why Python?
  • Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
  • Python has a simple syntax similar to the English language.
  • Python has syntax that allows developers to write programs with fewer lines than some other programming languages.
  • Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
  • Python can be treated in a procedural way, an object-oriented way or a functional way.

System Requirements of the Project Recommended System Requirements

  • Processors : Intel® Core™ i3 processor 4300M at 2. GHz.
  • Disk space : 2 to 4 GB.
  • Operating systems : Windows® 10, MACOS, and UBUNTU.
  • Python Versions : 3.X.X or Higher. Minimum System Requirements
  • Processor: Intel Atom® processor or Intel® Core™ i processor.
  • Disk space: 1 GB.
  • Operating systems: Windows 7 or later, MACOS, and UBUNTU.
  • Python Versions: 2.7.X, 3.6.X.

System Design and Development

Database

  • The main objective of this project is to create a database which will act as a central database for railways.
  • The database which is created for this project is named as central_railways.
  • The table which we have created is named as train_details.This table will have the data of every train that are currently runni ng

Source Code #Defining the Function for searching Trains def train_search(): print("(NOTE- While searching for trains, Please Start with Capital Letter.)") print("[--FOR EXAMPLE:- 'Your Origin: Bilaspur']") print() print() #Provide the origin station user_input=input("Your Origin: ") #Provide the destination station user_input1=input("Your Destination: ") #Query to fetch trains between origin and destination query1= "SELECT * FROM train_details WHERE origin='{}' AND destination='{}' ".format(user_input,user_input1) cur.execute(query1) records=cur.fetchall() if len(records)==0: print("-----Enter Valid - [Origin/Destination]-----") #Provide the Day of Travel else: user_input2=input("Day On Which You Wish to Travel: ")

for row in records: if user_input2==row[6] or user_input2==row[7] or user_input2==row[8] or user_input2==row[9] or user_input2==row[10] or user_input2==row[11] or user_input2==row[12]: print("Total Number of Trains Found: ",cur.rowcount ) print("Train Number: ",row[0]) print("Train Name: ",row[1]) print("Origin Station: ",row[2]) print("Destination Station: ",row[3]) print("Departure Time: ",row[4]) print("Destination Arrival Time: ",row[5] ) print("On-time Efficiency: ",row[13]) print("Meal on Board: ",row[22]) else: print("No Trains Available!!.. Try some Other Options [Origin/Destination/Day] ") break user_input3=input("In which Coach would you like to travell(Sleeper/3AC/2AC/1AC)? : ") if user_input3=='Sleeper': print("Available SL seats :",row[14]) print("Fare for SL seat :",row[18])