The content is just an excerpt from the complete note for SS2 Third Term Computer Studies Lesson Note – Algorithms and Flow Chart II. Check below to download the complete DOCUMENT

WEEK: 5                              

TOPIC: ALGORITHMS AND FLOW CHART (II)

CONTENT: ­ (a) Writing algorithm (b) Flowchart symbols (c) Use of Flowchart (d) Flowchart diagrams for solving a given program

Sub-Topic 1: Writing Algorithm

Example 1: Compute the average of a given set of numbers, N

Solution: 

  1. Input “count the numbers in the set”: N
  2. C =1// use to count the numbers processed
  3. Sum=0
  4. If c>N :go to line 9
  5. Input next number; num
  6. Sum=sum + num
  7. C=c + 1
  8. Go to line 4
  9. Average= sum/Nn
  10. Write the value of average
  11.  Stop

Example 2: Evaluate the equation y=a (b-c)2/d+2

Solution: 

  1. Input values for a, b, c, d
  2. Y=a*(b-c)^2/(d+2)
  3. Write the value of y

To gain full access to the note: DOWNLOAD FILE

SEE ALSO  JSS1 Cultural and Creative Art (CCA) Lesson Note on Paper Craft Folding Technique

Copyright warnings! Do not copy.