Earn Higher Grades With Instant Assignment Help.Ask Question!

C++ Programming
(5/5)

write a program to handle passenger reservations on Tibet Airlines. Tibet is currently flying the miraculous Microsoft Unijet Airliner

INSTRUCTIONS TO CANDIDATES
ANSWER ALL QUESTIONS

You are to write a program to handle passenger reservations on Tibet Airlines.

Tibet is currently flying the miraculous Microsoft Unijet Airliner

You are to use a class with an array of 25 structures in the private portion of the class.

You are to create an instance of this array of structures in the public portion of the class.

Remember that only a member function can access data members in the private portion of a class.

 

Your top level menu is to read as

            (E)nter the passenger information

            (D)isplay the passenger information

            (Q)uit the program

Hint: Suggest using a case statement as in

case ‘E’:

case ‘e’:

// Then the rest of your code. This allows for upper & lower case

 

To enter a single passenger info, the user will press the E key (either upper or lower case)

You will only enter one passenger information for each E menu option selection and then the program will redisplay this top level menu as shown above. You can clear the screen with the system call “system(“CLS”);” without the outside quotes. You are not to require the user to enter all 25 passengers at one time.

 

The Display menu selection will only display the passenger data that was entered for the number of passengers that were entered.  The program will not display all 25 passengers unless all 25 passengers had their data entered into the program. The display format will be

            FName: actual data values (e.g., FName: Eric)

            LName: actual data values (e.g., LName: Shulman)

            FltNum: actual data values (e.g. Flt Num: 123)

            Priority: actual string or enumerated type (e.g., Priority: Gold, Tin, Lead)

 

The structure will have the following information

First Name – Use FName identifier for the variable

Last Name – Use the LName identifier for the variable

Flight Number – Use the identifier FltNum for the variable

Boarding Priority – Use the identifier Priority

 

Remember to only use one .cpp file and one .h file and follow the class coding standard and requirements in the course syllabus (Especially the rules on initialization of variables and the use of guarding in the .H file). Hint: Guarding is either #pragma once or the #ifndef logic, but not both.

Global variables are not allowed, but global constants are to be used as appropriate. The use of exit and abort are not allowed.

Attachments:
(5/5)

Related Questions

CSI 1420 Introduction to C Programming & Unix Fall 2018, CRN 44882, Oakland University Homework Assignment 6 - Using Arrays and Functions in C

DescriptionIn this final assignment, the students will demonstrate their ability to apply two majorconstructs of the C programming language – Fu

The standard path finding involves finding the (shortest) path from an origin to a destination, typically on a map. This is an

Path finding involves finding a path from A to B. Typically we want the path to have certain properties,such as being the shortest or to avoid going t

Develop a program to emulate a purchase transaction at a retail store. This program will have two classes, a LineItem class and a Transaction class. The LineItem class will represent an individual

Develop a program to emulate a purchase transaction at a retail store. Thisprogram will have two classes, a LineItem class and a Transaction class. Th

SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 1 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of Sea Ports. Here are the classes and their instance variables we wish to define:

1 Project 2 Introduction - the SeaPort Project series For this set of projects for the course, we wish to simulate some of the aspects of a number of

Ask This Assignment To Be Done By Our ExpertsGet A+ Grade Solution Guaranteed

expert
joyComputer science
(4/5)
12 Answers Hire Me
expert
Robert DLaw
(4.8/5)
950 Answers Hire Me
expert
Dr Samuel BarberaStatistics
(5/5)
530 Answers Hire Me
expert
Tutor For YouEconomics
(5/5)
537 Answers Hire Me