0% found this document useful (0 votes)
15 views

Python

Uploaded by

Yash Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views

Python

Uploaded by

Yash Patil
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Shri krishna education and cultural mandal’s

SHRI GULABRAO DEOKAR POLYTECHNIC


Gat no.26, Mohadi Shivar, Shirsoli Road, Jalgaon425001

Micro Project on :-

CREATE UNRESERVED TRAIN TICKET SYSTEM


Is submitted as per I scheme curriculum and the requirement
for the program: Diploma in computer Engineering

Course → Programming with Python

Prof. Mr. S. R. Shaikh


(Guide)

Sr.No Group member name Roll no


1 Rohinee Nana Chandele 25
2 Rahul Vikas Mali 26
3 Sanjana Pravin Jadhav 27
4 Jyoti Ramesh Ghodeswar 28
Shri krishna Educational And Cultural Mandal’s
Shri Gulabrao Deokar Polytechnic.
Gat no.26, mohadi shivar, shirsoli road, Jalgaon-425001

Certificate

This is to certify the students:


1) Rohinee Nana Chandele
2) Rahul Vikas Mali
3) Sanjana Pravin Jadhav
4) Jyoti Ramesh Ghodeswar

Have successfully presented the micro project on “create unreserved train


ticket system.” And submitted in satisfactory manner.

The micro project is submitted in partial fulfillment for the third year (Fifth Sem)
diploma in Computer Engineering, affiliated to Maharashtra State Board of
Technical Education, for Academic Year 2023-2024.

(Guide) (H.O.D.) (Principal )


Sr.no Topic Page no

Part A

1.0 Introduction 4

2.0 Aim of Project 4

3.0 Action Plan 5

4.0 Course Outcome Integrated 5

5.0 Learning Outcomes 5

6.0 Device Specifications 5

Part B

1.0 Brief Introduction 6

2.0 Understanding train reservation 7


system
3.0 Actual procedure followed 8

4.0 Proposed implementation 10

5.0 Working of present system 11

6.0 Source code 12

7.0 Screen shot 14

8.0 Conclusion 15

9.0 References 15
PART – A

• Introduction–

The Unreserved Train Ticket System is a modern solution aimed at simplifying the
ticketing process for train travelers. Unlike traditional reservation-based systems, it
allows passengers to purchase tickets on the spot, without prior booking. Leveraging
digital platforms and real-time data, this system offers instant access to seat
availability, enabling travelers to secure tickets quickly and conveniently. By
enhancing accessibility and streamlining operations, the Unreserved Train Ticket
System aims to revolutionize the way people experience train travel, making it more
convenient and hassle-free for all.

• Aim of Micro Project –

‘’The aim of the Unreserved Train Ticket System is to streamline ticketing processes, provide
real-time seat availability, enhance passenger experience, improve operational efficiency,
and ensure accessibility, thereby revolutionizing the convenience and accessibility of train
travel.’’

• Resources required –

Sr.no Name of Specification Quantity


resource
1 Operating Windows 11 1
system
2 Computer AMD Ryzen 7, 1
system 5000 series,
8GB RAM

3 Development MS Word 1
software
Action Plan –

Sr. Detail of Activity Plan start Plan Group member


no date finish name
date
1) Analysis of program Rohinee
chandele
Show project to
2) Guide and Rohinee
modifications chandele

3) Deciding role and Rahul


responsibility of Mali
every group member

4) Preparation and Jyoti Ghodeswar


collection of
information
required for project

5) Designing of project Sanjana Jadhav

6) Making final project Sanjana Jadhav

Device Specifications:
Device name - Sanjana
Processor - AMD Ryzen 7 5825U with Radeon Graphics 2.00 GHz
Installed RAM - 8.00 GB (7.35 GB usable)
Device ID - 1FFF6026-F1DE-4530-B014-7015685AEB64xx
Product ID - 00342-42606-12044-AAOEMxx
System type - 64-bit operating system, x64-based processor
Part B
• Brief Explanation
In today's fast-paced world, efficient transportation systems are essential for
connecting people and facilitating smooth journeys. Among these, the railway
network stands as a cornerstone, offering a reliable mode of transport for millions
of commuters and travelers worldwide. However, traditional reservation-based
ticketing systems can sometimes pose challenges, especially for those who
require spontaneous travel arrangements or face difficulties securing tickets due
to high demand.
To address these issues and enhance the accessibility and convenience of train
travel, this project proposes the development of an Unreserved Train Ticket
System. Unlike conventional reservation systems that require travelers to book
tickets in advance, this system aims to streamline the process by enabling
passengers to purchase tickets on the spot, without prior reservation.
The Unreserved Train Ticket System will leverage modern technology to provide
users with a seamless and efficient ticketing experience. By harnessing the power
of digital platforms and real-time data, passengers will be able to check seat
availability, select their preferred seats, and complete ticket purchases instantly,
thereby eliminating the need for lengthy queues or advance planning.
This project not only aims to simplify the ticketing process for travelers but also
seeks to enhance operational efficiency for railway authorities. By automating
ticket sales and optimizing seat allocation, the system can help reduce congestion,
improve passenger flow, and enhance overall service quality.
Moreover, the Unreserved Train Ticket System will be designed with a user-
centric approach, ensuring accessibility and ease of use for passengers of all
backgrounds and abilities. Through intuitive interfaces, secure payment
gateways, and robust backend infrastructure, the system will strive to deliver a
hassle-free ticketing experience that meets the diverse needs of modern travelers.
In summary, this project endeavors to revolutionize the way train tickets are
purchased and accessed, ushering in a new era of convenience and flexibility in
rail travel. By harnessing technology to create an efficient and user-friendly
ticketing solution, the Unreserved Train Ticket System aims to enhance the
accessibility, convenience, and overall experience of train travel for passengers
worldwide.
❖ To proceed with your project on creating an Unreserved Train Ticket
System, you'll need various pieces of information and resources. Here's a
comprehensive list to guide you:

• Understanding of Train Ticketing Systems:


Research existing train ticketing systems to understand their functionalities, user interfaces, and
operational processes. Study the challenges and limitations of traditional reservation-based systems to
identify areas for improvement.
• Technological Requirements:
Decide on the technology stack for developing the system, including programming languages,
frameworks, and databases.Research modern web development practices, mobile app development (if
applicable), and APIs for integrating payment gateways.

• User Requirements:
Conduct surveys or interviews with potential users to gather insights into their preferences, needs, and
pain points related to train ticket booking. Identify user personas and create user stories to guide the
design and development process.

• Real-Time Data Integration:


Explore methods for integrating real-time data feeds from railway systems to provide users with
accurate seat availability information. Investigate APIs or data sources provided by railway authorities
or third-party vendors for accessing train schedules, seat maps, and ticket availability.

• Payment Gateway Integration:


Research different payment gateways and choose one that supports secure online transactions and meets
the requirements of your system. Understand the integration process and any fees associated with using
the payment gateway's services.

• Security and Privacy Considerations:


Learn about best practices for securing user data, handling payment information securely, and
protecting the system from potential security threats. Research data privacy regulations and ensure
compliance with relevant laws and standards.

• System Architecture and Design:


Design the architecture of the Unreserved Train Ticket System, including the frontend, backend,
database, and any external integrations. Create wireframes or mockups to visualize the user interface
and user interactions.

• Development Tools and Resources:


Explore development tools, libraries, and frameworks that can accelerate the development process and
improve code quality. Utilize version control systems (e.g., Git) to manage project code and collaborate
with team members if applicable.

• Testing and Quality Assurance:


Plan testing strategies, including unit testing, integration testing, and user acceptance testing, to ensure
the reliability and functionality of the system. Explore automated testing tools and frameworks to
streamline the testing process.
• Documentation and Reporting:
Document the project requirements, design decisions, implementation details, and user manuals for
future reference. Prepare progress reports or presentations to communicate project updates and
milestones to stakeholders.
• Project Management:
Consider using project management methodologies such as Agile or Scrum to organize tasks, track
progress, and prioritize features. Use project management tools like Jira, Trello, or Asana to manage
project tasks and workflows. By gathering this information and utilizing relevant resources, you'll be
well-equipped to undertake the development of your Unreserved Train Ticket System effectively.

