
Public void firstClassSeat() // assign a first class seatįor ( int count = 1 count <= 5 count++ ) ("Please type 1 for First Class or 2 for Economy: ") import īoolean seating = new boolean /* create 10 seat numbers (array will not be used). If no, display the message "Next flight leaves in 3īelow is what I've come up with. If yes, make the appropriate seatĪssignment. When the economy section is full, your application shouldĪsk the person if it is acceptable to be placed in the first-class Your application should never assign a seat that has already beenĪssigned. Indicate that the seat is no longer available. Is assigned, set the corresponding elements of the array to true to Initialize all the elements of theĪrray to false to indicate that all the seats are empty. Use a one-dimensional array of primitive type boolean to represent Person's seat number and whether it is in the first-class or economy YourĪpplication should then display a boarding pass indicating the Should assign a seat in the economy section (seats 6–10). If the user types 1, your application should assign a seat in theįirst-class section (seats 1–5). Your application should display the following alternatives: You are to write an application toĪssign seats on each flight of the airline’s only plane (capacity: 10

You have beenĪsked to develop the new system. (Airline Reservations System) A small airline has just purchased a computer for its new automated reservations system. The current problem I've just been working on is this: Would it be possible to get some feedback on some code I've just written? I've been working my way through Deitels' Java How to Program for the past few months and thought I'd better ask for some help before my bad coding habits get too ingrained.
