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]
3 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]3 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
Directions: Calculate the percent increase or decrease between the starting and ending
Sveta_85 [38]

I'll do the first two to get you started

===============================================

Problem 1

A = 3 = starting value

B = 10 = ending value

C = percent change

C = [ (B - A)/A ] * 100%

C = [ (10-3)/3 ] * 100%

C = (7/3) * 100%

C = 2.3333333 * 100%

C = 233.33333%

C = 233.3%

The positive C value means we have a percent increase. If C was negative, then we'd have a percent decrease.

<h3>Answer: 233.3% increase</h3>

===============================================

Problem 2

A = 9 = start value

B = 20 = end value

C = percent change

C = [ (B - A)/A ] * 100%

C = [ (20-9)/9 ] * 100%

C = (11/9)*100%

C = 1.2222222222*100%

C = 122.22222222%

C = 122.2%

<h3>Answer: 122.2% increase</h3>
7 0
3 years ago
Read 2 more answers
3.14 x 6.25 step by step
katen-ka-za [31]

Answer:

Step-by-step explanation:

3.14x6.25

19.625

8 0
3 years ago
A number cube has faces labeled 1-6. What is the probability of rolling a 4 on the number cube and landing on a 2 on this spinne
Lunna [17]
I think its A once again i THINK its A sorry if im wrong 
 
<span />
6 0
3 years ago
john's parents deposited $1000 into a savings account as a college fund when he was born.how much will john have in this account
Nookie1986 [14]
3.25 x 18 = 58.50
1000 - 58.50 = 941.50

Answer is 941.5
6 0
4 years ago
Read 2 more answers
3(4x-9)&gt;=2x+12<br> &gt;= is greater than equal to
ValentinkaMS [17]
12x-27=2x+12
10x-27=12
10x=39
x=3.9
5 0
3 years ago
Read 2 more answers
Other questions:
  • A cafe slices it’s pies into 8 equal slices the last five costumers have ordered a slice of peach pie what fraction of peach pie
    11·1 answer
  • What is the area of a rectangle that measures 9cm by 81mm?
    7·1 answer
  • Factor 3x^2-19x+20 ​
    13·1 answer
  • What is pi over 12 to the 10 power times 6 over 5.32018?
    10·1 answer
  • And simplify this too ​
    12·2 answers
  • If there are 1500 guests, only 1 of them brought a coupon for free admission to the carnival?
    12·1 answer
  • A circle has an area of 324π cm2. What is the radius? a. 18 cm c. 18π cm b. 36π cm d. 36 cm
    7·2 answers
  • Simplify the following expression (87x + 63y) - (6x + 32y)
    11·1 answer
  • What’s an explanation function ?
    13·1 answer
  • Mr. Torres has a class of 17 students. He can spend $24 on each student to buy math supplies for the year. He first buys all of
    5·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!