• Actual Procedure Followed;


Requirement Analysis:
Gather and analyze requirements from stakeholders, including passengers, railway authorities, and
system administrators. Define the scope of the project, including key features, functionalities, and
constraints.

System Design:
Design the architecture of the system, including frontend, backend, and database components. Create
wireframes or mockups to visualize the user interface and user interactions. Decide on the technology
stack, frameworks, and tools to be used for development.

Database Design:
Design the database schema based on the identified entities and relationships. Create tables, define
constraints, and establish relationships between tables. Optimize the database design for performance
and scalability.

Backend Development:
Develop the backend logic for handling user authentication, ticket booking, seat allocation, and payment
processing. Implement APIs for communication between the frontend and backend components. Write
unit tests to ensure the correctness and reliability of backend functionalities.

Frontend Development:
Develop the user interface for passengers to interact with the system. Implement features such as train
search, seat selection, ticket booking, and payment processing. Ensure the frontend is responsive,
accessible, and compatible with different devices and browsers.

Integration Testing:
Integrate the frontend and backend components to test end-to-end functionality. Conduct integration
tests to verify data flow, API interactions, and system behavior. Address any issues or discrepancies
identified during testing.

User Acceptance Testing (UAT):


Invite users to participate in UAT to evaluate the system's usability, functionality, and
performance.Gather feedback from users and stakeholders to identify areas for improvement. Make
necessary adjustments based on user feedback and testing results.
Deployment:
Deploy the Unreserved Train Ticket System to a staging or production environment. Configure server
infrastructure, databases, and other necessary resources. Monitor the deployment process and address
any deployment-related issues.

Training and Documentation:


Provide training to system administrators and support staff on how to use and manage the system. Create
user documentation, including user manuals and FAQs, to guide passengers in using the system
effectively.

Maintenance and Support:


Establish procedures for ongoing maintenance, updates, and bug fixes. Monitor system performance,
address user inquiries, and resolve technical issues as they arise. Continuously evaluate and enhance
the system based on user feedback and evolving requirements.
By following these steps, you can effectively develop and deploy the Unreserved Train Ticket System,
ensuring it meets the needs of passengers and railway authorities while providing a seamless and
convenient ticketing experience.
PROPOSED IMPLEMENTATION

WORKING OF PRESENT SYSTEM

The present mobile ticketing application allows the daily suburban train travelers of Mumbai
suburban area to book unreserved tickets of Indian Railways using their Smartphone. Having
booked a ticket using the app, a commuter need not take a print-out of the same and can show
its soft copy on the cellphone to the TTE. But there are certain problems being observed by
the application users lately. Due to which it is not considered as a reliable application.
Payment is done through Railway e-wallet.

DISADVANTAGES OF PRESENT WORKING SYSTEM

• Not User Friendly: The existing system is not user friendly because there have been
complaints regarding authentication process and sync issues also have been observed.
• Difficulty in payment: We require better payment options because the current system
shows page not found, there is a need to improve payment gateway to handle high
traffic.
• Timing issues: The current system shows the pop-up message that tickets can’t be
booked during the certain hours of day.
• Poor GPS : The present system doesn’t detects the location at times, thus it cannot be
considered as a reliable application.
• Time consuming: The current system is slow. It requires more time to display the
screen thus being inefficient.

PROPOSED IMPLEMENTATION

WORKING OF PRESENT SYSTEM

The present mobile ticketing application allows the daily suburban train travelers of Mumbai
suburban area to book unreserved tickets of Indian Railways using their Smartphone. Having
booked a ticket using the app, a commuter need not take a print-out of the same and can show
its soft copy on the cellphone to the TTE. But there are certain problems being observed by
the application users lately. Due to which it is not considered as a reliable application.
Payment is done through Railway e-wallet.

DISADVANTAGES OF PRESENT WORKING SYSTEM

