2023 Write a Java program that can be used to assign seats for | Assignment Collections

Computer Science 2023 CS 166 01 Final Project

2023 Write a Java program that can be used to assign seats for | Assignment Collections

  

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

 

We give our students 100% satisfaction with their assignments, which is one of the most important reasons students prefer us to other helpers. Our professional group and planners have more than ten years of rich experience. The only reason is that we have successfully helped more than 100000 students with their assignments on our inception days. Our expert group has more than 2200 professionals in different topics, and that is not all; we get more than 300 jobs every day more than 90% of the assignment get the conversion for payment.

Place Order Now

#write essay #research paper #blog writing #article writing #academic writer #reflective paper #essay pro #types of essays #write my essay #reflective essay #paper writer #essay writing service #essay writer free #essay helper #write my paper #assignment writer #write my essay for me #write an essay for me #uk essay #thesis writer #dissertation writing services #writing a research paper #academic essay #dissertation help #easy essay #do my essay #paper writing service #buy essay #essay writing help #essay service #dissertation writing #online essay writer #write my paper for me #types of essay writing #essay writing website #write my essay for free #reflective report #type my essay #thesis writing services #write paper for me #research paper writing service #essay paper #professional essay writers #write my essay online #essay help online #write my research paper #dissertation writing help #websites that write papers for you for free #write my essay for me cheap #pay someone to write my paper #pay someone to write my research paper #Essaywriting #Academicwriting #Assignmenthelp #Nursingassignment #Nursinghomework #Psychologyassignment #Physicsassignment #Philosophyassignment #Religionassignment #History #Writing #writingtips #Students #universityassignment #onlinewriting #savvyessaywriters #onlineprowriters #assignmentcollection #excelsiorwriters #writinghub #study #exclusivewritings #myassignmentgeek #expertwriters #art #transcription #grammer #college #highschool #StudentsHelpingStudents #studentshirt #StudentShoe #StudentShoes #studentshoponline #studentshopping #studentshouse #StudentShoutout #studentshowcase2017 #StudentsHub #studentsieuczy #StudentsIn #studentsinberlin #studentsinbusiness #StudentsInDubai #studentsininternational