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.
(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
(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}\).
Everything you need to excel in your exams