• Not User Friendly: The existing system is not user friendly because there have been
complaints regarding authentication process and sync issues also have been observed.
• Difficulty in payment: We require better payment options because the current system
shows page not found, there is a need to improve payment gateway to handle high
traffic.
• Timing issues: The current system shows the pop-up message that tickets can’t be
booked during the certain hours of day.
• Poor GPS : The present system doesn’t detects the location at times, thus it cannot be
considered as a reliable application.
• Time consuming: The current system is slow. It requires more time to display the
screen thus being inefficient.

CHARACTERISTICS OF THE PROPOSED SYSTEM

• User Friendly: The proposed system is user friendly the storage of user-id and
password is done successfully. Thereby removing the syncing and authentication
errors. User needs to register only for the first time and the data will be stored
successfully.

• Payments are done properly:.In our proposed system, our team will make sure that
no payment issues are observed lately. By improving the payment gateway so that
high traffic are also handled, making it user efficient.
• Timing : The proposed system allows user to book the tickets 24*7. By removing the
problems which deals with time constraint.
• GPS: Location detection services will also be improved, making the proposed system
more efficient and reliable.

• Source code:
import random

class Train:
def __init__(self, name, number, seats):
self.name = name
self.number = number
self.seats = seats

def get_name(self):
return self.name

def get_number(self):
return self.number

def get_seats(self):
return self.seats

class Ticket:
def __init__(self, train, passenger_name, seat_number):
self.train = train
self.passenger_name = passenger_name
self.seat_number = seat_number

def get_train(self):
return self.train

def get_passenger_name(self):
return self.passenger_name

def get_seat_number(self):
return self.seat_number

class UnreservedTrainTicketSystem:
def __init__(self):
self.trains = []

def add_train(self, train):


self.trains.append(train)

def get_trains(self):
return self.trains
def book_ticket(self, passenger_name, train_number):
train = self.get_train_by_number(train_number)
if train is None:
return None

seat_number = random.randint(1, train.get_seats())


ticket = Ticket(train, passenger_name, seat_number)
return ticket

def get_train_by_number(self, train_number):


for train in self.trains:
if train.get_number() == train_number:
return train
return None

def main():
system = UnreservedTrainTicketSystem()

# Add trains to the system


system.add_train(Train("Shatabdi Express", 12345, 100))
system.add_train(Train("Rajdhani Express", 54321, 200))

# Book a ticket for a passenger


passenger_name = "John Doe"
train_number = 12345
ticket = system.book_ticket(passenger_name, train_number)

# Print the ticket details


print("Ticket details:")
print("Passenger name:", ticket.get_passenger_name())
print("Train name:", ticket.get_train().get_name())
print("Train number:", ticket.get_train().get_number())
print("Seat number:", ticket.get_seat_number())

if __name__ == "__main__":
main()
Conclusion;
The development of the Unreserved Train Ticket System marks a significant milestone in
revolutionizing the way passengers access and utilize train transportation services. Through the
implementation of modern technologies and user-centric design principles, this project has successfully
addressed the challenges associated with traditional reservation-based ticketing systems.
By enabling passengers to purchase tickets on the spot, without the need for advance reservations, the
Unreserved Train Ticket System has greatly enhanced the accessibility and convenience of train travel.
Real-time seat availability information empowers passengers to make informed decisions, while secure
payment processing ensures a seamless transaction experience.
Furthermore, the system's operational efficiency has been significantly improved, benefiting both
passengers and railway authorities alike. Automated ticket sales processes and optimized seat allocation
algorithms have reduced congestion, improved passenger flow, and enhanced overall service quality
within train stations and on board.
Through rigorous testing, user feedback, and continuous iteration, the Unreserved Train Ticket System
has evolved into a robust and reliable platform that meets the diverse needs of modern travelers. Its
accessibility features ensure that passengers of all backgrounds and abilities can enjoy a hassle-free
journey.
In conclusion, the Unreserved Train Ticket System stands as a testament to the transformative power
of technology in enhancing the accessibility, convenience, and overall experience of train travel. As it
continues to evolve and adapt to changing needs and technologies, it will play a crucial role in shaping
the future of transportation systems worldwide.

• References:

https://link.springer.com

https://www.geeksforgeeks.org/real-time-operating-system-rtos/

https://www.sciencedirect.com/

You might also like