Write a reservation system for an airline flight

Assignment Help C/C++ Programming
Reference no: EM131065455

Airline Reservation

You must use Object Oriented Programming to design this project.

Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart. In addition create a array to be used as a waiting list in case the plane is full. The waiting list should be "first come first serve" that is people who are added early in the list get the priority over those who are added later. Allow the user to add three options

1. Add a passenger to the list.

a. Request the passenger's name.

b. Display a chart of the seats in the airplane in a tabular form

c. If seats are available let the passenger choose a seat. Add the passenger to the seating chart.

d. If no seats are available, place the passenger on the waiting list.

2. Remove a passenger from the list

a. Request the passengers name

b. Search the seating chart for the passenger's name and delete it.

c. If the waiting list is empty, update the array so that the seat is available,

d. If the waiting list is not empty remove the first person from the list, and give him or her the newly vacated seat.

3. Quit

You will need to use string methods defined in java.lang.String in the documentation reference.

String comparision function names are as follows equal, equalIgnoreCase.

You must use OOP Concepts learnt in the class. (As much as possible.)

Reference no: EM131065455

Questions Cloud

How much interest will cooper have earned after 6 months : How much interest will Cooper have earned after 6 months?ste your question here...
A leader acting in an unethical manner : Without including names, describe a situation in which you have witnessed a leader acting in an unethical manner. What effect did the leader's actions have on organizational or team proformance?
Write a program that uses recursion to determine one age : Write a program that uses recursion to determine one's age. The user will enter the current year and the year they were born (birth year) from the keyboard. The program will output the current age of the user. Check positive and zero cases only.
Calculate a confidence interval under the full factorial : Assuming a 5% reactivation rate, calculate a confidence interval under the full factorial, as well as the reduced factorial design (your matrix A and Matrix B above) and discuss the difference in precision or the width of the confidence interval.
Write a reservation system for an airline flight : Write a reservation system for an airline flight. Assume the airplane has 10 rows with 4 seats in each row. Use a two dimensional array of strings to maintain a seating chart. In addition create a array to be used as a waiting list in case the pla..
Determine the approximate number of american adults : determine the approximate number of American adults who would find giving up their phone more difficult than giving up their partner. Approximately nothing American adults who would find giving up their phone more difficult than giving up their pa..
Analyze the significance of the concept of leadership : 1. Analyze the significance of the concept of leadership and the different leadership styles. 4. Illustrate the role of ethics and values in guiding organizational behavior.
Calculate the constant percentage change for the model : Calculate the constant percentage change for the model.
Did nike take the right steps : Should they, and other U.S. shoe manufacturers continue to contract for making shoes in Asia? Should the U.S. government be involved in regulating such operations?

Reviews

Write a Review

C/C++ Programming Questions & Answers

  The stack-based routing scheme

the stack-based routing scheme you are to have a stack of maze locations.

  Ruby implement primitive types

How does Ruby implement primitive types, such as those for integer and floating-point data?  3-What is the single most important practical difference between Smalltalk and C++?

  Write the definition of the member function two of yclass

Write the definition of the member function two of yClass so that the private member variable a is initialized to the value of the first parameter of two, and the private member variable b is initialized to the value of the second parameter of two..

  Change unix file permission on unix

Modify selection_sort.c so that it includes the following functions:

  Declare and initialize an appropriate variable

Show the source code for a C# console application names ‘Sibs' that prints your frist name on the first line, your last name on the second line, and the number of siblings you have on the third line Declare and initialize an appropriate variable fo..

  Our string class always deletes the old character buffer

Our String class always deletes the old character buffer and reallocates a new character buffer on assignment or in the copy constructor.

  Program to check a social security number is valid or not

Write a program that prompts the user to enter a social security number in the format DDD-DD-DDDD, where D is a digit. The program displays "Valid SSN" for a correct social security number and "Invalid SSN" otherwise.

  Program to not accept a negative birth rate, negative death

I need this program to not accept a negative birth rate, negative death rate, or a population less than 2.

  Write a c++ program that asks the user for a radius r

Write a c++ program that asks the user for a radius r. The program must include a function called calcwradius that accepts the value of the radius r, and calls the function pi shown below.

  Your city''s parking violation

Your city's Parking Violation Bureau wants you to write a program to compute fines for parking violations.

  Determining loops in c and c++

At the next family gathering, your uncle asked you if you knew of any solutions for this problem. Since you are in college and taking a computer course, you know that this problem could easily be solved with the use of a computer.

  Write a pseudo code and perform algorithm analysis

Write a pseudo code and perform algorithm analysis to show the complexity is Log N - Suppose that you have an N-story building and plenty of eggs.

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