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.. [20 Marks]
Marking Key:
-Correct flowchart symbols – 4 marks
-Correct flowchart logic – 6 marks
-Correct syntax of the pseudocode– 4 marks
-Correct pseudocode logic – 4 marks
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