with the fines report. The method should: o Have one parameter, the fines arrayo Read the filename for the report output file from the user. o Try to open the report output file · Store the calculated fine in the fines array.§ Calculate the ticket fine.§ Access the clockedSpeed and speedLimit data stored in the object using getters.§ Define a method to calculate and store values in the fines array. The method will: o Have one parameter, the empty fines arrayo Define constants for all fixed values in the calculations( from page 1 of this assignment). o For each ticket stored in the ticket array:· Display a message that explains which file could not be opened. o Return the count of tickets stored in the array.© Regis University, All Rights ReservedUnauthorized distribution( including uploading to any non-Regis Internet website) violates copyright lawv Display the number of SpeedingTicket objects stored in the ticket data array. o Catch any FileNotFoundException exceptions. When caught:§ Close file.§ Set a value to exit the loop( so no more data will be read). Loop until there is no more file data or an exception is thrown. Ø Also display a message that no more data will be read from the file. Ø Display the message passed back via the throw. Ø Catch any thrown ArrayIndexOutOfBoundsException exceptions. v Try to call the instance method to add the ticket object to the ticket dataarray( this is an instance method of the TicketArrayImpl class) v Call the constructor to create a new SpeedingTicket object. v Read the three data items from one line of data in the input data filev In a loop:§ Display a message that the program is reading the file data § Otherwise, it will return 0, to indicate the file could not be opened / read. o Implement code to try to open the input data file. If the file opened:§ If the file was opened successfully, the method will return the number of ticketsstored in the array.§ Define a method to read all the data from the input file and store the ticket data by addingSpeedingTicket objects into the array. The method will: o Have one parameter: the name of the data input file( String) o Return an int value · Otherwise, store the ticket object into the array and increase the ticket count § Include a message to pass to the exception handler that states thearray is full and stating which license cannot be added.· If the array is full, will throw an ArrayIndexOutOfBoundsException § Define an instance method to add one SpeedingTicket object to the ticket data