btasd.blogg.se

Simple airline reservation system java source code
Simple airline reservation system java source code











simple airline reservation system java source code

If not display the message 'next flight leaves in 3 hrs'" If yes make the appropriate sear assignment. When the economy section is full ask the person if it is acceptable to be placed in the first class sectionĪnd vice versa. Should never assign a seat that has already been assigned. As each seat is assigned set the corresponding element of the array to true to indicate that the seat is no longer available.

simple airline reservation system java source code simple airline reservation system java source code

Initialize all the elements to false to indicate that all the Use a 1 dimensional array of primitive type boolean to represent the seating chart of the plane. Your application should then displayĪ boarding pass indicating the person's seat number and whether it's in the first-class or economy. Should assign a seat in the first class section (seats 1-5), if he types 2 in the economy section ( seats 6-10). Your application should display the following alternatives: 'Please type 1 for First class and please type 2 for economy'. Write an application to assign seas on each flight of the airline's only plane "A small airline has just purchased a computer for its new automated reservation system. HI all, I was wondering if anybody can help me with this exercise taken from the Deitel and Deitel Java how to program, chap 7 (I think I should clarify here that this is not an assignment because I am not on any course, I am just trying to learn java as hobby and having chose to use this book I have decided to do some of the exercises too):













Simple airline reservation system java source code