Answered step by step
Verified Expert Solution
Question
1 Approved Answer
DO NOT COPY OTHER SIMILAR ANSWERS TO THIS QUESTION! READ IT BEFORE ANSWER PLEASE! Use JOptionPane Please! JOPTIONPANE!! If JOptionPane is not used, I will
DO NOT COPY OTHER SIMILAR ANSWERS TO THIS QUESTION!
READ IT BEFORE ANSWER PLEASE!
Use JOptionPane Please! JOPTIONPANE!!
If JOptionPane is not used, I will not give thumbs up.
Programming Assignment 2 Scenario: DC Bus Tours has asked you to create a new application that will keep track of their different bus tours. DC Bus Tours has 15 buses with a capacity of 40 seats each. Each Bus tour is tracked by a Bus Tour Identifier (must be 4 characters long with the first two being upper case characters and the last two being only digits), Name of the Bus and general ticket cost. Additionally, each bus tour should track how many seats have been sold. Create a program with a menu that allows a user to select one of the following options: 1) Create Bus Tour - This option will allow a user to create a new bus tour by entering all information about the bus tour. However, if the maximum number of bus tours (15) has already been reached, an error message should display instead. 2) Remove Bus Tour - This option will allow a user to delete a bus tour from service. To enable this, the user must first see a list of all bus tours available. The user may then select which bus tour to delete. However, if the user chooses an invalid bus tour, or if there are no bus tour to choose from, the user should be provided with an error message. 3) Sell Tour Ticket - This option will allow a user to sell a ticket for one of the bus tours by selecting a bus tour. If the user chooses an invalid bus tour, or if there are no seats available for the specified type, then user should be provided with an error message. 4) Display Bus Tours - This option will allow a user to view all information about all bus tours, including the number of tickets sold and the money earned. However, if there are no bus tour created, the user should be provided with an error message. This option will also show the current number of bus tours entered and total amount of money earned from selling tickets across all current bus tours. 5) Exit - This option will exit the program. **DC Bus Tours** Choose one of the following option: 1. Create Bus Tour 2. Remove Bus Tour 3. Sell Tour Ticket 4. Display Bus Tour 5. Display Report 6. Exit Enter your choice Sample Report Note: - You may assume a user will NOT enter two bus tours with the same ID and bus name. - Your solution must use object-oriented techniques (No points earned for a procedural solution). - Your solution must demonstrate use of arrays - Your solution must be designed as a modular solution using methods other than main, with each method performing one task. - Your solution must include appropriate constants, constructors, accessors, mutators, and special purpose methods (including a toString() method) with exception handling, as necessary in support of the problem. - Your solution must not import any Java library other than JOptionPane. - You may not use System.exit, or any variant that exits the program in the middle of the program. The program should only exit once the algorithm has finished completing. - Your solution may not use any functions or language constructs not covered during IT 106 or this semester's IT 206 without prior authorization from your instructor, even if you know other functions or language constructs. Doing this may lead to a substantial grade penalty, a grade of zero, or an Honor Code inquiry. When in doubt, ask! Hints: - Don't forget what you learned about working with array insertions and deletions from IT 106. - Think about what type of validations might be appropriate for this application. Make sure these are all handled. - Remember the methods summarizing data on multiple objects should be created in the implementation class 1) List and describe the purpose of each class that will be needed to solve this problem a. You must separately identify (list) and describe the purpose of each class. One or two sentences per class should be sufficient. 2) Data Definition Class(es) - Create a detailed UML Class Diagram, listing and explaining all class variables, accessors, mutators, special purpose methods, and constructors associated to each data definition class. 3) Write a well-documented, efficient Java program that implements the solution design you identified in 1 to 3 above. Include appropriate documentation as identified in the documentation expectations document
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started