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
Viefleur [7K]
2 years ago
13

You are given a list of students' names and their test scores. Design an algorithm that does the following: a. Calculates the av

erage test scores. b.
Mathematics
1 answer:
sertanlavr [38]2 years ago
5 0

Answer:

Complete Question

a. Calculates the average test scores.

b. Determines and print the names of all the students whose test score is below the average test score.

c. Determines the highest test score.

d. Prints the names of all the students whose test score is the same as the highest test score.

Input N; //N represents number of students

Students_Names = {};

Students_Scores = {}

Average = 0

For I = 1 to N

Input Students_Names[I]

Input Students_Scores[I]

Next I

//Calculate Average Test Score

j = 0

Do

Average = Average + Students_Scores[j]

j = j + 1

While (j<N)

Average = Average/N

Print Average.

k = 0

//Print below average

Do

If(Students_Scores[k] < Average)

Print Students_Names[k] + " score is "+ Students_Scores[k]+ " and it is below average"

k = k+ 1

While (k<N)

Highest_score = 0

m = 0

Do

If(Students_Scores[m] > Highest_score)

Highest_score = Students_Scores

m = m+1

While (m<N)

Print "Highest Score is" + Highest_score

n = 0

Do

If(Students_Scores[n] == Highest_score)

Print Students_Names[n] + "has the same score has the highest score"

n = n+1

While (n<N)

        Compare_Score = List_of_students(k);

    }

}

Highest_Score = Compare_Score

Read more on Brainly.com - brainly.com/question/13058173#readmore

You might be interested in
What is 5x + 22 - 6x - 23<br> it is from algebra
ANEK [815]

Answer:

Step-by-step explanation:

Bring the like terms together

5x + 22 - 6x -23 = 5x - 6x + 22 -23    {now, add/subtract the like terms}

=  -x -1    

4 0
3 years ago
Solve for p.<br><br> 2(p + 1) = 24
tensa zangetsu [6.8K]
2p + 2 = 24
2p = 22
p = 22/2
p = 11
5 0
2 years ago
Read 2 more answers
A new pain reliever is advertised as being 97%
Likurg_2 [28]

Answer:

B. 0.694

Step-by-step explanation:

Probability is the ratio of the number of possible outcome to the number of total outcome.

Given that the pain reliever is advertised as being 97%  effective, for it to be effective in 12 independent trials

= (97%) ^ 12

= 0.693842361

The is approximately 0.694 to 3 decimal places

6 0
2 years ago
Read 2 more answers
A person stands 10 feet away from the base of a 300-foot office building.
snow_tiger [21]

Answer:

The answer will be A.

Step-by-step explanation:

5 0
3 years ago
Read 2 more answers
Which statement best reflects the solution(s) of the equation? 1/x+1/x−3=x−2/x−3
Virty [35]
It is a i hope that help
5 0
3 years ago
Read 2 more answers
Other questions:
  • (Please respond quickly!)
    11·2 answers
  • Toby's Tiny Toys have fixed expenses of $53,900 for the production of their tiny toys. Toby's has a variable expense of $12.50 a
    14·1 answer
  • Solve 6 1 - (2 4/16 +3 2/3)<br>Do the operation in parentheses first Show all your steps.​
    9·1 answer
  • Missing numerator or denominator.<br> 1 / 2 = / 4
    8·2 answers
  • Solve and show all work: (−3)^2=
    15·1 answer
  • If f(x)=x2 + 3 and g(x) = 4x – 9, find f(4)+ g(-3).
    12·1 answer
  • 6/3=22/x (i really need help
    8·1 answer
  • I really need help on this question, thank you!
    5·1 answer
  • I need help i do not understand
    14·1 answer
  • Elsa sold 24 drawings for $12 each at the art fair. She is going to use ‡ of the money to buy books. The rest of the money is go
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!