(a) Define algorithm. (b) State three characteristics of an algorithm. (c) Write an algorithm for finding the average of numbers, when the sum of the number...

Assessment: WAEC SSCE - Computer Studies - 2015 (Essay) Subject: Computer Studies

Question 1 Report

(a) Define algorithm. (b) State three characteristics of an algorithm. (c) Write an algorithm for finding the average of numbers, when the sum of the numbers is given.

Answer Details

(a) Definition of algorithm

An algorithm is a finite set of clear, step-by-step instructions for solving a particular problem, arranged in a logical order so that following the steps produces the required result.

(b) Three characteristics of an algorithm

  1. Finiteness - it must have a definite ending after a finite number of steps.
  2. Effectiveness with input and output - it must take input (where needed) and produce at least one output, and every step must be doable. (Being general/applicable to a class of problems is also acceptable.)

(c) Algorithm for finding the average of numbers when the sum is given

The average is the sum divided by the count of numbers, \(Average = \dfrac{Sum}{N}\).

  1. Start.
  2. Read the sum of the numbers, SUM.
  3. Read the count of the numbers, N.
  4. If N = 0, display "cannot divide by zero" and go to step 7.
  5. Compute AVERAGE = SUM / N.
  6. Display AVERAGE.
  7. Stop.

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning