1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Studentka2010 [4]
3 years ago
11

Super Scores

Computers and Technology
1 answer:
Sindrei [870]3 years ago
8 0

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>

Download cpp
You might be interested in
__________ is the process by which previously distinct technologies come to share tasks and resources.
andre [41]

Answer:

Media convergence

Explanation:

Media convergence is the process by which previous technologies that were not related merge to becomes more closely integrated so as to share tasks and resources and also advance concurrently.

For instance, television programs, journals, radio programs, and movies, now are available on the web through smart watches, laptops and smartphones.

7 0
4 years ago
What are MS Word's default tabs?
pochemuha
File | Home | Insert | Design | Page Layout | References | Mailings | Review | View
3 0
4 years ago
Read 2 more answers
Identify when programmers use an Else statement.
Gnesinka [82]

Answer:

to tell the program to take a different action when the If statement answer is false

Explanation:

if x = 0:

     print('x equals 0')

else:

      print('x equals something else that isnt 0')

4 0
3 years ago
Read 2 more answers
In what domain electrica energy is the most use
amm1812

Answer:the main signal bearing entities are voltage and their current in circuit environments.

Explanation:

5 0
3 years ago
Give two examples of html presentation
svp [43]

Answer:

Size, colors, borders, margins, etc. can be taken as the example of HTML presentation.

5 0
3 years ago
Other questions:
  • Re-write the following arithmetic expressions as Scheme expressions and show the result of the Scheme interpreter when invoked o
    13·1 answer
  • Suppose there are two hosts, S and R. They are communicating over a TCP connection, and R has already received from S al bytes f
    11·1 answer
  • ARP only permits address resolution to occur on a single network.could ARP send a request to a remote server in an IP datagram?w
    9·1 answer
  • Which is the purpose of adding B-Roll footage to a sequence?
    10·1 answer
  • write a program that inserts on the p position of a string read from the keyboard also another string read from the keyboard
    11·1 answer
  • Life was not easier a century ago<br><br>​
    9·2 answers
  • Dr.Sanchez is creating a quiz for a history class. It will have true or false questions. What kind of variable will be needed to
    10·2 answers
  • A column does not consist of
    10·1 answer
  • 5.23 LAB: Contains the character
    8·1 answer
  • A computer cannot boot if it doesn't have ?
    9·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!