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

calculate the fines to assess, and generate several reports. The program will: Read the data from the file, line by line, and store the data into an array that holds ticket data objects. This array will hold a maximum of 200 ticket data objects. Calculate the speeding ticket fines to assess, based on the ticket data, and store the fines into a second array that holds double values. This array will be sized to the number of tickets issued. Produce an output file, containing the vehicle license plate numbers and speeding fines. 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 up to 10 over 10 and up to 20 over 20 Fee per MPH Over Speed Limit( for all MPH over limit) $ 4.25 $ 6.00 $ 8.10 You must define constants to hold all fixed values( court costs, MPH over speed limits, and fees per MPH) in the above chart within your method that calculates the fines. Requirements This program will implement two different types of arrays. One array will hold ticket objects, and will require an implementation class. The other array will contain primitive data type double values, and will not require an implementation class. NOTE: The ticket array and the fines array will be parallel arrays. This