title: I need to display the highest and lowest sales values
body: <p>I need to create a program that enters daily sales for each day of the week. Once the values are entered I need to be able to display:</p>
  
  <pre><code>Sales for day 1 are ###
  
  Sales for day 2 are ###
  
  The lowest sales was XXX
  
  The highest sales was XXX
  </code></pre>
  
  <p>The problem is that I can't get my code to cout:</p>
  
  <pre><code>Sales for day 1 are XXX
  
  Sales for day 2 are XXX
  </code></pre>
  
  <p>All I can get it to say is</p>
  
  <pre><code>Sales are:
  
  XXX
  
  XXX
  
  XXX
  </code></pre>
  
  <p>And I also don't know how to find the lowest and the highest sales. We haven't even begun working with MIN &amp; MAX functions so I'm lost as to how to accomplish it.</p>
  
  <p>My code that I have so far is: </p>
  
  <pre><code>const int DAYS_SALES = 7;
  double sales[DAYS_SALES];
  int sub;
  double min = 0;
  double max = 0;
  
  for(sub = 0; sub &lt; DAYS_SALES; ++sub)
  {
      cout &lt;&lt; "Enter in the sales for day " &lt;&lt; (sub + 1) &lt;&lt; " ";
      cin &gt;&gt; sales[sub];
  }
  cout &lt;&lt; endl &lt;&lt; "The sales for day are: " &lt;&lt; endl;
  for (sub = 0; sub &lt; DAYS_SALES; ++sub)
      cout &lt;&lt; sales[sub] &lt;&lt; " " &lt;&lt; endl;
  </code></pre>
  
  <p>Any help would be appreciated!</p>