Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners airline reservation java code
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


alyssia
airline reservation java code
0 Answer(s)      4 years and 6 months ago
Posted in : Java Beginners


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

Advertisement
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
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
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  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
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
coding for online reservation
coding for online reservation  coding for online reservation
coding for railway reservation project
coding for railway reservation project  i want to help for creating coding in visual basic for railway reservation project
online bus reservation
online bus reservation   online bus reservation using jsp coding
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
What is CICS?
, colleges and universities, airline reservation systems, insurance companies... Enterprise Java Beans language for handling the big number of  transaction
JAVA code For
JAVA code For   JAVA code For "Traffic signals Identification for vehicles
java code
java code  write a java code to convert hindi to english using arrays
JAVA CODE
JAVA CODE  JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE
java code
java code  what is the code to turn off my pc through java program
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  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  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  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  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
Assign Airline Seats to Passengers using Java
Assign Airline Seats to Passengers using Java Here we are going to create an application through which we can assign seats to passengers in an airplane... signals that the program should end. Here is the code: import java.util.
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
 

 

 

DMCA.com