Question: Please write the code in java thank you. Problem 1: Airline Reservation System A small airline has just purchased a computer for its new automated

 Please write the code in java thank you. Problem 1: AirlineReservation System A small airline has just purchased a computer for its

Please write the code in java thank you.

Problem 1: Airline Reservation System A small airline has just purchased a computer for its new automated reservations system. You have been asked to develop the new system. You are to write an application to assign seats on each flight of airline's only plane (capacity : 10 seats). . Requirements: There is a business class section with seat numbers 1 to 5. There is an economy class section with seat numbers 6 to 10. Ask the user: Please type 1 for Business Class and Please type 2 for Economy. If 1, assign a seat between 1 and 5. If 2, assign a seat between 6 and 10. Use a boolean array to keep track of full seats. o boolean isFull[] = new boolean isFull[11] o is Full[i] should be set to true if seat i has been assigned. You cannot assign a seat to the user that is already full. After assigning a seat print out the section and seat number (see below). If there are no empty seats in the section the user picked, print All seats in that section are full." Keep asking for input until all the seats in the plane are full. Hint: for each section, have a variable that keeps track of the next available set to . . pass out. Sample Output: Please type 1 for Business Class Please type 2 for Economy Class choice : 1 Business Class. Seat #1 Please type 1 for Business Class Please type 2 for Economy Class choice : 2 Economy Class. Seat #6 Please type 1 for Business Class Please type 2 for Economy Class choice : 1 Business Class is full

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!