Display a short menu that allows a user to perform


Item 4 is the tester program for implementing the Amusement Park.

I am looking for an Amusement Park Tester program that is in Java. None of the answers included the tester program! I need to:

Design a tester class called AmusementParkTester. The tester class has a main() method and tests the functionality of the class AmusementPark as follows:

a. Create AmusementPark and name it "Walden Amusement Park".

b. Create a minimum of three Ticket objects and add them to the bookstore.

c. Create Apparel objects, at least two of each category, and add them to the AmusementPark.

d. Set up a loop to:

i. Display a short menu that allows a user to perform different actions in the gift shop such as looking up tickets or merchandise or purchasing items. Use all of the accessor methods in the AmusementPark to access specific items. Use the given methods to make purchases.

ii. Prompt the user for a specific action.

iii. Depending on the specific action prompt the user for additional input such as the id of a ticket or merchandise category, etc. You might want to use static methods in main() to handle each menu item separately.

iv. Perform the action and display results such as the list of merchandise that the user has requested. Use the toString() method to display AmusementPark items on the screen.

v. Prompt the user for continued access to the AmusementPark or to end the program.

Your program should handle input errors gracefully. For example, if a particular ticket is searched and not found, the program should display a message such as "Selected ticket not found." Feel free to experiment with the tester program in order to develop a more useful program.

Implementation Notes:

1) All accessor methods in AmusementPark must create a new ArrayList to copy objects into the new list. This requires loops to access objects from the corresponding instance fields and adding them to the new ArrayList.

2) Proper error handling is essential for this project.

3) Javadoc must be used to document AmusementPark, Ticket, and Merchandise.

Submission Requirements:

1. Your project submission should have four files for this assignment:

a. Ticket.java - The Ticket class,

b. Merchandise.java - The Merchandise class,

c. AmusementPark.java - The AmusementPark class,

d. AmusementParkTester.java - A driver program for testing your AmusementPark class.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Display a short menu that allows a user to perform
Reference No:- TGS02922399

Expected delivery within 24 Hours