Amusement Park Programming Project Project OutcomesUse the Java selection constructs (if and if else).Use the Java iteration constructs (while, do, for).Use Boolean variables and expressions to control iterations.Use arrays or ArrayList for storing objects.Proper design techniques.Project RequirementsYour job is to implement a simple amusement park information system that keeps track of admission tickets and merchandise in the gift shop. The information system consists of three classes including a class to model tickets, a class to model gift shop merchandise, the amusement park, and the amusement park tester. The gift shop supports access to specific merchandise in the park's gift shop and to purchase the merchandise or to order new merchandise for the gift shop. The UML diagram for each class (except the tester class) is given below.Develop a simple class that models admission tickets. Each admission is described by several instance fields:A ticket number as a long integer to identify the unique ticket,A ticket category represented as a String to store the category of the ticket (i.e. adult, child, senior),A ticket holder represented as a String to store the name of the person who purchased the ticket,A date represented as a Date to store the admission date for the ticket,A price represented as a double to store the price of the ticket,A purchase status represented as a boolean to indicate if the ticket has been purchased (or is reserved).In addition to these fields, the class has the following constructors and methods:A parameterized constructor that initializes the attributes of a ticket.setPrice(double price) to change the price of a textbook.changePurchaseStatus(boolean newStatus) to change the purchase status of the ticket.Accessor methods for all instance fields.toString() to return a neatly formatted string that contains all the information stored in the instance fields.Develop a simple class that models merchandise available in the gift shop such as t-shirts, sweatshirts, and stuffed animals. The class has several instance fields:An ID as a long integer to identify the specific merchandise item,A category as a String to store the specific type of merchandise,A description as a String to store the description of the merchandise,A price represented as a double to store the price of the merchandise,An instock as a boolean to indicate if the merchandise is instock or on- order.Valid values for category include "T-Shirt", "Sweatshirt", and "Stuffed Animal", as well as any additional category you choose to support. If invalid values are entered, an error message must be printed and the category instance field must be set to "UNKNOWN".In addition to these attributes, the class has the following constructors and methods:A parameterized constructor that initializes the attributes of a merchandise item.setPrice(double price) to change the price of the merchandise.setInstock(boolean newStatus) to change the status of the merchandise item.Accessor methods for all instance fields.toString() to return a neatly formatted string that contains all the information stored in the instance fields. Merchandise -id : long -category : String -description : String -price : double -inStock : boolean +Merchandise(String, String, String, double, boolean) +setPrice(double) +setInstock(boolean) +getId() : String +getCategory() : String +getDescription() : String +getPrice() : double +getInstock() : boolean +toString() : String Develop class AmusementPark that keeps track of tickets and gift shop inventory. The AmusementPark uses two ArrayLists to store Ticket and Merchandise objects. The AmusementPark provides several methods to add merchandise to the gift shop and to access merchandise. The following UML diagram describes the class, the constructor, and the methods: AmusementPark -tickets : ArrayList
This question was answered on: Sep 21, 2023
This attachment is locked
Our expert Writers have done this assignment before, you can reorder for a fresh, original and plagiarism-free copy and it will be redone much faster (Deadline assured. Flexible pricing. TurnItIn Report provided)
Sep 21, 2023EXPERT
We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.
You can also use these solutions: