title: Create a 2 Dimentional C++ array for every month's sales report and determine the Highest and lowest MONTH of sales
body: <p>Problem:
  Write a program in C++ using two-dimensional array that creates the sales report from January to December in CJ Marketing Incorporated. Determine the highest and lowest month of sales.</p>
  <p>I am new to Programming and here's my code. I am looking for ways to show what month the highest and lowest sales came from. Any tips on how can I improve this code will be much appreciated. Thanks in advance.</p>
  <pre><code>#include &lt;iostream&gt;
  using namespace std;
  
  #define ARRAY_SIZE_ROW 6
  #define ARRAY_SIZE_COLUMN 2
  #define ARRAY_SIZE 12
  
  int main()
  {
  string d[ARRAY_SIZE_ROW][ARRAY_SIZE_COLUMN]={{&quot;January&quot;, &quot;February&quot;}, {&quot;March&quot;, &quot;April&quot;}, {&quot;May&quot;, &quot;June&quot;}, {&quot;July&quot;, &quot;August&quot;}, {&quot;September&quot;, &quot;October&quot;}, {&quot;November&quot;, &quot;December&quot;}};
  int a[ARRAY_SIZE_ROW][ARRAY_SIZE_COLUMN]={};
  int b[ARRAY_SIZE_ROW][ARRAY_SIZE_COLUMN]={};
  int c=0, e=0;
  
  for (int i=0; i&lt;ARRAY_SIZE_ROW; i++)
  {
     for (int j=0; j&lt;ARRAY_SIZE_COLUMN; j++)
     {
       cout &lt;&lt; &quot;Enter the sales for  &quot;&lt;&lt;d[i][j]&lt;&lt;&quot; &quot;;
       cin &gt;&gt; b[i][j];
     }
   }
  
  c = b[0][0];
  e = b[ARRAY_SIZE_ROW][ARRAY_SIZE_COLUMN];
  
  for (int i=0; i&lt;ARRAY_SIZE_ROW; i++)
  {
      for (int j=0; j&lt;ARRAY_SIZE_COLUMN; j++)
      {
          if (b[i][j] &gt; c)
          {
              c = b[i][j];
          }
          if (b[i][j] &lt; e)
          {
              e = b[i][j];
          }
      }
  }
  
  cout &lt;&lt; &quot;\nGreatest sales is: &quot; &lt;&lt; c;
  cout &lt;&lt; &quot;\nSmallest sale is: &quot; &lt;&lt; e;
  cout&lt;&lt;&quot;\n&quot;;
  return 0;
  </code></pre>
  <p>}</p>