Draw a flowchart and write pseudo code for a program that will accept marks for 10 students who sat for a java examination. Total mark for the examination is 80. Determine if the mark is a pass or a fail. This process should be done until all students marks have been captured..
Total mark is 80
10 students
Declare Integer mark
Declare Integer i
For i = 0 To 9
Set mark = 100
While mark > 80
Display "Enter the mark for the student ", i + 1
Input mark
End While
If mark == 80 Then
Display "The mark is a pass"
Else
Display "The mark is a fail."
End If
End For
flowchart
Comments
Leave a comment