Back to Course

JSS2: COMPUTER STUDIES - 1ST TERM

0% Complete
0/0 Steps
  1. Computer Software | Week 1
    4 Topics
    |
    1 Quiz
  2. Operating System | Week 2
    9 Topics
    |
    1 Quiz
  3. Computer Memory: Primary And Secondary Memory | Week 3
    5 Topics
    |
    1 Quiz
  4. Computer Memory II: Secondary Memory (Backing Storage) | Week 4
    2 Topics
    |
    1 Quiz
  5. Number System I | Week 5
    4 Topics
    |
    1 Quiz
  6. Number System II | Week 6
    3 Topics
    |
    1 Quiz
  7. Units of Storage In Computer | Week 7
    2 Topics
    |
    1 Quiz
  8. Problem Solving Skills With Computer | Week 8
    5 Topics
    |
    1 Quiz
  9. Computer Programming Languages | Week 9
    3 Topics
    |
    1 Quiz
  • excellence
  • Follow

Lesson Progress
0% Complete

Topic Content:

  • Meaning of Algorithm
  • Example of an Algorithm

What is an Algorithm?

An algorithm is a set of instructions used in programming. Algorithms set out the series of steps necessary to find the solution to a problem. Therefore, Algorithms are sequences of steps involved in solving a particular problem.

Another name for a programming language is algorithmic language, and examples of algorithmic languages are COBOL, PASCAL, and C++.

Before using computers to solve a problem;

1. The detailed steps involved must be known.

2. The problem must first be solved manually without the use of a computer.

3. The order of carrying out the steps must be known.

4. Every algorithm must have a start and a stop (it must be finite)

5. It must produce desirable results.

A Simple Example of an Algorithm:

How to prepare White Rice/ Eba / Quaker Oat or Pap:

  1. Start.
  2. Light the stove or gas cooker.
  3. Place a clean pot on it.
  4. Put a desired quantity of water in it.
  5. Check if the water is boiling, if yes, go to step 6 Otherwise, repeat step 4 until the water is boiling.
  6. Pour washed rice into the pot.
  7. Boil it until you are satisfied.
  8. Stop/End.