Flight Ticket Booking Report-8
Flight Ticket Booking Report-8
CLASS: XII A
SUBJECT: COMPUTER SCIENCE (083)
PROJECT GUIDE: K Srikantha (PGT CS)
1
CERTIFICATE
ACKNOWLEDGEMENT
TABLE OF CONTENTS
INTRODUCTION
The "Flight Ticket Booking" project represents a practical
implementation of Python programming, integrating
advanced tools and libraries to solve real-world problems in
an interactive and efficient manner. This project was designed
as a Discord bot that enhances server functionality by
incorporating features such as SQL query execution and
dynamic flight ticket booking. By utilizing powerful Python
libraries like Discord.py, geopy, and MySQL, the bot provides
seamless interactivity and computational capabilities.
❖ OBJECTIVE:
The primary objective of this project is to create a user-friendly
and interactive platform that simplifies flight ticket booking
through Discord. It aims to:
FEATURES OVERVIEW
CODE MODULES
❖ IMPORTS:
➢Discord Intents:
Configures the bot to access and handle
message content.
❖ SDH
➢Command Prefix:
Sets up the command prefix for bot
interactions.
8
MODAL IMPLEMENTATION
The bot uses Discord's UI components for interactive ticket
booking. A snippet from the actual code is given below:
10
❖ For macOS:
➢Hardware Requirements:
■ Processor: Apple M1/M2 chip or Intel Core
i5/i7 processor
■ RAM: 4 GB (8 GB recommended)
■ Storage: 10 GB of free disk space
■ Internet: Stable broadband connection
■ Graphics: Integrated Apple GPU or Intel Iris
Graphics
➢Software Requirements:
■ Operating System: macOS Big Sur or later
■ Python: Python 3.10+ (via Homebrew or the
Python.org installer)
■ IDE/Text Editor: Visual Studio Code, PyCharm,
or Xcode
■ Database Tools: MySQL Workbench
❖ For Linux:
➢Hardware Requirements:
■ Processor: Dual-core processor (2 GHz or
faster)
■ RAM: 4 GB (8 GB recommended)
■ Storage: 10 GB of free disk space
■ Internet: Stable broadband connection
■ Graphics: Integrated graphics (no special
requirements)
➢Software Requirements:
■ Operating System: Ubuntu 20.04 LTS or later,
Debian, Fedora, or any modern Linux
distribution.
■ Python: Python 3.10+ (usually pre-installed in
most distributions; otherwise install via
package manager)
■ IDE/Text Editor: Visual Studio Code,
PyCharm, or Nano/Vim for terminal-based
editing
■ Database Tools: MySQL or MariaDB for
databases
Additional Software: apt-get or yum for packages & Pip for Python
dependency management.
14
SOURCE CODE
https://github.com/applxcake/Discord-Bot-Class-12-Cs-project
❖ SQL Tables:
18
❖ Testing Process:
➢Unit Tests: Each command was tested
independently.
CONCLUSION
❖ ADVANTAGES:
❖ DISADVANTAGES:
STUDENT REFLECTIONS
This experience has been an incredible learning opportunity,
filled with challenges, discoveries, and growth. From the start,
I took responsibility for writing the entire project code.
Developing features required careful planning, creativity, and
problem-solving skills. I ensured each program component
was functional and user-friendly. Debugging was challenging
yet rewarding, teaching me to tackle errors systematically. I
explored details, ran test cases, and sought creative solutions
to ensure the program worked seamlessly, strengthening my
analytical thinking and perseverance. For the database
component, I took it upon myself & found a reliable MySQL
hosting provider, researched solutions, and integrated the
database with my code. This taught me database
management, and scalable hosting. Successfully connecting
the database was a satisfying milestone. This project taught
me coding, time management, and critical thinking, boosting
my confidence and passion for programming. I hope it
inspires others to embrace hands-on learning.
Regards,
BIBLIOGRAPHY
❖ Developmenting Resources:
❖ Learning resources:
❖ Websites: