Your Perfect Assignment is Just a Click Away

We Write Custom Academic Papers

100% Original, Plagiarism Free, Customized to your instructions!

glass
pen
clip
papers
heaphones

Using Java Eclipse

Using Java Eclipse

Using Java Eclipse

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:

1. Purchase or Cancel

2. Ticket type (first class, business class, or economy class)

3. Desired seat or seat to cancel

4. Exit the System

 

Output the seating plan in the following format:

A B C D E F

Row 1 * * X * X X

Row 2 * X * X * X

Row 3 * * X X * X

Row 4 X * X * X X

Row 5 * X * X * *

Row 6 * X * * * X

Row 7 X * * * X X

Row 8 * X * X X *

Row 9 X * X X * X

Row 10 * X * X X X

Row 11 * * X * X *

Row 12 * * X X * 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.

 

 

Add the following comments to the top of your source code:

Name

Class and Section (CS 166 02)

Assignment 05

Due Date: (see above)

Description of the program

 

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 Solution Now

Our Service Charter

1. Professional & Expert Writers: Writers Hero only hires the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of masters and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided by Writers Hero are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. Writers Hero is known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: At Writers Hero, we have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.