You are given a list of students names and their test scores. Design a pseudocode that does the following:(a) Calculates the average test scores.(b) Determines and prints the names of all the students whose test scores are below the average test score.(c) Determines the highest test score.(d) Prints the names of all

Respuesta :

Answer:

List_of_students = {};    //Structure array that contains the scores of students and Names

Number_of_students = size(List_of_students);

Average_score ;   //Variable Stores average score

Below_Average = [];   //That is initially filled with zeros  

Highest_score ; //Initialize variable to store highest score

for ( i = 0 ; i < Number_of_students; i = i + 1)

{

      Average_score  = Average_score + List_of_students(i);    

     if ( i = 15)

      {

        Average_score  = Average_score / Number_of_students;

      }

}

for ( j = 0; j < Number_of_students ; i = i + 1)

{

    if (   List_of_students(j)  < Average_score)

     {

         print( "student  %name got %score , List_of_students(j),          List_of_students(j) )

     }

}

Compare_Score = 0;   //Variable to compare score

for ( k = 0; K < Number_of_students; k = k+1)

{

     if ( List_of_students(k) => Compare_Score)

    {

        Compare_Score = List_of_students(k);

    }

}

Highest_Score = Compare_Score;

Step-by-step explanation:

The pseudocode is to get the average score, and get the maximum score and finally print the list

What is Pseudocode?

Pseudocode is an artificial and informal language that helps programmers develop algorithms.

Therefore,

(a) To calculates the average test scores.

average test scores = student_scores / number_of_student

(b) To determines and prints the names of all the students whose test scores are below the average test score.

use if else statement.

If student_scores < average test scores:

print(list_of_student)

(c) To determines the highest test score.

Use the max() function to get the highest student test score.

(d) Prints the names of all

Use print function to print the list of student.

learn more on pseudocode here:https://brainly.com/question/24953880