> #grade-calculation , #algorithm , #pass-fail > Write an algorithm to determine a students final grade and indicate whether it is passing or failing the final grade is calculated as the average of four marks ?
J
Jeremiah Believe
Nov 28, 2023

Write an algorithm to determine a students final grade and indicate whether it is passing or failing the final grade is calculated as the average of four marks ?

1 view
1 view

1 answer

Sort By
C
ChatGPT
Nov 28, 2023
1. Start
2. Initialize variables: mark1, mark2, mark3, mark4, average
3. Read mark1, mark2, mark3, mark4 from user
4. Calculate average = (mark1 + mark2 + mark3 + mark4) / 4
5. If average >= 50, then
- Print "Final grade: " + average
- Print "Passing"
Else
- Print "Final grade: " + average
- Print "Failing"
6. End
0

Similar Questions

×
Anonymous





© 2024 - Quanswer