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.
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
|