Algorithms & FLowcharts
Monday, October 7, 2013
ALGORITHM TO CALULATE RESULT BASED ON GRADE (i.e. AVERAGE OF 4 SUBJECT’S MARKS).PRINT PASS IF GRADE >=50 OTHERWISE PRINT FAIL (IS ELSE STRUCTURE)
STEP 1.
GRADE<--0,M1<-- 0,M2 <--0,M3 <--0,M4 <--0
STEP 2.
Input M1,M2,M3,M4
STEP 3.
GRADE <-- (M1+M2+M3+M4)/4
STEP 4.
Is (GRADE <50) Then
Begin
Print “FAIL”
End
Else
Begin
Print “PASS”
End
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment