airline reservation java code

airline reservation java code

Write a program that simulates the booking of seats on board a small airplane. The layout of the aircraft is illustrated
below. You will be required to create a menu based system with the following choices:
(a) View Seating (b) Book a Seat (c) Cancel a Booking (d) Reset All (e) Quit
Each of the above will require a method which takes an array as a parameter. You can of course add more options to
this basic menu list if you wish. However at all times the user should be able to view the state of the aircraft bookings
i.e. option (a) and thus be presented with a representation of a 2D array similar to that below:
You are required to output the current values of the array to show the current seating arrangement in graphic format. As
can be seen, you will need output some space for an aisle to separate columns A and B from columns C and D.
Similarly rows 1-4 (non-smoking) should be output separately from rows 5 – 6 (smoking)
The grid references should also be output to the screen. A,B,C and D for the columns and 1-8 for the rows. You don’t
have to simulate the box effect as in the diagram above, but try to keep the output as clear as possible with all reference
points indicated.
Use ‘X’ to indicate that a seat is booked and a hyphen ‘-‘ to indicate that the seat is still available.
Bookings can be made by selecting option (b) At which point the user is asked which seat number (reference) they
wish to book. For example, seat B4 is selected in the diagram above.
Option (c) should allow the user to enter a booked seat reference and make it available again. Option (d) Should reset
the bookings and free up ALL seats once again.
Things to consider : Smoking or Non-Smoking:
Seats in rows 5,6,7 and 8 are designated as smoking seats. When making a booking - option (c) - the user should be
asked their preference (Smoking or non-smoking?) If for example they choose smoking and all seats are full in that
section, they should be informed of this and offered a seat in the non-smoking section. If the seats are not full in the
smoking section and they proceed to enter a reference number that is in the non-smoking section,

hi, can some one plz help me with this , even to ge tit started thnx
View Answers









Related Tutorials/Questions & Answers:
airline reservation java code - Java Beginners
airline reservation java code   Write a program that simulates the booking of seats on board a small airplane. The layout of the aircraft is illustrated below. You will be required to create a menu based system
airline reservation - Java Beginners
airline reservation example  (Airline Reservation System) A small airline has just purchases a computer for its new automated reservations system...). Please give an example of reservation
Advertisements
reservation system - Java Beginners
reservation system  hi help me write a program on a railway reservation system that records the destination of the passengers.It should be decided by the date on which they are to arrive on their destinations and also the number
railway reservation system - Java Beginners
railway reservation system  help me develop a code on a railway reservation system which maintains records of passengers traveling in the different..., the reservation of the passengers is made by supplying the train number or the the name
airline with hotels
airline with hotels  I need airlines with hotel webpages on php
how to prepare railway reservation form using core java concepts
how to prepare railway reservation form using core java concepts  write code for online railway reservation form: The following constraints are: a) Fix the no.of Tickets alloted for online reservation b) on each ticket booking
ModuleNotFoundError: No module named 'airline'
ModuleNotFoundError: No module named 'airline'  Hi, My Python... 'airline' How to remove the ModuleNotFoundError: No module named 'airline... to install padas library. You can install airline python with following command
place reservation in plane
place reservation in plane   hi,how can i write a program in Java programming to place reservation in air plane from the menu let the user to inter his/her name, age, date of traveling, and the seat in the plane
reservation of seat in plane
reservation of seat in plane  hi,how can i write a program in Java programming to place reservation in air plane from the menu let the user to inter his/her name, age, date of traveling, and the seat in the plane
Railway reservation
Railway reservation  Railway Department wants to automate the ticket reservation process. Customer should be able to check the availability of a train by giving the source and destination. Assume that there is no booking
railway reservation
railway reservation  hello sir, i am creating railway reservation... = new JLabel(ddd); lbl4 = new JLabel("Reservation System"); btnRes = new JButton("Reservation"); btnEnq = new JButton("Enquiry"); btnCont
railway reservation
railway reservation  hello sir, i am creating railway reservation... = new JLabel(ddd); lbl4 = new JLabel("Reservation System"); btnRes = new JButton("Reservation"); btnEnq = new JButton("Enquiry"); btnCont
coding for online reservation
coding for online reservation  coding for online reservation
online bus reservation
online bus reservation   online bus reservation using jsp coding
coding for railway reservation project
coding for railway reservation project  i want to help for creating coding in visual basic for railway reservation project
ticket reservation
ticket reservation  sir i need a java program for the airway online ticket resrvation using swings in java as frontend and mysql as backend..... sir ur program will be very help full for our project
Railway Reservation
Railway Reservation  i've a project on railway reservation... i need to connect netbeans and mysql with the help of jdbc driver... then i need to design the frame... aftr clickg run i need to enter data to ma frame and the data
ModuleNotFoundError: No module named 'django-reservation'
ModuleNotFoundError: No module named 'django-reservation'  Hi, My... named 'django-reservation' How to remove the ModuleNotFoundError: No module named 'django-reservation' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'redis_reservation'
ModuleNotFoundError: No module named 'redis_reservation'  Hi, My... named 'redis_reservation' How to remove the ModuleNotFoundError: No module named 'redis_reservation' error? Thanks   Hi, In your
ModuleNotFoundError: No module named 'django-reservation'
ModuleNotFoundError: No module named 'django-reservation'  Hi, My... named 'django-reservation' How to remove the ModuleNotFoundError: No module named 'django-reservation' error? Thanks   Hi, In your
JAVA code For
JAVA code For   JAVA code For "Traffic signals Identification for vehicles
java code
java code  what is the code to turn off my pc through java program
JAVA CODE
JAVA CODE  JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE
java code
java code  write a java code to convert hindi to english using arrays
java code
java code  hi any one please tell me the java code to access any link i mean which method of which class is used to open any link in java program
java code
java code  need java code for chart or graph which compare the performance of aprior algorithm and coherent rule algorithm.plz any one help me out
java code
java code  write a java code for finding a string in partiular position in a delimited text file and replace the word with the values given by user and write the file in new location
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
java code
java code  sir how to merge the cells in excel using java code please help me and also how to make the text placed in the cell to be center
java code
java code  I need the java code that would output the following: HARDWARE ITEMS CODE DESCRIPTION UNIT PRICE K16 Wood screws,brass,20mm $7.75 D24 Wood glue,clear,1 liter $5.50 M93
Java code
Java code   Create a washing machine class with methods as switchOn, acceptClothes, acceptDetergent, switchOff. acceptClothes accepts the noofClothes as argument & returns the noofClothes
java code
java code  develop a banking system in java
java code
java code  HOW TO PRINT 1 TO 100 WITHOUT USING CONDITIONAL,ANY LOOP AND ARRAY IN JAVA AND C.URGENT SIR PLZ  Hi, You can use following code: class MyClass { public static void main(String[] args) { int
java code
java code  how to extract html tags using java
Java code
Java code  Write a program which performs to raise a number to a power and returns the value. Provide a behavior to the program so as to accept any... the following code: import java.util.*; import java.text.*; class NumberProgram
java code
java code  int g() { System.out.println("Inside method g"); int h() { System.out.println("Inside method h"); } } Find the error in the following... cannot define a method inside another method. Anyways, we have modified your code
java code
java code  what is meaning bufferedreader
java code
java code  what is meaning bufferedreader
java code
java code  i want HSVcolor descriptor for color image in java coding
Java code
Java code   Create a calculator class which will have methods add, multiply, divide & subtract   Hi Friend, Try the following code: class Calculation{ public int add(int a,int b){ return a+b
Java code
Java code  An old-style movie theater has a simple profit program. Each customer pays $5 per ticket. Every performance costs the theater $20, plus...; Hi Friend, Try the following code: import java.util.*; import
java code
java code  I am beginer in java my question is how can i fill data from mysql database to jcombobox using netbeans
Java Code
Java Code  Write a java program, which creates multiple threads. Each thread performs add/delete/update operations on an ArrayList simultaneously
java code
java code  hi, Can any one tell me " How to read the data which is present om an image in java
java code
java code  Write a program in java for lru caching using two inputs one using integer and another using string of uppercase only
Java code
Java code  Create a class called Student which has the following methods: i. Average: which would accept marks of 3 examinations & return... & returns the name.   Hi Friend, Try the following code: import
Java code
Java code  Create a Bank class with methods deposit & withdraw. The deposit method would accept attributes amount & balance & returns....   Hi Friend, Try the following code: import javax.swing.*; class
Java code
Java code   Create an Employee class which has methods netSalary which would accept salary & tax as arguments & returns the netSalary which... the following code: import java.util.*; class Employee { static Scanner input=new
java code
java code  An employee _id consist of 5 digits is stored in a string variable strEmpid. Now Mr.Deb wants to store this Id in Integer type to IntEmpid. write Java statements to do
java code
java code  Write a program to find the difference between sum of the squares and the square of the sums of n numbers

Ads