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

  What are the different structured loops

Which piece of pseudocode represent the checking the loop condition

  The "continue" and "break" statements

How are the "continue" and "break" statements different from the "exit" and "return" statements?

  Program two decimal places

Write a program that prompts the user to enter the mass of a person in kilograms and outputs the equivalent weight in pounds. Output both  the mass and the weight rounded to two decimal places. (Note that for  standard Earth gravity, 1 kilogram =..

  Describe the probability of the moves

Write a program in C++ to describe the Probability of the moves

  Write program function prompt user for number of elements

Write a C++ program main function which will prompt the user for the number of elements called N desired for an array which has the capacity to store 50 elements.

  Write a program to check the number

Write a program that asks the user to enter an integer from 1 to 50

  Client function that merges two instances of the sorted list

Write a client function that merges two instances of the Sorted List ADT using the following specification.

  Potential classes to be implemented in the future

Discuss any potential classes to be implemented in the future

  Inheritance and output formatting

Inheritance and Output Formatting, finish the implementation of class name and derived classes person and employee in the following code. Format the output neatly using setw() and or other setioflags features

  Design an online address book to keep track of the names

Use the Composition (Aggregation) to Programming it on C++. I use visual studio 2012. Using classes, design an online address book to keep track of the names, addresses, phone numbers, and dates of birth of family members, close friends, and certa..

  Write a program that allows users to enter a dollar amount

Write a program that allows users to enter a dollar amount for their bank account balance at the beginning of the month. Then ask the user to enter a dollar amount for any number of checks written in a month, up to 50. Include an approriate sentinel ..

  Is it always better to write optimal code

Specifically discuss the potential tradeoff between an easy to understand inefficient solution vs a difficult to follow efficient solution. Is it always better to write optimal code if the end result is difficult to follow by future programmers wh..

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