You will be asked to demonstrate your program to your tutor


Introduction

Bus reservation system is developed in C program by implementing queue data structure using linked list. This system is developed to maintain the passenger record in memory so that passenger information is retrieved. Queue is implemented to maintain the passenger details.

Aim

You are required to code and test a C language program to store and display information about all Passengers in a text file. When Passengers enter the reservation counter they should be in queue to book their tickets.

The application program is to be a main menu consisting of the following sub categories.
1. Passenger Details
2. Passenger Queue
3. Search Passenger
4. Exit

The system should prompt the user to choose a sub-category from the main menu. Each sub-category contains some items like the following:

1. Passenger Details which contain the following dams:

a. Add details of a Passenger this function allows data entry to add detailed information of passenger to the system and MI. it to the passenger text file.
This information is:
Passenger Name
Passenger Identification Number
Passenger Address
Passenger Contact Number
Total No. of Luggage
Luggage Weight
Destination
Travel Start Date
Travel Return Date
Booking ID
Note: Travel Return Date can be null if passenger have single trip.

b. Search specific Passenger Information from the passenger text file by using the Passenger Identification Number

c. Display information of all Passengers in the text file

d. Exit: To return back to the main menu.

2. Passenger Queue: Which is based on single linked list and contains the following items:

a. Rear
The Passenger enters the booking queue.
Passenger will be one after another in a queue.
Booking ID should be integer.

b. Display
Display the total number of the booking ID in the queue
Booking ID number should be an integer

c. Front
The passenger booking ID which is checked first will be removed from the queue.

d. Exit
To return back to the main menu.

3. Search Passenger
By using Passenger Booking ID, Passenger details need to be displayed.

4. Exit:
To End the program

Note:

1. Your code should be robust and include appropriate validation, prompts, comments, and error messages.

Presentation

1. You will be asked to demonstrate your program to your tutor.

2. You should be prepared to answer questions concerning your design, code and test plan.

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: You will be asked to demonstrate your program to your tutor
Reference No:- TGS01222544

Now Priced at $75 (50% Discount)

Recommended (92%)

Rated (4.4/5)

A

Anonymous user

2/25/2016 11:49:27 PM

The assignment is all about to develop a C program language by implementing the queue data structure by using linked list. You are requisite to code and test a C language program to store and display information regarding all passengers in a text file. If Passengers enter the reservation counter they must be in queue to book their tickets. The application program is to be a main menu comprising of the given sub class. 1) Passenger Details 2) Passenger Queue 3) Search Passenger 4) Exit