You are on page 1of 1

A.

Decision

Problem: Determine Whether A Student Passed the Exam or Not:

Algorithm:

Step 1: Input grades of 4 courses M1, M2, M3 and M4,


Step 2: Calculate the average grade with formula "Grade =
(M1+M2+M3+M4)/4"
Step 3: If the average grade is less than 60, print "FAIL", else print
"PASS".

A. Repetition

Problem: Find Even number between 1 to 50

Algorithm:

Step 1: Start

Step 2: I = 1

Step 3: IF (I >50) THEN GO TO Step-7 ENDIF

Step 4: IF ( (I % 2) =0) THEN Display I ENDIF

Step 5: I = I + 1

Step 6: GO TO Step--3

Step 7: Stop

You might also like