C++ Help - I can't seem to figure out the last part of this code
<p>I'm trying to get the program to display the current height of the child and the estimated height of the child. </p>

<p>I have it displaying the before and after for the first child but can't get it to display the estimated height for the rest of the children. </p>

<p>I would be very grateful if anyone could help me figure this out. Thanks!</p>

<p>Here is the code that I have:</p>

<pre><code>#include &lt;iostream&gt;

using namespace std;

int main()
{
    double height [10];
    double chgHeight [10];

    for (int x = 0; x &lt; 10; x = x + 1)
    {
        height[x] = 0.0;
        chgHeight[x] = 0.0;
    }

    cout &lt;&lt; "You will be asked to enter the heights of ten children."&lt;&lt; endl;

    for (int x = 0; x &lt; 10; x = x + 1)
    {   
        cout &lt;&lt; "Enter height of child " &lt;&lt; endl;
        cin &gt;&gt; height[x];
    }

    chgHeight[0] = height[0] * .05 + height[0];

    for (int x = 0; x &lt; 10; x = x + 1)
    {   
        cout &lt;&lt; "Child " &lt;&lt; x+1 &lt;&lt; ": Current " &lt;&lt; height[x] &lt;&lt; " Expected "&lt;&lt; chgHeight[x] &lt;&lt; endl;
    }

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