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

  Calculate and show the percentage of calories

Calculate and show the percentage of calories

  What is the state of it systems development

What is the current state of IT systems development? How do systems development approaches affect  business?

  How will you explain how arrays are used

If you were explaining an array ti a friend who is learning Java. how will you do so?

  Calculating the overall class average

It is now the end of the semester and Alberta would like to have a program which inputs each student`s test scores and outputs average score for every students and the overall class average.

  Find the collection of decidable languages is closed

find the collection of decidable languages is closed.

  Find out and display the total owed for all taxpayers

A taxpayer's federal tax due is calculated as follow. First, the taxpayer gets a dependency exemption deduction of $2,000 for each child. So, if a taxpayer has two children, he or she would get a dependency exemption deduction of $4,000. A taxpaye..

  Write down a swing applet that displays

Write down a Swing applet that displays your name (Gary Vega) in blue the first time the user clicks a JButton4, and then displays your name larger and in gray second time the user clicks the JButton. Save program as JBlueGray.java

  Challenges for enterprise system integration

State and discuss the challenges legacy systems pose for the enterprise system integration. Give specific examples in order to support your response.

  What levels of osi model tcp/ip functions

Use short answers to define the difference (including the advantages and disadvantages of) between.

  Developing countermeasures against dos attacks

Explain whether the administrators of server systems still have to be concerned about, and take the further countermeasures against DoS attacks, if so, what kinds of attacks may still happen, and what measures can be taken in order to decrease the..

  Advantages of technologies

List some of the advantages of some of current technologies explained in our reading this week involving VoIP, Virtual Private Networks, Unified Communications, Wi-Fi and wireless technologies such as RFID.

  Show both the subscript of the largest item in arr

show both the subscript of the largest item in arr. want help with writing a program that: Lets arr be an array of 20 integers

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