Ask Question
2 June, 16:30

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

+1
Answers (1)
  1. 2 June, 17:28
    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?
Find 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 you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers