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
How much warmer is 12°C than -20°C?
zvonat [6]

To put it simply, 12 degrees C is 12 away from 0 and -20 degrees C is 20 away from 0. Taking these two inputs and adding them together should give you 32. So 12 degrees C is 32 degrees warmer than -20 degrees C

8 0
3 years ago
Read 2 more answers
A sixth-grade student bought three can of tennis balls for $4 each.Sales tax for all three can was $.95. Write an expression to
ElenaW [278]
Heisnzknsjds jsnsksidjdkdkdkdkd
4 0
3 years ago
GIVING 50 POINTS FOR THE FIRST 2 PEOPLE
pochemuha

Answer:Thanks

Step-by-step explanation:

7 0
2 years ago
Read 2 more answers
Can someone list the coordinates of jk?
Ganezh [65]

Answer:

j= (-2,2)

k=(2,1)

Step-by-step explanation:

8 0
3 years ago
Ben left a 20% tip on his bill at a restaurant. The bill was $40
tigry1 [53]

Answer:

Tip: $8

Total:$48

Step-by-step explanation:

Multiply 40 by 20% to find out how much money he gave for tip.

Add the amount of tip, 8, to $40 find out the total amount of money he spent.

3 0
3 years ago
Other questions:
  • Which of the following is a statistical question? A. How many students know how much they weigh? B. What is Kaycee's weight? C.
    8·1 answer
  • Gift bags are being distributed at a birthday party. If there was a total of 140 jolly ranchers
    7·1 answer
  • Dewie Lifftum, Howe Moving Company has a loading ramp for their moving truck. The ramp connects to the truck 5 feet above the gr
    14·2 answers
  • 1) Given the following problem: I am thinking of a number. If you double the number and add 10, the result is 22.
    8·2 answers
  • 2. The measure of an exterior angle of a regular polygon is 60. How many sides does the polygon have?
    10·1 answer
  • Determine whether the given value is a statistic or parameter a survey found at 97% of all respondents have jobs
    14·1 answer
  • The length of a rectangular garden is 3 yards more than its width. The area of the garden is 40 square yards. Find the length of
    7·1 answer
  • A rectangular room measures 21 feet by 28 feet with a 10-foot-high ceiling. The flooring is being replaced with carpeting that s
    12·1 answer
  • Problem Set<br> 100 yd. =
    6·1 answer
  • Using everyday knowledge, indicate whether the if then statements are correct forward-only or both forward and reverse. Statemen
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!