Question: TicketMaster Functionality: The menu is displayed with 6 options (4 sorts, 1 search, 1 quit) Entering a non-numeric character brings up a prompt to enter

TicketMaster Functionality: The menu is displayed with 6 options (4 sorts, 1 search, 1 quit) Entering a non-numeric character brings up a prompt to enter a number 1-6 Entering a number outside of 1-6 brings up a prompt to enter a number 1-6 After entering bad data when a valid number 1-6 is entered, the choice is accepted and the correct choice is completed The menu reprints after each option is completed The menu continues interaction with the user until the user wants to quit Enter the value to quit and the program ends The option to sort A-Z works The option to sort Z-A works The option to sort low-high works The option to sort high-low works Select the option to search, then select Chicago or Las Vegas. You should see four options, regardless of the capitalization of Chicago. Select the option to search and select Algonquin. You should see no cities and instead display a message that there are no shows available. Code Review: Show.java class: Private Instance variable(s) Constructor instantiates variable values and any objects toString method nicely formats and returns a String for the Show object get and set methods (as needed) JavaDoc comments are used for non-get/set methods TicketMaster.java class: Private Instance variable(s) Constructor instantiates variable values and any objects A method that reads in data from the text file for ALL shows and then closes the Scanner when done reading data from the file. Search method finds ALL shows in the city specified. If there are no shows, then a message is displayed to tell the user. The alpha A-Z and Z-A sort method(s) sort the ArrayList of Show objects using Selection Sort The swap is done outside the inner loop The numeric low-high and high-low sort method(s) sort the ArrayList of Show objects using Insertion Sort. JavaDoc comments are used for non-get/set methods TicketMasterDriver.java class: Constants are created and used in the decision statements for the 6 menu choices Helper methods are created and used to keep the main method less cluttered A helper method is used to get the user menu choice and then validate the value is between 1-6 JavaDoc comments are used for all methods methods User Input and Output: The output is nicely formatted and easy to read User interaction is self-explanatory The program must protect itself against ALL bad input from the user. Only ONE Scanner object for keyboard input is created throughout the entire lab - in ANY of the three files. The Scanner object for the keyboard is closed when the user wishes to quit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!