Question: You need to paste code and the output in a word document and submit it . You need to use Java or C + +
You need to paste code and the output in a word document and submit it You need to use Java or C for writing the code.
Airline Reservations 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 the airlines only plane capacity: seats
Your application should display the following alternatives: Please type for First Class and Please type for Economy. If the user types your application should assign a seat in the firstclass section seats If the user types your application should assign a seat in the economy section seats Your application should then display a boarding pass indicating the persons seat number and whether it is in the firstclass or economy section of the plane.
Use a onedimensional array of primitive type boolean to represent the seating chart of theplane. Initialize all the elements of the array to false to indicate that all the seats are empty. As
each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is
no longer available.
Your application should never assign a seat that has already been assigned.When the economy
section is full, your application should ask the person if it is acceptable to be placed in the firstclass
section and vice versa If yes, make the appropriate seat assignment. If noYou need to paste code and the output in a word document and submit it You need to use Java or C for writing the code.
Airline Reservations 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 the airline's only plane capacity: seats
Your application should display the following alternatives: Please type for First Class and
Please type for Economy. If the user types your application should assign a seat in the firstclass
section seats If the user types your application should assign a seat in the economy section
seats Your application should then display a boarding pass indicating the person's seat
number and whether it is in the firstclass or economy section of the plane.
Use a onedimensional array of primitive type boolean to represent the seating chart of the
plane. Initialize all the elements of the array to false to indicate that all the seats are empty. As
each seat is assigned, set the corresponding elements of the array to true to indicate that the seat is
no longer available.
Your application should never assign a seat that has already been assigned.When the economy
section is full, your application should ask the person if it is acceptable to be placed in the firstclass
section and vice versa If yes, make the appropriate seat assignment. If no display the message
"Next flight leaves in hours."
You need to submit the code and program output display the message
"Next flight leaves in hours."
You need to submit the code andprogramoutput
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
