Posted by: score July 16, 2008
Java help
Login in to Rate this Post:     0       ?        

plz guyz urgent help,

i have been asked to write an application to assign seats in airlines reservation system with capacity 10. should display: please type 1 for First Class and please type 2 for Economy. type 1 is from seat 0-5 and type 2 from 6-10, then it should display boarding pass indicatin person's seat no. and Economy or First class.

USE ONE DIMENSION ARRAY OF PRIMITIVE TYPE BOOLEAN TO REPRESENT THE SEATING CHART OF THE PLNAE. INITIALIZE ALL THE ELEMENTS OF THE ARRAY TO false  TO INDICATE ALL SEATS ARE EMPTY AND ASSIGN true TO INDICATE SEATS NO FURTHER AVAILLABE. AS WEL SHOULD ASK IF ECONOMY CLASS IS FULL, IF A PERSON WANTS A SEAT FROM FIRST CLASS AND VICE-VERSA. IF NO SEATS, DISPLAY THE  MESAGE"NEXT FLIGHT LEAVE IN 3 HOURS"

 

i m in great need of the program to be done.

anyone with the idea plz........i m so poor in Java.......this that i do't know anything i just started online...........course....its getting my nerve. thankx in advance

 

Read Full Discussion Thread for this article