@@ -0,0 +1,1940 @@
+/**%0A * %0A */%0Apackage mathsquared.resultswizard2;%0A%0A/**%0A * Represents a method by which tied contestants are assigned a particular place. All contestants are assigned the place mandated by the TiePlaceAssignment for the event.%0A * %0A * @author MathSquared%0A * %0A */%0Apublic enum TiePlaceAssignment %7B%0A    /**%0A     * Assigns the place at the top of a range.%0A     */%0A    TOP %7B%0A        public int assignPlace (int placeOne, int placeTwo) %7B%0A            return (placeOne %3C placeTwo) ? placeOne : placeTwo; // return the LOWER number%0A        %7D%0A    %7D,%0A    /**%0A     * Assigns the place at the bottom of a range.%0A     */%0A    BOTTOM %7B%0A        public int assignPlace (int placeOne, int placeTwo) %7B%0A            return (placeOne %3C placeTwo) ? placeTwo : placeOne; // return the HIGHER number%0A        %7D%0A    %7D,%0A    /**%0A     * Assigns the place at the middle of a range, rounding towards the better (lesser) place.%0A     */%0A    MID_ROUND_BETTER %7B%0A        public int assignPlace (int placeOne, int placeTwo) %7B%0A            int high = (placeOne %3C placeTwo) ? placeOne : placeTwo;%0A            int low = (placeOne %3C placeTwo) ? placeTwo : placeOne;%0A            int diff = low - high; // the number of places under consideration minus one (fencepost effect)%0A            return high + diff / 2; // halfway through the range--since division truncates, this will round towards high%0A        %7D%0A    %7D,%0A    /**%0A     * Assigns the place at the middle of a range, rounding towards the worse (greater) place.%0A     */%0A    MID_ROUND_WORSE %7B%0A        public int assignPlace (int placeOne, int placeTwo) %7B%0A            int high = (placeOne %3C placeTwo) ? placeOne : placeTwo;%0A            int low = (placeOne %3C placeTwo) ? placeTwo : placeOne;%0A            int diff = low - high; // the number of places under consideration minus one (fencepost effect)%0A            return low - diff / 2; // halfway through the range--since division truncates, this will round towards low%0A        %7D%0A    %7D;%0A%7D%0A

Add and implement TiePlaceAssignment