Write a program using an array that ask user to input 10 numbers
<p>Exercise text:</p>

<blockquote>
  <p>Write a program using array that asks user to input 10 numbers, then calculates the average of those numbers and finds out the total number that is greater or equal to the average. For example, you have input 10 numbers as: 1,2,3,4,5,-1,-2,-3,-4,-5. The average is 0. The total number that is greater or equal to the average is 5 which are 1,2,3,4,5. </p>
  
  <p>You have to use the loop to do this problem.</p>
</blockquote>

<p>My code so far:</p>

<pre><code>using namespace std;
#include &lt;iostream&gt;

int main()
{
    double nums[10];
    double sum = 10;
    double averageNums;
    int numsGreaterThan = 0;
    for ( int i = 0; i &lt; 10; i++ )
    {
        cout &lt;&lt; "Enter number " &lt;&lt; i +1 &lt;&lt; ": ";
        cin &gt;&gt; nums;
        sum = sum + nums;
    }
    averageNums = sum / 10;

    for ( int j = 0; j &lt; 10; j++ )
    {
        if ( nums[j] &gt;= averageNums )
            numsGreaterThan++; 
    }
    cout &lt;&lt; numsGreaterThan &lt;&lt; " numbers are greater than the average.";

    system ("pause");
}
</code></pre>

<p>The errors I'm struggling with:</p>

<ol>
<li><blockquote>
  <p>Error  1   error C2679: binary '>>' : no operator found which takes a right-hand operand of type 'double [10]' (or there is no acceptable conversion)  </p>
</blockquote></li>
<li><blockquote>
  <p>Error  2   error C2111: '+' : pointer addition requires integral operand   </p>
</blockquote></li>
<li><blockquote>
  <p>IntelliSense: no operator ">>" matches these operands
          operand types are: std::istream >> double [10]  </p>
</blockquote></li>
<li><blockquote>
  <p>IntelliSense: expression must have arithmetic or unscoped enum type    </p>
</blockquote></li>
</ol>