Ticketing system for a very simple airline

Assignment Help Basic Computer Science
Reference no: EM131483822

In C++

Your employer has determined a market for a simple airline ticketing system for a very simple airline (Tree Top Airways - TTA). The airline only has two aircraft, named ALFA and BRAVO. Initially, the ticket system will determine the number of seats on each plane and in the lounge. The ticketing system is to be installed at the airport ticket booth for the airline and will operate under the following rules:

1) If a party arrives and there is enough room on the plane requested, they are allowed to board and a message to that effect is printed.

2) If a party arrives and there is not enough room on the plane requested due to people already being on the plane, the party is directed to wait in the lounge and a message to that effect is printed.

3) If a party arrives and there is not enough room on the plane requested because the plane is just too small, the party is turned away and a message to that effect is printed.

4) If a party is directed to the lounge and there is not enough room in the lounge, the party is turned away.

5) Parties are never split.

6) A plane will fly whenever it becomes full and a list of all parties on board will be printed.

7) Aplanemayflyuponacommandfromtheticketclerk.Againalistofallpartieson board will be printed.

8) The ticket clerk will enter when a plane flys and upon the return of the plane the system will move people from the lounge to the plane in the order in which the parties arrived, but will skip parties that cannot fit and search for those which can fit. A list of those parties boarding the plane will be printed.

9) When the airline shuts down for the night, the airplanes will continue to fly and return (without the ticket clerk performing any action) until all parties in the lounge have flown with appropriate messages being printed.

10) Party names do not have a maximum size so they must be handled as C-type strings and dynamically allocated.

The commands the system will accept are the following: ALFA BRAVO LOUNGE FLY ARRIVE SHUTDOWN where: is either ALFA or BRAVO. is a name of unlimited length. is an integer number Fields in the input will be separated by some amount of whitespace. The ticket clerk is a terrible typist.

Reference no: EM131483822

Questions Cloud

Common encryption algorithms and methods : Select any three (3) encryption algorithms and develop a well-researched, well-developed paper that would provide a non-technical reader.
Develop a memorandum addressed to the cfo : You will develop a memorandum addressed to the CFO that explains how you want to change your IT Department into a CIO organization and why.
Odd entries and the even entries : Stop reading numbers when the input value is zero. Display the total of the odd entries and the even entries.
Create forms and reports using the skills learned in the lab : Your task is to create forms and reports using the skills learned in the lab. For now, we will not worry about authentication and security.
Ticketing system for a very simple airline : Your employer has determined a market for a simple airline ticketing system for a very simple airline (Tree Top Airways - TTA).
Derive the dual problem and interpret each component : A pure monopolist on two distinct and separated final commodity markets faces prices p1 = c1 - D1x1 and p2 = c2 - D2x2, respectively, where Di are asymmetric.
Whatever is done in excel you have to do it in python : Whatever is done in excel you have to do it in python. Like you have to categorize the tweets related to app and other. It should be done by using pandas
Third-party data center hosting vendors : Each corporate facility is located near a co-location data center, where production systems are located and managed by third-party data center hosting vendors.
Create the gui components using code : Initially the ‘Create Student' button remains disabled. The user enters the Student Name and Year Level using the fields on the GUI. This creates a student object.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Computes the areas of rectangles and tells

Create a C++ program that computes the areas of rectangles and tells the user which rectangle has the greatest area, or if the areas are the same.

  Competitors such as mcdonalds or subway

How does Chick Fil A differentiate themselves from competitors such as McDonalds or Subway?

  Impact of technology on customers

The impact of technology on customers in regard to the following: How the company introduced the new product to customers

  Model and design an information system

Generate a narrative for a business to analyze, model and design an Information System. The company is:Amazon. You can simplify and take assumptions to develop the Information System appropriate for the selected business.

  Describe how to represent a mixed entity relationship

Describe how to represent a multivalued attribute entity relationship. Give an example other than one in this chapter.

  How many address and data lines are there in the chip

What size decoder is needed to construct the 16K x 16 memory from the IK x 8 chips? What are the inputs to the decoder and where are its outputs connected

  Ordinary carbon-composition resistor

Do you think an ordinary carbon-composition resistor would always show a pure resistance on the Smith chart (or with a network analyzer) at microwave frequencies? Why or why not?

  Needs to examine and process the string

Needs to examine and process the string

  Roles of security devices in each layer

Roles of Security Devices for WWTC: I will divided the network design into five layers and described the roles of security devices in each layer.

  Assignment on creating a use case

Refer to the RMO CSMS marketing subsystem shown in Figure 3-11 on page 79-80 of the textbook. Write a two to three (2-3) page paper in which you:

  What is the effective bandwidth per color

Marcos is connected to an WDM. There are 70 colors that can be used on the WDM. What is the effective bandwidth per color if the WDM is connected to a shared OC-3?

  Review and discuss methods for it manager

Review and discuss methods for IT managers to maintain their skills while gaining new managerial skills

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