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
Compare and contrast the leadership and leadership and management style of apple and Samsung ​
Ipatiy [6.2K]

Answer:

Samsung's business model has focused on vertically integrating supply chains and ramping up production volume. Apple has made a business strategy of focusing on design and user experience while outsourcing elements such as manufacturing. The two companies have found themselves engaged in legal battles over intellectual property and patent fights.

Hope this helps!

4 0
2 years ago
Type the correct answer in the box. Use numerals instead of words. If necessary, use / for the fraction bar.
andriy [413]

Binary values are used to denote the 'ON' and 'OFF' state of a computer. The 'ON' state is denoted by the binary value '1'

  • The 'ON' state of a computer represents the mode when the computer system is running and can be used to perform computing operations.

  • The binary values '0' and '1' are used to designate the ON and OFF state.

  • When the computer is ON, it is designated by the binary value 1 ; while the OFF state is designated by the binary value 0.

Therefore, the number which signifies the ON state of a computer is 1.

Learn more :brainly.com/question/4722254

4 0
2 years ago
I need a C++ program to ask the user to put in different numbers until zero is pressed then the program counts the numbers that
frozen [14]

Answer:

#include <iostream>

using namespace std;

int main()

{

int input = 0;

int count = 0;

int sum = 0;

int sumNegative = 0;

while (true) {

 cout << "Enter a number: ";

 cin >> input;

 if (input == 0) break;

 count++;

 sum += input;

 if (input < 0) {

  sumNegative += input;

 }

}

cout << "Count of the numbers: " << count << endl;

cout << "Sum of all the numbers: " << sum << endl;

cout << "Sum of the negative numbers: " << sumNegative << endl;

}

Explanation:

Your requirements regarding the sum and the negative numbers was a bit vague so I just did something you can probably adjust easily to your liking.

7 0
2 years ago
Does anyone know any nitro type hack??
alexgriva [62]

Answer:

yes nitro hack is where they time your hacking skills

5 0
3 years ago
Read 2 more answers
Here is what my rob-lox user USED to look like, btw what is better, Samsung or apple?
____ [38]
Apple is better then Samsung
6 0
2 years ago
Read 2 more answers
Other questions:
  • WHAT IS SQL AND HOW CAN YOU MEET THE DATA REQUIREMENTS ALSO MAINTAINING DATA INTEGRITY,AND LASTLY STATE THE FULL MEANING OF SQL
    11·1 answer
  • Which kind of software allows users to draw pictures, shapes, and other graphical images with various on-screen tools such as a
    14·1 answer
  • What pressure will be shown on the high side peessure gauge (ac system on)
    12·1 answer
  • PLEASE  HELPPPP!!!!!
    14·1 answer
  • Refer to the exhibit. If a hacker on the outside network sends an IP packet with source address 172.30.1.50, destination address
    11·1 answer
  • You have been using the same computer for several years. To extend its service life, you decide to upgrade the processor. You ch
    13·1 answer
  • Write an algorithm to find the average of three numbers: 10, 20, 30
    7·1 answer
  • Describe your previous personal or professional experience with Microsoft Word.
    9·1 answer
  • How would you open the web browser in Linux and still have access to the Linux terminal?
    14·1 answer
  • MmfbfMMMMMMMMMMMMMMMMMmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!