Write a reservation system for an airline flight

Assignment Help Computer Engineering
Reference no: EM132116053

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.

Reference no: EM132116053

Questions Cloud

Define the basic purpose of ip precedence : Explain the purpose of QoS on a TCP/IP network. Define the basic purpose of IP Precedence, TOS, Diffserv, and ECN functionality.
Developmental psychologist hypothesized : A developmental psychologist hypothesized that children who are reared in families where more than one language is spoken will have higher abstract reasoning
The best function prototype for the given function : Assume a program contains a void function named calcNewPrice(). The function receives two double variables named oldPrice and newPrice.
What proportion of boxes is underweight : Q1: What proportion of boxes is underweight? Q2: How heavy does a box have to be in order for the box to be labeled overweight?
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.
What is the point estimate of the population mean : What is the point estimate of the population mean? Develop a 98% confidence interval for the population mean
Display two messages below the button if otherwise : Display two textboxes and a button. The user is expected to input a student's A-number into the first textbox and input a name into the second textbox.
How many class intervals are there : The midpoint of the first class interval is 19.5, and the last class interval ends at 51. How many class intervals are there?
Write a sql statement to show sku and description : Write a SQL statement to show sku and Description for all products having a SKU description that includes the word ‘foot'.

Reviews

Write a Review

Computer Engineering Questions & Answers

  Mathematics in computing

Binary search tree, and postorder and preorder traversal Determine the shortest path in Graph

  Ict governance

ICT is defined as the term of Information and communication technologies, it is diverse set of technical tools and resources used by the government agencies to communicate and produce, circulate, store, and manage all information.

  Implementation of memory management

Assignment covers the following eight topics and explore the implementation of memory management, processes and threads.

  Realize business and organizational data storage

Realize business and organizational data storage and fast access times are much more important than they have ever been. Compare and contrast magnetic tapes, magnetic disks, optical discs

  What is the protocol overhead

What are the advantages of using a compiled language over an interpreted one? Under what circumstances would you select to use an interpreted language?

  Implementation of memory management

Paper describes about memory management. How memory is used in executing programs and its critical support for applications.

  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.

  Prepare a proposal to deploy windows server

Prepare a proposal to deploy Windows Server onto an existing network based on the provided scenario.

  Security policy document project

Analyze security requirements and develop a security policy

  Write a procedure that produces independent stack objects

Write a procedure (make-stack) that produces independent stack objects, using a message-passing style, e.g.

  Define a suitable functional unit

Define a suitable functional unit for a comparative study between two different types of paint.

  Calculate yield to maturity and bond prices

Calculate yield to maturity (YTM) and bond prices

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