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

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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