Group-13-Project-Report (2)
Group-13-Project-Report (2)
Name ID
Khurshida Jahan Khushi 242002163
2. OBJECTIVES/AIM
The primary aim of this experiment is to design and implement a bus ticket reservation
system that provides the following capabilities:
1.
12.
3. PROCEDURE / DESIGN
4. The procedure followed in solving this problem includes:
Flowchart: A flowchart was created to outline the system flow from bus selection
to seat booking and payment.
Flowchart Steps:
Display available buses.
Allow the user to select a bus.
1
Display available seats for the selected bus.
User selects one or more seats.
Calculate the total price based on selected seats.
Allow the user to confirm the reservation.
Mark selected seats as booked.
Save the updated status of buses and seats.
Algorithm:
Initialize bus data (routes, prices, and seats).
Allow the user to interact with the system, view buses, and make
selections.
Implement the seat reservation and cancellation processes.
Update the bus and seat status accordingly.
Pseudocode:
mathematica
Start
Initialize buses with routes and prices
Display available buses
Select bus
Display available seats for the bus
Select seats
Calculate total price
Confirm reservation
Update seat availability
Save updated data
End
2
Calculation:
Total price calculation: Total Price = Number of Seats * Price
per Seat.
4. IMPLEMENTATION
Overview:
The system was implemented in C programming language. It includes bus data
management, seat reservations, price calculation, and user interaction. The program
initializes the bus data, displays available buses, allows users to select buses and seats,
and calculates the total cost.
Implementation Details:
1.
Summary of Results:
All tests passed successfully, confirming that the program works as expected.
Bugs:
There were no significant bugs during testing, though some minor input validation
(e.g., for incorrect seat numbers) could be improved.
4
The system successfully handles bus selection, seat booking, and payment
processing. The user interface is clear and easy to navigate.
Trouble Spots:
Handling input validation was somewhat tricky, especially for edge cases such as
invalid seat numbers or non-numeric inputs.
Implementing the cancel reservation feature required careful seat status
management to ensure accuracy.
Implementing seat availability checks and ensuring that the system prevents
double-booking was complex.
Managing data persistence using file operations was challenging, especially when
ensuring that data is saved and loaded correctly.
5
I enjoyed designing the system and creating a functional user interface. The
challenge of managing seat bookings and cancellations was also enjoyable.
I learned how to handle file operations in C, manage dynamic user input, and
implement reservation systems. This project also enhanced my problem-solving
skills.
Mapping of Objective:
All objectives have been met: users can view buses, select and reserve seats,
and manage their reservations effectively.
7. SUMMARY (Optional)
This report details the design and implementation of a Bus Ticket Reservation System,
which meets the outlined objectives and provides a simple, effective solution for bus seat
management. The system was tested and found to work correctly, with all major features
functioning as expected. The project provided valuable experience in file handling, input
validation, and algorithm design.