The Iditarod is a dogsled race from Anchorage to Nome that takes many days.
We want to take a list of the times when the competitors crossed the
finish line and convert that into the average number of minutes to complete
the race.
The race starts on day 1 at 8:00 AM. We are given a list of finish times as
a String[], where each finish time is formatted as
where hh is exactly 2 digits giving the hour, mm is exactly 2 digits giving
the minute, x is either 'A' or 'P', and n is a positive integer less than 100
with no leading zeros.
So each string has exactly 15 or 16 characters (depending on whether n is
less than 10).
Create a class Iditarod containing method avgMinutes that is given a
String[], times, and that returns the average number of minutes taken by the
competitors to complete the race. Round the returned value to the nearest
minute, with .5 rounding up.
