Ask Question
21 December, 06:22

Write an algorithm to determine a students final grade and indicate whether it is passing or failing. the final grade is calculated as average of 4 exams

grade>60 pass else fail

+4
Answers (1)
  1. 21 December, 09:09
    0
    total = 0

    for i 1 to 4:

    input grade

    total + = grade

    end

    average = total / 4

    if average is greater than 60:

    print ("Passing")

    else:

    print ("Failing")

    Explanation:

    The above algorithm (pseudocode) is written considering Python language.

    Initialize the total as 0

    Create a for loop that iterates four times. For each iteration, get a grade froum the user and add it to the total.

    When the loop is done, calculate the average, divide total by 4.

    Check the average. If it is greater than 60, print "Passing", otherwise print "Failing".
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “Write an algorithm to determine a students final grade and indicate whether it is passing or failing. the final grade is calculated as ...” in 📘 Computers and Technology 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