Create a seating reservation program for podunk airlines

Assignment Help Computer Engineering
Reference no: EM132137137

Structures

Write the Program in C++ only.

Task: Create a seating reservation program for Podunk Airlines. The air fleet consists of a single plane with a seating capacity of 12. The plane makes one flight daily. Your program will maintain the reservation information for a single day.

Processing: Use a 12-element array of structures to store information about the 12-seat plane. The structures will include this information:

seat identification number (an integer from 1 to 12)

a Boolean variable that indicates whether or not the seat is currently assigned

the first name of the seat holder

the last name of the seat holder

The program should be user-friendly, providing a menu of these functions:

a). show the count of empty seats

b). show a list of all seats in numeric order, including assigned passenger names

c). show an alphabetical list of passengers and their seat numbers; don't include empty seats

d). assign a passenger to a seat

e). cancel a seat reservation

f). quit

After the completion of a menu task other than f, the program should clear the screen and redisplay the menu for the user. When searching for a name or when sorting names, note that passengers may have the same last name; however, we will assume for our program that two passengers don't have identical first and last names.

Input: Choice d in the menu will require the user to input the name of a passenger and a desired seat number. Choice e should permit the user to provide a passenger's name or a seat number.

Output: All output may be directed to the screen.

Reference no: EM132137137

Questions Cloud

What is the expected return on portfolio : What is the expected return on this portfolio? What is the beta of this portfolio? Does this portfolio have more or less systematic risk than an average asset?
Give an algorithm about to define the polynomial time : Give an algorithm that, given strings A, B, and C, decides whether C is an interleaving of A and B in polynomial time. Prove your answer correct.
What is the current yield on pk bonds : What is the current yield on PK's bonds? (Do not round intermediate calculations and enter your answer as a percent rounded to 2 decimal places, e.g., 32.16.)
Deposits every month at the beginning : You have decided to place $553 in equal deposits every month at the beginning of the month into a savings account earning 10.62 percent per year
Create a seating reservation program for podunk airlines : Create a seating reservation program for Podunk Airlines. The air fleet consists of a single plane with a seating capacity of 12.
What beta measures : What beta measures? by what mean do you calculate beta? look for a company on the Web that your interested in and find what there beta is.
Large number of assets : Firstly a systematic risk is one that deals with a large number of assets and can also be labeled as a market risk, on the other hand a non systematic risk
Develop a copy constructor and assignment operator : Develop a copy constructor and assignment operator (and understand why!), work with C-Style strings and pointers.
What is the portfolio expected return : You invested $12,000 in a stock that has an expected return of 18% and $21,000 in a stock with an expected return of 10%. What is the portfolio's expected retur

Reviews

Write a Review

Computer Engineering Questions & Answers

  Why user will indicate the time interval in minutes

Write a C++ program that creates a tab delimited file, balloon.txt, that could be opened by a spreadsheet to graph the altitude and velocity of a balloon as a function of time from the time of release by 48 hours.

  Explain how do mainframe computers compare to

question 1 how do mainframe computers compare to supercomputers? why are they more prevalent in large companies than

  Describe a nonrecursive method for evaluating a binary tree

Describe a nonrecursive method for evaluating a binary tree representing an arithmetic expression.

  Modify the rationalnumber class

Modify the RationalNumber class so that it implements the Comparable interface. To perform the comparison, compute an equivalent floating point value.

  Implement the methods of the ordered dictionary ADT

Implement the methods of the ordered dictionary ADT using a skip list. Implement a dictionary that supports location-aware entries by means of an ordered list.

  What must she try next

Linda has been assigned the job of connecting 5 computers to a network. The room holding the 5 computers has three network ports that connect to a hub in the electrical closet down the hallway.

  Create a class named cylinder with a field for the radius

Create a class named Cylinder with a field for the radius. Write code to display the surface area of both cylinders in an attractive fashion.

  Discuss management activities to monitor access control

Please discuss management actions and activities to monitor access control. In your answer, consider hardware, software, cloud-based applications.

  Wap that reads an arbitrary number of even integers

Write a program that reads an arbitrary number of even integers that are in the range 2 to 100 inclusive and counts how many occurrences of each are entered.

  The binary representation of the number of elements

Prove that, the number of times two trees in the binomial heap are merged into a bigger tree is equal to the number of bit- ips when B is incremented by 1.

  Calculate the sum of the numbers from one to n

Write an assignment statement to calculate the sum of the numbers from 1 to N using Gauss's formula

  Explain the advantages and disadvantages of operating

Why are database views important and how are they beneficial in a DBMS

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