logo Use CA10RAM to get 10%* Discount.
Order Nowlogo
(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.

(5/5)
Attachments:

Related Questions

. Introgramming & 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 ma

. 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 Question To Be Solved By Our ExpertsGet A+ Grade Solution Guaranteed

expert
Um e HaniScience

918 Answers

Hire Me
expert
Muhammad Ali HaiderFinance

810 Answers

Hire Me
expert
Husnain SaeedComputer science

939 Answers

Hire Me
expert
Atharva PatilComputer science

650 Answers

Hire Me

Get Free Quote!

292 Experts Online