Build a simple airline ticket reservation program

Assignment Help Computer Engineering
Reference no: EM1331511

Create a simple airline ticket reservation program in C++ that keeps track of individual passenger names, and their associated flight numbers, departure dates and times, and originating and destination cities. You may implement your own linked list library; however, it is recommended that you make use of the linked list API in the C++ standard template library.

At a minimum, this program should implement at least one object called ReservationRecord and should hold the following data for each passenger:

* recordId (must be an variable of type int. This field uniquely identifies a record)
* firstName
* lastName
* originatingCity
* destinationCity
* flightNumber
* departureTime
* departureDate

Provide the appropriate accessor methods to set and get the data for these fields. For example getFirstName() and setFirstName(string firstName).

The main program must provide the following functionality:

1. When the program is first started, it should read a data file called reservation.dat. If the file exists, the program must load its data for each record into the reservation linked list.

2. When the program exits, it should save all of the entries in the reservation linked list into the reservation.dat data file. At this point, if this file does not exist, the program should create it.

3. Provide a text-based user interface to allow the user to operate on the reservation data. Each reservation record must be placed in a global linked list that holds all of the reservations. The program should allow the user to do the following:

(a) Reserve a ticket - allows the user to enter all fields except the recordId, which is a number that is automatically generated by the program. After the data is entered it should be placed in the linked list.

(b) Search for passenger - allows the user to search for a passenger by lastName. If the entry exists in the linked list then print all fields in the reservation record. If there are multiple passengers with the same last name, then all passengers with that last name should be printed.

(c) Cancel a reservation - allows the user to delete a reservation record from the linked list using the recordId as the key.

(d) Modify a reservation - allows the user to modify any of the fields in a reservation record (except the recordId) for given passenger by recordId.

(e) Display passengers - displays all of the records in the reservation linked list.

Reference no: EM1331511

Questions Cloud

Program that will search a file of numbers of type int : Write down  a C++ program that will search a file of numbers of type int and write the largest and the smallest numbers to the screen. The file contains nothing but numbers of type int separated by blanks or line breaks.
Explain risk and benefits of creating online store : What risks and benefits do you think a business should consider before creating an online store
Considering various demographic segments : Considering various demographic segments such as older shoppers, teenagers, single mothers, and single, working professionals. What type of store environment might each of these shoppers prefer? What attributes might each segment rate as the most imp..
Explain how can rational thinking the above behaviors : Explain how can rational thinking the above behaviors. How do your thoughts impact, if at all, your opinion of the theory.
Build a simple airline ticket reservation program : modify a simple airline ticket reservation program in C++ that keeps track of individual passenger names, and their associated flight numbers, departure dates and times, and originating and destination cities.
Nowc and dcf analysis : Calculate the required investment in NOWC for the three years of the project.  Use these estimates of NOWC to calculate the Cash Flow from NOWC.
Explain online marketing- the arrival of the digital age : What additional steps should The Minister of Public Enterprise in Ireland take to ensure that the 'Celtic tiger' economy continues to be successful?
Explain how business demand is derived demand : Explain how business demand is derived demand?
Write down the worst cardiac simulator of all time : make the worst CARDIAC simulator of all time (in C++) that tells the user how to execute only a single instruction typed as a 3 digit number by the user.

Reviews

Write a Review

 

Computer Engineering Questions & Answers

  Program that help an elementary school learn multiplication

Computers are playing an increasing role in education. Write a program that will help an elementary school learn multiplication. make Use of a Random object to produce two positive one-digit integers.

  How do they differ from the tools you use

What tools do you find most useful in managing projects

  How frequently can the stuff bits used

Suppose a multiplexer has two input streams, each at a nominal rate of 1 Mbps. To accommodate deviations from the nominal rate, the multiplexer transmits at a rate of 2.2 Mbps as follows.

  Constructing threat model to explain risk

Construct a simple threat model which explains the risk this represents: attacker(s), vulnerability, attack vector, assets, and likelihood of the occurrence, likely impact, and plausible mitigations.

  Decision making systems

How we may leverage business intelligent to generate meaningful information and decision making systems in order to help the keep cost and the profits.

  Build a program to implement the selection sort algorithm

build a program to implement the selection sort algorithm, which will sort a list of strings. Selection sort function should sort the list of strings in alphabetical order. You only need to provide the details for the selectionSort() function base..

  Program declaring the variables-using proper variable naming

Your program should declare all the variables and utilize the proper variable naming conventions.

  Microsoft windows 2000 has domains alpha, beta, and omega

Microsoft Windows 2000  has domains ALPHA, BETA, and OMEGA

  Developing the flowchart as per the algorithm

Design an algorithm to prepare a job applicant report. Input contains of a series of records which consists of the Social Security number or equivalent, last name, first name, middle initial, verbal test score, science test score, math test score,..

  Breaking the version of cipher

Assume an improved version of Vigen ere cipher in which in place of utilizing several shift ciphers, several mono-alphabetic substitution ciphers are utilized.Display how to break this version of the cipher.

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Where the size is the number of doubles to be sorted

Asks for values and stores them into an array of double. Sorts the values in ascending order according to the following algorithm, where size is the number of doubles to be sorted.

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