In a class with unknown number of students, a teacher is keying in the marks of a test. The marks run from 0 to 100. Find the number of students who fail (marks below 40), the number of students who pass, as well as the total number of students. Calculate and display the average mark for the class. Set your own sentinel value to stop the loop.
please show pseudocode.
p.s i just started taking programming. please explain a bit if possible
Comments
Leave a comment