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

  Define design and consultancy services

A description of proposed virtual infrastructure for the data centre including which virtual technology is recommended and the reasons for that recommendation.

  Implement the topological sorting algorithm

Implement the topological sorting algorithm. Implement Kruskal's algorithm assuming that the edge weights are integers.

  How the given list is sorted by the bubble sort algorithms

Consider the following list of integers: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]. Show how this list is sorted by the following algorithms: bubble sort and selection.

  Write a program that reads a file containing two columns

write a program that reads a file containing two columns of floating point numbers. prompt the user for the file name. print the average of each column in java.

  What kind of mitigations would you recommend for protection

Lessons learned from the Mirai Botnet attack of 2016. What kind of mitigations would you recommend for protection?

  Workplace communication a

Your major project is related to an on-line book/CD/DVD seller. Research a number of currently available website offerings. Keep links and notes related to the websites, as you will be required to write a brief report on your findings.

  Recognize their foundation for execution

Research a specific organization to identify their foundation for execution, and post your results, including, for example, the operating model(s) for the organization.

  What is the aim of a firewall

Name and explain two of the network devices used to create a network. What is the purpose of a firewall?

  Pros of the just-in-time inventory management system

What does just-in-time inventory management have to do with Carle Heart Center in Urbana, Illinois? The Carle Heart Center is one of the most sophisticated cardiac-care facilities in the Midwest

  Implement a bottom-up non-recursive merge b sort

Implement a bottom-up non-recursive Merge b sort that uses two arrays instead of linked lists.

  Implement a votingmachine class that can be used

Implement a VotingMachine class that can be used for a simple election. Have methods to clear the machine state.

  Who effectively is exercising control

Who owns the Internet? Not physically, but in the sense of who determines what happens, how things happen, who participates etc?

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