educational course/tutorialoutlet.com educational course/tutorialoutlet.com | Page 46

array. The method will: o Have one parameter, the ticket object to addo Test to see if the array is full · Define a constructor that will: o Instantiate a ticket array object( using new to initialize the array reference variable andthe constant array size) o Initialize the count of tickets stored to 0 · A count of actual ticket objects storedNote: The data property definitions will only define the array reference variable. It will not create the array object.© Regis University, All Rights ReservedUnauthorized distribution( including uploading to any non-Regis Internet website) violates copyright lawWithin the TicketArraysImpl class: v A ticket data array( to hold SpeedingTicket objects) v A static constant array size( maximum items that can be held in the array) set to 200The class will have the following private data properties: v Define getters for each data property. 3. Define a second class that will implement the ticket array for this program, named: TicketArrayImplThe class will have the following public data properties:· Define a constructor, with parameters for each data property. o Use the parameters to initialize the values.· the clocked speedWithin the SpeedingTicket class: v the speed limitv vehicle license plate number( a 6-character String) v A main class to run the program1. Create a new Java NetBeans project, named as follows: LastnameJavaAssn8For example: SmithJavaAssn82. Define a Java class with properties and methods for a speeding ticket object, named: SpeedingTicketThe class will have the following private data properties:· A class to implement the object array( to hold SpeedingTicket objects)· A class to define a SpeedingTicket object · Analyze the fines to determine the high, low, and average fines, and display the results. Here are the formulas the city uses for calculating a speeding ticket fine: Ticket Fine = Court costs($ 45.00) + a fee for each mile per hour( MPH) by which the speed limit was exceeded The fee will be levied as follows: MPH Over Speed Limit Fee per MPH Over Speed Limit( for all MPH over limit) up to 10 $ 4.25over 10 and up to 20 $ 6.00over 20 $ 8.10You must define constants to hold all fixed values( court costs, MPH over speed limits, and fees perMPH) in the above chart within your method that calculates the fines.© Regis University, All Rights ReservedUnauthorized distribution( including uploading to any non-Regis Internet website) violates copyright