0% found this document useful (0 votes)
7 views2 pages

Algorithm

The document outlines an algorithm for grading students based on their scores, detailing input requirements and conditional outputs for grades A through F. It also provides a flowchart explanation, including standard symbols for drawing the flowchart and step-by-step instructions. Additionally, there is a tip for explaining the flowchart's functionality to an examiner.

Uploaded by

gyimahsikiru63
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views2 pages

Algorithm

The document outlines an algorithm for grading students based on their scores, detailing input requirements and conditional outputs for grades A through F. It also provides a flowchart explanation, including standard symbols for drawing the flowchart and step-by-step instructions. Additionally, there is a tip for explaining the flowchart's functionality to an examiner.

Uploaded by

gyimahsikiru63
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Algorithm (WAEC / SHS Style)

1. Start

2. Input student name

3. Input student age

4. Input student score

5. Display name and age

6. If score ≥ 80 and score ≤ 100, display Grade A and “Excellent!


Well done.”

7. Else if score ≥ 70, display Grade B and “Very good. Keep it up.”

8. Else if score ≥ 60, display Grade C and “Good effort.”

9. Else if score ≥ 50, display Grade D and “Work harder.”

10. Else if score ≥ 45, display Grade E and “Pass. Improve.”

11. Else if score ≥ 0, display Grade F and “Fail. Try again.”

12. Else display “Invalid score”

13. Stop

Flowchart Explanation (How to Draw It)

When drawing, use these standard symbols:

 Oval → Start / Stop

 Parallelogram → Input / Output

 Diamond → Decision

 Rectangle → Process

Flowchart Description

1. Draw an oval and write START

2. Draw a parallelogram: Input name, age, score

3. Draw a rectangle: Display name and age

4. Draw a diamond: Is score ≥ 80?

o Yes → Display Grade A, Well done → STOP

o No → Next decision
5. Diamond: Is score ≥ 70?

o Yes → Display Grade B → STOP

6. Diamond: Is score ≥ 60?

o Yes → Display Grade C → STOP

7. Diamond: Is score ≥ 50?

o Yes → Display Grade D → STOP

8. Diamond: Is score ≥ 45?

o Yes → Display Grade E → STOP

9. Diamond: Is score ≥ 0?

o Yes → Display Grade F → STOP

10. Otherwise → Display Invalid score → STOP

WAEC Examiner Tip 📝

If asked “Explain your flowchart”, write:

The flowchart accepts the student’s name, age, and score, then uses
decision symbols to determine the grade and display appropriate
comments.

You might also like