Cs 166 01 final project

  

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 01)

· Assignment (Final Project)

· Due Date: (see above)

· Description of the program

What to turn in

1. Turn in this sheet with your name on it.

2. Copy the Final Project folder into your folder in the I:koppinboxCS 166 01 folder.

Extra Credit: 10 Points

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%.







Place your order
(550 words)

Approximate price: $22

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency
Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.

Money-back guarantee

You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.

Read more

Zero-plagiarism guarantee

Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.

Read more

Free-revision policy

Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.

Read more

Privacy policy

Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.

Read more

Fair-cooperation guarantee

By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.

Read more

Enjoy 10% OFF today with the coupon code: best10