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
The highlighted items in the webpage are called …………………………………..
seraphim [82]

Answer:

highlighted items in webpage are called links.

5 0
3 years ago
We may think of relationships in the E/R model as having keys, just as entity sets do. Let R be a relationship among the entity
BaLLatris [955]

Explanation:

1

R is many - many;

in this case we have that E1 is not what should be used to determine E2 and in this same way, W2 is not what should determine E1. So non of these can be a key on its own.

2.

R is many-one from E1 to E2

in this case there are 2 tuples (f1,f2) and (e1,e2) which have to be the same if they have the same key attribute for E1. All of them are the same so all the pairs are the same.

3.

R is many-one from E2 to E1:

the explanation for this is is almost the same with that of b. we apply the same logic. since for all keys, all pairs and sets are the same.

4.

R is one-one:

E1 is what determines E2 and likewise, E2 is what determines E1. irrespective of the key that is used, key K is going to the same value of n.

8 0
3 years ago
Random stuff and pls don't report this thank you :D
skad [1K]

Answer:

hmmm....nice colors....what is it for?

Explanation:

6 0
3 years ago
Read 2 more answers
Chose the two factors that work together to create the global wind patterns that operate in the atmosphere.
WINSTONCH [101]

Yes the ansewer is c bc you can look it up!

5 0
3 years ago
Which BEST describes how the author’s purpose is revealed? A) The speaker appeals to the emotions of the audience in section 10.
tatiyna

You probably meant languge arts not Tech.

Anyways I will not be sure unless I read the book but..C most of the time is correct sooo sorry I can't help much unless I read the book

I would suggest <u>B) The speaker appeals to the emotions of the audience in section 9.</u>

<u />

I'm also sorry that I'm late but I hope someone else who searchs this up can use this

<u></u>

<u>Sorry If I'm wrong</u>

8 0
3 years ago
Other questions:
  • A new computer virus can enter the system through email or through the internet. There is a 30 % chance of receiving this virus
    11·1 answer
  • What is the primary criticism against a national identification system based on biometric data?
    13·1 answer
  • Enterprise application integration (eai) software enables users to model the business processes and interactions that should occ
    8·1 answer
  • Identify the causes of configuration problems. (choose all that apply)
    9·2 answers
  • How is a ink pen better than a digital pen.
    8·1 answer
  • Mary from sales is asking about the plan to implement Salesforce.com's application. You explain to her that you are in the proce
    9·1 answer
  • Juan has performed a search on his inbox and would like to ensure the results only include those items with attachments which co
    14·2 answers
  • The information given to you by your teachers is always accurate and should never be questioned. Please select the best answer f
    8·1 answer
  • Which network type uses a coaxial cable to receive its signal?.
    7·1 answer
  • How long is the ap computer science principles exam
    13·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!