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

  Write an algorithm to compute the volume of water

Write an algorithm to compute the volume of water in cubic feet, flowing through a pipe of diameter d in feet, with a velocity of v feet per second.

  Write an lc-3 machine language program

Write an LC-3 machine language program starting at location x3000 which divides the number in memory location x4000 by the number in memory location x4001 and stores the quotient at x5000 and the remainder at x5001.

  Show the restriction range of values from rand

How to write a program to demonstrate the use of random number functions in c++ program. and to show the restriction range of values from rand()using %

  Program that translates a letter grade into a number grade

Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D, and F, possibly followed by + or -.

  You need to prepare an array in c++

You need to prepare an array in C++. The example I am using is different session of summer camp week 1-8, and then after you have selected the week session breaking the campers into four groups ages 5-8? Any assistance?

  Relationship between obesity and food consumption

Researcher states that there is relationship between obesity and food consumption. Obesity is the condition of excess body fat and it can get diabetes, heart disease, high blood pressure and also fatal. People in the US getting obese because of the l..

  Design and implement a library system that does the

design and implement a library system that does the following ? takes details of a studentlibrary users first name last

  Compute and display net weekly pay

You need to prepare a C++ program in which you declare variables that holds an hourly wage, a number of hours worked, and a withholding percentage.

  Overflow in a traditional data type

Wrap around and continue the cancellation until only one element remains. As the Fibonacci number will overflow in a traditional data type, take modulus of the number with 1000000007.

  Why can not the this pointer be used in nonmember functions

Why can't the this pointer be used in nonmember functions? Why should the overloaded assignment operator return *this? What does *this always refer to? How is the operator keyword used?

  Design a menu driven program for a florist

Design a menu driven program for a florist. The first screen asks the user to choose indoor plants, outdoor plants, nonplants items, or quit. When the user chooses indoor or outdoor plants, list at least three appropriate plants of your choice.

  Write a function that accepts an int array

Element 0 of the argument arrayshould be copied to element 1 of the new array, element 1 of the argument array should be copied to element 2 of the new array, and so forth. The function shouldreturn a pointer to the new array.

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