/* * Stores and calculates stats for the mean July temperatures * in Salem starting in the year 1903. */ package temperatures; /** * * @author */ public class Temperatures { private int startYear = 1903; // starting year for the temperatures // Mean July temperatures in Salem, Oregon from 1903 to 2015 private double temperatures[] = { 63.6, 66.8, 68.8, 72.0, 67.6, 70.4, 62.9, 67.2, 69.5, 67.0, 66.1, 68.3, 66.5, 64.2, 69.0, 66.3, 66.7, 64.7, 65.1, 69.5, 67.6, 67.3, 69.3, 70.8, 69.6, 68.0, 65.2, 62.4, 66.6, 63.7, 65.0, 64.5, 65.9, 65.5, 65.7, 69.2, 67.8, 66.5, 72.0, 68.6, 67.0, 67.7, 68.1, 67.3, 65.7, 65.5, 66.0, 67.3, 66.7, 67.5, 64.6, 62.7, 62.4, 67.7, 64.5, 71.2, 67.9, 67.6, 67.5, 64.3, 61.9, 66.4, 67.2, 65.2, 67.6, 66.1, 64.9, 67.2, 67.3, 67.5, 67.4, 65.8, 67.0, 65.3, 64.5, 68.8, 67.9, 65.5, 65.0, 65.6, 64.3, 65.4, 70.1, 63.5, 64.8, 66.8, 64.6, 69.6, 68.0, 68.9, 63.2, 69.1, 68.5, 70.2, 66.9, 69.6, 66.1, 66.0, 66.0, 68.8, 70.2, 70.0, 68.9, 69.8, 69.9, 68.0, 71.2, 67.5, 65.9, 66.8, 70.5, 72.5, 72.8}; public Temperatures() { System.out.println("Mean July temperatures in Salem, Oregon from 1903 to 2015\n"); } public double calcAverage() { double average = 0; return average; } public double calcMax() { double max = temperatures[0]; // why is this a good starting value? return max; } public double calcMin() { double min = temperatures[0]; // why is this a good starting value? return min; } public void graph() { } public String toString() { String tempList = ""; return tempList; } }