Bus Reservation Internship Report
Bus Reservation Internship Report
Page | 2
Bus Reservation System using C programming language
ABSTRACT
The Bus Reservation System is a software application developed using the
C programming language. The purpose of the system is to allow users to book bus
Page | 3
Bus Reservation System using C programming language
tickets and manage bus schedules. The system has various features such as user
registration, login, bus route management, ticket booking, and ticket cancellation.
The system is designed to be user-friendly and efficient, allowing users to quickly
and easily book tickets for their desired bus routes. The code is well-structured,
modular, and follows good coding practices.
The project is suitable for both small and large-scale bus operators who are
looking for an efficient and reliable system to manage their bus reservation
process. Overall, the Bus Reservation System project is a useful application for
anyone who wants to streamline their bus reservation process and provide a
seamless booking experience to their customers . In conclusion, the bus reservation
system using C is a reliable and efficient system for managing the bus reservation
process. It simplifies the ticket booking process for users, and it is suitable for
small and large-scale bus operators.
ACKNOWLEDGEMENT
Page | 4
Bus Reservation System using C programming language
I wish to thank Mrs. ASHA K professor, dept of AI&ML for her constant
encouragement, support and concern.
ii
Page | 5
Bus Reservation System using C programming language
I wish to thank all the faculty members and non teaching staff, Department
of Artificial intelligence & Engineering, for their excellent encouragement and
wishes.
N S Manikanta R
(4GM21AI032)
III
Page | 6
Bus Reservation System using C programming language
Page | 7
Bus Reservation System using C programming language
CONTENTS
ABSTRACT
ACKNOWLEDGEMENT
LIST OF FIGURES
1. Introduction
1.1 Preamble
1.8 Summary
2.4 Summary
3.2 Summary
Page | 8
Bus Reservation System using C programming language
4.4 Summary
5.Implementation
5.7 Summary
6.1 Results and analysis of the approaches for bus reservation system
6.1.1 Approache-1
6.1.2 Approache-2
6.1.3 Approache-2
6.1.4 Approache-3
6.2 Summary
Page | 9
Bus Reservation System using C programming language
7.1 Conclusion
Page | 10
Bus Reservation System using C programming language
Chapter 1
INTRODUCTION
(In this chapter, preamble, overview of Bus Reservation System, scope of the
project, problem definition, objectives are discussed)
CHAPTER-1
Page | 11
Bus Reservation System using C programming language
INTRODUCTION
1.1 Preamble
Page | 12
Bus Reservation System using C programming language
Page | 13
Bus Reservation System using C programming language
Streamlined operations
Page | 14
Bus Reservation System using C programming language
This chapter gives the conclusion of the project and the possible
future enhancements.
1.8 Summary
Page | 15
Bus Reservation System using C programming language
Chapter 2
SPECIFICATION OF
PROGRAMMING LANGUAGE AND
OTHER REQUIREMENTS
(In this chapter, specification of hardware and software requirements
are discussed)
Page | 16
Bus Reservation System using C programming language
CHAPTER-2
VS code IDE
Visual Studio Code (often abbreviated as VS Code) is a popular
free and open-source code editor developed by Microsoft. It supports a
wide range of programming languages and frameworks and is highly
customizable through its extensive plugin and extension ecosystem.
Page | 17
Bus Reservation System using C programming language
• RAM : 2 GB
• Programming language :C
• IDE : VS code
2.4 Summary
This chapter includes the specific requirements in section 2.1. Minimum
hardware requirements for the project are detailed in section 2.2 and software
requirements are specified in section 2.3.
Page | 18
Bus Reservation System using C programming language
Chapter 3
Page | 19
Bus Reservation System using C programming language
CHAPTER – 3
Page | 20
Bus Reservation System using C programming language
Login Module:
Booking Module:
This module handles the process of booking a bus ticket. It allows
customers to search for available buses, select a seat, and make a payment.
The module also updates the seat availability and generates a ticket for the
customer.
Bus Information Module:
This module stores information about the buses, including their
routes, schedules, and availability. It is responsible for updating the
availability of buses and seats as customers book and cancel their tickets.
Bus Status Module:
This Module stores the information about the bus seats and seats
available reservation and seat arrangement by this user can easily book his
seat.
3.2 Summary
This chapter presents modules that are used in bus reservation system. The
system architecture for Bus reservation system are briefly explained in section 3.1.
Page | 21
Bus Reservation System using C programming language
Chapter 4
Page | 22
Bus Reservation System using C programming language
CHAPTER 4
(In this chapter, different approaches for bus reservation system are discussed)
The flowchart for bus reservation system using approach-1 is as shown in figure
Page | 23
Bus Reservation System using C programming language
Page | 24
Bus Reservation System using C programming language
The flowchart for ticket cancelling module using approach-3 is as shown in figure
4.4 Summary
This chapter presents different approaches for Bus Reservation system. The
flowchart for login module using approach-1 is presented in section 4.1.
Flowchart for booking module using approach-2 is explained in section 4.2. The
flowchart for ticket cancelling module using approach-3 is presented in section
4.3.
Page | 25
Bus Reservation System using C programming language
Chapter 5
IMPLEMENTATION
(In this chapter, pseudo codes for various approaches of bus reservation system are
discussed)
Page | 26
Bus Reservation System using C programming language
CHAPTER 5
IMPLEMENTATION
struct User {
char username[50];
char password[50];
float balance;
};
struct Bus {
char busName[50];
char source[50];
char destination[50];
int availableSeats;
float fare;
};
Page | 27
Bus Reservation System using C programming language
scanf("%s", userArray[n].username);
scanf("%s", userArray[n].password);
userArray[n].balance = 0;
// Function to login
scanf("%s", username);
scanf("%s", password);
Page | 28
Bus Reservation System using C programming language
if (strcmp(userArray[i].username, username) == 0
&& strcmp(userArray[i].password, password) == 0) {
return i;
return -1;
int numSeats;
scanf("%d", &numSeats);
} else {
userArray[userIndex].balance -=
busArray[busIndex].fare * numSeats;
busArray[busIndex].availableSeats -= numSeats;
Page | 29
Bus Reservation System using C programming language
float amount;
scanf("%f", &amount);
userArray[userIndex].balance += amount;
int numSeats;
scanf("%d", &numSeats);
Page | 30
Bus Reservation System using C programming language
Page | 31
Bus Reservation System using C programming language
Page | 32
Bus Reservation System using C programming language
Chapter 6
Page | 33
Bus Reservation System using C programming language
CHAPTER 6
The Figure 6.2.1.1 is the result of login module it shows that login is successful.
Page | 34
Bus Reservation System using C programming language
The Figure 6.2.1.1 is the result of login module it shows that login is unsuccessful.
6.2.2 Approach-2
Page | 35
Bus Reservation System using C programming language
Page | 36
Bus Reservation System using C programming language
The Figure 6.2.1.4is the result of login module it shows that login is successful.
Page | 37
Bus Reservation System using C programming language
The Figure 6.2.1.5:is the result of login module it shows that login is successful.
Page | 38
Bus Reservation System using C programming language
The Figure 6.2.1.6:is the result of login module it shows that login is successful.
6.2.3 Approach-3
Page | 39
Bus Reservation System using C programming language
The Figure 6.2.1.7:is the result of login module it shows that login is successful.
Page | 40
Bus Reservation System using C programming language
6.4 Summary
Page | 41
Bus Reservation System using C programming language
Chapter 7
Page | 42
Bus Reservation System using C programming language
CHAPTER 7
Page | 43