eclipse java program

Write a Java program that can be used to assign seats for a commercial airplane.Use Final Project as the folder name.The airplane has 13 rows, with 6 seats in each row.Rows 1 and 2 are first class, rows 3 to 7 are business class and rows 8 to 13 are economy class.Your program prompts the user to enter the following information:

  • Purchase or Cancel
  • Ticket type (first class, business class, or economy class)
  • Desired seat or seat to cancel
  • Exit the System

Output the seating plan in the following format:

A B CD E F

Row 1* * X* X X

Row 2* X *X * X

Row 3* * XX * X

Row 4X * X* X X

Row 5* X *X * *

Row 6* X ** * X

Row 7X * ** X X

Row 8* X *X X *

Row 9X * XX * X

Row 10* X *X X X

Row 11* * X* X *

Row 12* * XX * X

Row 13* * ** X *

Here * indicates that the seat is available; X indicates that the seat has been assigned.Make this a menu-driven program; show the user’s choices and allow the user to make the appropriate choices.Here are the choices:

  • Purchase a Ticket
  • Cancel a Ticket
  • Display Seating Plan
  • Exit

What is required:

  • Methods must be used for the menu and each of the menu choices except for Exit.
  • Be sure that the person enters a seat that matches the type of ticket they specify.

extra

When the person chooses either Purchase or Cancel, ask how many tickets and then display how much they owe or how much they will be credited.First class tickets are $350.00 each, Business class tickets are $250.00 each and Economy class tickets are $150.00 each.Tax on the purchase is 7%.





ORDER YOUR ORIGINAL PAPER

Request for a custom paper or place a new order

Assignment Solutions For You


THE BEST CUSTOM ESSAY WRITING SERVICE AT YOUR FINGERTIPS

Forget All Your Assignment & Essay Related Worries By Simply Filling Order Form