title: Trying to display a string of words from an array that contains integers
body: <p>I am working on this problem, and I'm stuck at displaying what I need to. Here is the question:</p>
  <blockquote>
  <p>Write a program that determines which of a company's four divisions (Northeast, Southeast, Northwest, and Southwest) had the greatest sales for a quarter. It should include the following two functions, which are called by main.</p>
  <ul>
  <li><p>double getSales() is passed the name of a division. It asks the user for the division's quarterly sales figure, validates the input, then returns it. It should be called once for each division.</p>
  </li>
  <li><p>void findHighest() is passed the four sales totals. It determines which is the largest and prints the name of the high-grossing division, along with its sales figure.</p>
  </li>
  </ul>
  </blockquote>
  <p>I was able to figure everything out except for showing the division name. I'm new to coding in general, so please bear with me if I have other mistakes here that I'm unaware of. I have looked up everything I could, and made so many changes, and am still lost. Please help!</p>
  <p>Here is my code:</p>
  <pre><code>#include &lt;iostream&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  // Variable Declerations
  
  
  const string NE = &quot;Northeast&quot;;
  const string SE = &quot;Southeast&quot;;
  const string NW = &quot;Northwest&quot;;
  const string SW = &quot;Southwest&quot;;
  
  double getSales(string);
  void findHighest(double, double, double, double);
  
  int main()
  {
      double salesNE, salesSE, salesNW, salesSW;
      string division;
  
  
      salesNE = getSales(NE);
      salesSE = getSales(SE);
      salesNW = getSales(NW);
      salesSW = getSales(SW);
  
      findHighest(salesNE, salesSE, salesNW, salesSW);
  
      cout &lt;&lt; &quot;by &quot; &lt;&lt; division &lt;&lt; endl;
  
      return 0;
  
  }
  
  double getSales(string division)
  {
      double sales;
      cout &lt;&lt; &quot;Enter the quarterly sales figure for &quot; &lt;&lt; division &lt;&lt; endl;
      cin &gt;&gt; sales;
  
      while (sales &lt; 0)
      {
          cout &lt;&lt; &quot;Invalid input. Please enter a positive integer.&quot;;
          cin &gt;&gt; sales;
      }
  
      return sales;
  }
  
  
  void findHighest(int salesNE, int salesSE, int salesNW, int salesSW)
  {
      int divisions[] = { salesNE, salesSE, salesNW, salesSW};
      int max;
  
      max = divisions[0];
      for (int count = 1; count &gt; 5; count++)
      {
          if (divisions[count] &lt; max)
              max = divisions[count];
      }
  
      /*
      cout &lt;&lt; division &lt;&lt; endl; - does not show.
      */
  
      cout &lt;&lt; &quot; is the division with the highest sales total of: &quot; &lt;&lt; max &lt;&lt; endl;
  }
  </code></pre>