Prepare a bus reservation system

Assignment Help C/C++ Programming
Reference no: EM13919641

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.

Reference no: EM13919641

Questions Cloud

About the current exchange rate : In 1985, a given Japanese imported automobile sold for 1,476,000 yen, or $8,200. If the car still sold for the same amount of yen today but the current exchange rate is 144 Yen per dollar, what would the car be selling for today in U.S. dollars? Show..
Possible relationship between malaria infection-sickle-cell : a. Estimate the proportion of severe malaria infection in those with the sickle-cell trait and those without it. In each case, provide the 95% confidence interval (CI) and interpret its value. b. Based on the estimates and their confidence interv..
What is the cost of common from reinvested earnings : Orange Logistic is thinking of opening a new warehouse, and the key data are shown below. The company owns the building that would be used, and it could sell it for $100,000 after taxes if it decides not to open the new warehouse. No new working capi..
Specific application or methodological study : In this six- to eight-page research paper, you will explore in detail one of the statistical approaches to research discussed in the course, applying it in the context of a specific application or methodological study.
Prepare a bus reservation system : You will be asked to demonstrate your program to your tutor - You should be prepared to answer questions concerning your design, code and test plan.
Research on the classical conditioning of taste aversions : Regarding research on the classical conditioning of taste aversions, which of the following statements is FALSE?
Critical study of art and visual culture : These images are unknown, but relate to works we have examined in class (or will examine). Study the images carefully. Choose any two and write a short essay in which you discuss and analyze them. Critical study of art and visual culture involves ..
Probability and hypothesis testing : Your final project entails systematic extraction of decision-aiding insights from a dataset (SampleDataSet.xlsx) provided to you in the Doc Sharing area. The goal of this project is to provide you with hands-on experience in conducting and interpr..
Record the events under an accounting equation : Ignoring all other future events, what is the amount of service revenue that would be recognized in 2014?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd