Suppose a small airplane with seats numbered

Assignment Help Computer Engineering
Reference no: EM1335231

Write a Java program to assign passengers seats in an airplane. Assume a small airplane with seats numbered as follows:

1 A B C D
2 A B C D
3 A B C D
4 A B C D
5 A B C D
6 A B C D
7 A B C D

The program should display the seat pattern, with an 'X' marking the seats already assigned. For example, after seats 1A, 2B, and 4C are taken, the display should look like:

1 X B C D
2 A X C D
3 A B C D
4 A B X D
5 A B C D
6 A B C D
7 A B C D

After displaying the seats available, the program prompts for the seat desired, the user types in a seat, and then the display of available seats is updated. This continues until all seats are filled or until the user signals that the program should end. If the user types in a seat that is already assigned, the program should ask for another choice.

Reference no: EM1335231

Questions Cloud

Explain why did the fed begin to raise interest rates : Explain why did the Fed begin to raise interest rates at a point in the economic recovery with concerns over terrorism and rising energy prices causing great uncertainty.
Discuss a hierarchy of strategy : Discuss a hierarchy of strategy
Impact and use of technology in policing : The impact and use of technology in policing and the courts is a primary tool for police/courts to be productive and "keep up" with the increasing sophistication of high tech crime and criminals.
Show store- or corporation-wide incentives : Show store- or corporation-wide incentives. Generate a group recommendation for two possible avenues of same-store incentives and two possible avenues for corporation-wide incentives.
Suppose a small airplane with seats numbered : Write down a Java program to assign passengers seats in an airplane. Assume a small airplane with seats numbered.
Reviewing the fleming and koppelman article : Review the Fleming and Koppelman article from your assigned readings.
Discuss the strategy to obtain the necessary financing : Discuss the strategy you would use to obtain the necessary financing to support the expected future growth. Include your reasoning for your choice of investor to supply the necessary funds.
Expalin why did not keynesian theory provide successful : Expalin why did not Keynesian theory provide successful solutions to the German economy where unemployment currently around 14%.
Recruitment strategies to meet organizational needs : Can you help me to describe how one would use recruitment strategies to meet organizational needs.

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