Create a seating reservation program for podunk airlines

Assignment Help Computer Engineering
Reference no: EM132137124

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: EM132137124

Questions Cloud

What is the risk-free rate of return : If a stock has a beta coefficient of .8 and a required rate of return equal to 11%, while the market return is equal to 12.5%, what is the risk-free rate of ret
Required rate of return on the less risky stock : By how much does the required rate of return on the riskier stock exceed the required rate of return on the less risky stock.
What would be some of the risks associated : In your role as a project manager at an IT company, you are tasked with shortening the critical path of the project and saving money. Is this possible?
What is inventory : What is inventory and why is it important for your business, investors or potential lenders?
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.
How many yen do you need to buy if the exchange : How to find the amount of US dollars needed to purchase 1 swiss franc if the exchange rate is 0.9897 Swiss francs per U.S. dollar
Performance and financial position : How would you evaluate flash memory's performance and financial position?
Create propositional sentences based upon each suspects : Create Propositional Sentences based upon each suspects' statements Followed by the Truth Table.
What is the total cash outflow for buying : What is the total cash outflow for buying and for leasing a motor vehicle with a cash price of $24,000?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down a 200- to 300-word short-answer response for the

write a 200- to 300-word short-answer response for the followingin what business database environments is

  Write down an application that reads 3 integers

Write down an application that reads 3 integers

  What procedures would you follow if you were told

Create role customer_entry. Grant role customer_entry permission to update OE.CUSTOMERS table.

  What are cgi programs and how are they invoked

What is HTTP? Which port number does it use? What are CGI programs? How are they invoked? How do you access home page of Web server running on your own machine?

  Calculate the actual shipping cost

To calculate the shipping cost, figure the shipping rate based on the weight, then use the number of miles to calculate the actual shipping cost.

  Describe a scheme that allows for buy and sell orders

Describe a scheme that allows for buy and sell orders to be entered in O(logn) time, independent of whether or not they can be immediately processed.

  What is a processor and what components does it have

What is a processor? What components does it have? What makes a microprocessor different from the processor of a large computer?

  Describe how to use d so that s stores all the elements of t

Describe how to use D so that S stores all the elements of T below all of its original elements, with both sets of elements still in their original order.

  Define open and closed loop control systems

Define open and closed loop cotrol systems.Explain difference between time varying and time invariant control system wth suitable example.

  Define project other than earned value measurement

What other ways can you track and measure performance of a project other than Earned Value Measurement (EVM)

  Subtraction using 1s compliment and 2s compliment

Perform the given subtraction using 1's compliment and 2's compliment.

  Compute both the mean and standard deviation

Write a program that computes and prints the mean and standard deviation of a list of integers x1 through xn. Assume that there will be no more than 50 input.

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