Ask Question
28 September, 02:15

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

+4
Answers (1)
  1. 28 September, 04:08
    0
    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;
Know the Answer?
Not Sure About the Answer?
Get an answer to your question ✅ “You are given a list of students names and their test scores. Design a pseudocode that does the following: (a) Calculates the average test ...” in 📙 Mathematics if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers