Categories: Lesson Notes

SS2 Third Term Computer Studies Lesson Note – Algorithms and Flow Chart II

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

Sunday

Share
Published by
Sunday

Recent Posts

OOU JUPEB Admission For Agricultural Extension

Do you want to study Agricultural Extension in OOU? Before you apply for the OOU…

11 months ago

OOU JUPEB Admission For Agricultural Economics

Do you want to study Agricultural Economics in OOU? Before you apply for the OOU…

11 months ago

OOU JUPEB Admission For Cooperative and Business Management

Do you want to study Cooperative and Business Management in OOU? Before you apply for…

11 months ago

OOU JUPEB Admission For Home and Hotel Management

Do you want to study Home and Hotel Management in OOU? Before you apply for…

11 months ago

OOU JUPEB Admission For Animal Production

Do you want to study Animal Production in OOU? Before you apply for the OOU…

11 months ago

OOU JUPEB Admission For Crop Production

Do you want to study Crop Production in OOU? Before you apply for the OOU…

11 months ago