From f9a739f5568781feda0c2faefef0232fe5d1051f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20A=2E=20Ortega?= Date: Wed, 7 May 2014 11:03:00 -0500 Subject: [PATCH] Added FIXME notices for Q1 and Q2 Q1 and Q2 are calculating incorrectly, specifically that they are ignoring the median value. --- src/MMMCalc.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MMMCalc.java b/src/MMMCalc.java index 09f1d8a..2ed934c 100644 --- a/src/MMMCalc.java +++ b/src/MMMCalc.java @@ -134,6 +134,7 @@ public class MMMCalc { } } + // FIXME: Q1 calculates incorrectly, it is supposed to be halfway between the first variable and the median variable. private static void calcQ1() { int q1Pos = numArray.length / 4; boolean exact; @@ -206,6 +207,7 @@ public class MMMCalc { } } + // FIXME: Needs to calculate haflway between the median value and the last value. private static void calcQ3() { int q3Pos = (numArray.length * 3) / 4; boolean exact;