Tharun 12B CS Project File
Tharun 12B CS Project File
A Project Report on
NAME OF PROJECT
Submitted By
NAME: Tharun
CLASS: 12 B
CERTIFICATE
1
This is to certify that __________of Class XII-_ of
Global Indian International School has prepared
the report on the project entitled “_______”. The
project was successfully completed for the
AISSCE as prescribed by CBSE in the year 2024-
2025.
Date: ___________
Roll No.: _______________
Principal’s Sign
2
ACKNOWLEDGEMENT
CONTENTS
3
Contents Pg. No.
OBJECTIVE
SOFTWARE USED
WORKING DESCRIPTION
CODING
OUTPUT SCREENS
CONCLUSION
BIBLIOGRAPHY
4
Objective:
The primary objective of the Bus Reservation System project
is to develop a user-friendly and efficient platform that
simplifies the process of booking bus tickets. The system aims
to provide a seamless experience for users.
Software Used:
Pycharm
Mysql
Working Description:
1. MySQL Connection: The code begins by establishing a
connection to a MySQL database using the mysql.connector
library. The database connection details, such as host, user, and
password, are specified.
2. Main Menu (railresmenu function): This function displays a
menu with options to view train details, reserve tickets, cancel
reservations, or quit the application. Based on the user's choice,
it calls the appropriate function to perform the selected action.
3. Train Details (traindetail function): This function displays
information about the available train routes and their
5
corresponding Train IDs. It lists the destinations and available
trains, then returns to the main menu.
4. Reserve Tickets (trainreserve function): This function prompts
the user to enter details such as Train ID, first name, last name,
phone number, and the number of seats needed. It then inserts
this reservation information into the table2 in the railrestest
database. Upon successful reservation, it confirms the booking
and returns to the main menu.
5. Cancel Reservations (cancel function): This function prompts
the user to enter their phone number to cancel a reservation. It
deletes the reservation record corresponding to the provided
phone number from the table2 in the railrestest database. Upon
successful cancellation, it confirms the action and returns to the
main menu.
6. Execution of Main Menu: The railresmenu function is called at
the end of the script to start the application.
6
Code:
7
8
Output Screens:
1:
9
2:
10
3:
11
Conclusion:
The Bus Reservation System project successfully achieves its
objective of creating an efficient and user-friendly platform
for booking bus tickets.
Bibliography:
1. Python Software Foundation. (2023). *Python
Documentation*. Retrieved from https://docs.python.org/3/
2. MySQL AB. (2023). *MySQL Reference Manual*.
Retrieved from https://dev.mysql.com/doc/
12