Answer:
Replace:
<em>//CODE HERE </em>
<em>//output the max score for each section and compute & output total too. </em>
with the following lines of codes:
<em>int num; </em>
<em>for(int i=0; i<numtakes; i++) {
</em>
<em>for(int j=0; j<numsections; j++) {
</em>
<em> cin>>num;
</em>
<em> if(num>maxScores[j]){
</em>
<em> maxScores[j] = num; }
</em>
<em>} }
</em>
Explanation:
Your program is poorly formatted. (See attachment for correct presentation of question)
What's required of the us is to complete the source program.
The codes has been completed in the Answer section above, however, the line by line explanation is as follows:
<em />
<em>This line declares num that gets user for input for each entry</em>
<em>int num; </em>
<em>This line iterates through the number of takes</em>
<em>for(int i=0; i<numtakes; i++) {
</em>
<em>This line iterates through the number of sections</em>
<em>for(int j=0; j<numsections; j++) {
</em>
<em>This gets user input for each entry</em>
<em> cin>>num;
</em>
<em>The following if condition determines the greatest entry in each section</em>
<em> if(num>maxScores[j]){
</em>
<em> maxScores[j] = num; }
</em>
<em>} }
</em>
<em>For further explanation, I've added the complete source file as an attachment where I used comments to explain each line.</em>