From da36eac98adf072e3f480e0aac0eaa22713d7897 Mon Sep 17 00:00:00 2001 From: Deathsbreed Date: Mon, 14 Apr 2014 12:02:36 -0500 Subject: [PATCH] Setting up for calculations of Q1 and Q3. --- src/MMMCalc.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/MMMCalc.java b/src/MMMCalc.java index 6f8d07b..baabbab 100644 --- a/src/MMMCalc.java +++ b/src/MMMCalc.java @@ -14,7 +14,9 @@ public class MMMCalc { private static boolean verbose = false; private static float[] numArray; private static float mean = 0; + private static float q1 = 0; private static float median = 0; + private static float q3 = 0; private static float mode = 0; private static float range = 0; private static float stdDev = 0; @@ -66,7 +68,9 @@ public class MMMCalc { sortArray(); calcMean(); + calcQ1(); calcMedian(); + calcQ3(); calcMode(); calcRange(); calcStdDev(); @@ -128,6 +132,10 @@ public class MMMCalc { } } + private static void calcQ1() { + // Stuff here. + } + private static void calcMedian() { int midVar = numArray.length / 2; boolean even; @@ -164,6 +172,10 @@ public class MMMCalc { } } + private static void calcQ3() { + // Stuff here. + } + private static void calcMode() { HashMap fx = new HashMap();