airplane seats program in java

pls..heLp me..
i really need a program for this problem..
can pls somebody help me..

HERE IS THE PROBLEM:

write a program to assign passengers seats in an airplane. Assume a small airplane with seat numberings 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 th 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 he seats available,the program should prompt for the seats desired, the user can type in a seat,and then the display of available seats should be updated.this continuous 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 end. If the user types in a seat that is already assigned,the program should say that that seat is occupied and ask for another choice.



PLEASE HELP ME...

TNX..

Comments

  • : pls..heLp me..
    : i really need a program for this problem..
    : can pls somebody help me..
    :
    : HERE IS THE PROBLEM:
    :
    : write a program to assign passengers seats in an airplane. Assume a
    : small airplane with seat numberings 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 th 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 he seats available,the program should prompt for
    : the seats desired, the user can type in a seat,and then the display
    : of available seats should be updated.this continuous 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 end. If the user types in a seat that is already assigned,the
    : program should say that that seat is occupied and ask for another
    : choice.
    :
    :
    :
    : PLEASE HELP ME...
    :
    : TNX..
    :
    hey..are we classmates? from sir Vinluans' class. This is a very terrible assignment isn't? do you have answers in our other assignment?
  • : : pls..heLp me..
    : : i really need a program for this problem..
    : : can pls somebody help me..
    : :
    : : HERE IS THE PROBLEM:
    : :
    : : write a program to assign passengers seats in an airplane. Assume a
    : : small airplane with seat numberings 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 th 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 he seats available,the program should prompt for
    : : the seats desired, the user can type in a seat,and then the display
    : : of available seats should be updated.this continuous 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 end. If the user types in a seat that is already assigned,the
    : : program should say that that seat is occupied and ask for another
    : : choice.
    : :
    : :
    : :
    : : PLEASE HELP ME...
    : :
    : : TNX..
    : :
    : hey..are we classmates? from sir Vinluans' class. This is a very
    : terrible assignment isn't? do you have answers in our other
    : assignment?



    oh!..yes!..what a small world!...
    :

  • i need a program to this question pls..heLp me..
    i really need a program for this problem..
    can pls somebody help me..

    HERE IS THE PROBLEM:

    write a program to assign passengers seats in an airplane. Assume a small airplane with seat numberings 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 th 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 he seats available,the program should prompt for the seats desired, the user can type in a seat,and then the display of available seats should be updated.this continuous 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 end. If the user types in a seat that is already assigned,the program should say that that seat is occupied and ask for another choice.



    PLEASE HELP ME...

    TNX..
  • I understand but not completely
  • First of all i would like to know which database you are using...?
  • Firstly I would like to know if this process would only takes place once(kind of game) or it should save the book and unbooked seats on exit.

    just keep be posted(or thru mail).
    One love(donmorris)
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories