Ask Question
16 July, 04:50

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

+5
Answers (1)
  1. 16 July, 06:53
    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?
Get 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 & Technology 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