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

  Prepare a a simple class fraction

Web tickets are purchased on the internet. Web tickets purchased a week in advance of the event are £30 and those purchased less than a week in advance are £40.

  What is the value of the expression

following are the simple question.What is the value of the expression  1000 /10 /10 + 100 %1.What is the output printf("%c",65)What is the output {int i=10;printf("%d",10/i++);}.

  Calculate and display the number of units of electricity

The manager of PG&E wants a program that calculates a customer's electric bill. He will enter the current and previous meter readings.

  Create a program that contains 4 methods

Create a program that contains 4 methods / functions... main(), getTestScores(), calcAverage(), and displayAverage(). The main() method should call the getTestScores() method to get and return each of 3 test scores.

  Write a program that grades the written portion

The local driver's license office has asked you to write a program that grades the written portion of the driver's license exam. The exam has 20 multiple choice questions.

  Er diagram to the corresponding tables

Chen, the Customer Analyst of Shopping Spree, has to make the ER diagram to represent the preceding situation, and then to map the ER diagram to the corresponding tables. Help Chen to do the same.

  Write a program to simulate tossing a fair coin

Print the number of tosses that yield heads and the number of tosses that yield tails. What should be the percentage distribution of heads and tails?

  Write a program that stimulates a bouncing ball

Write a program that stimulates a bouncing ball by computing its height in feet at each second as time passes on a simulated clock. At time zero, the ball begins at height zero.

  Which of the following prototypes would work

Which of the following prototypes would work for the function called func?

  What is the output of the following code

What is the output of the following code?

  Write test program to call function several times for gcd

Greatest common divisor of two integers is largest integer which will evenly divide both integers. Implement this function in assembly language and write test program which calls function several times, passing it different values.

  Multiplying the current balance

The interest is calculated by multiplying the current balance, rate and time period which is one quarter of a year as in this case. A new balance is calculated by adding that interest.

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