(a) Define algorithm. (b) State three characteristics of an algorithm. (c) Write an algorithm for...
COMPUTER
WAEC 2015
(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.
Explanation
(a) Is a set of rules and sequential steps that define how a particular problem can be solved in a finite and ordered sequence
(b) (i) Input (ii) Output (ii) Effectiveness
BEGIN
(c) Step i: Let the sum of the six be X
Step ii: Input the sum of the six numbers X
Step iii: Average =X/6
Step iv: Print Average. END
OR BEGIN
Step 1: Let the sum of the six numbers = X
Step 2: Input the sum of the six numbers X
Step 3: Average X/6
Step 4: Print Average. END.
Post an Explanation Or Report an Error
If you see any wrong question or answer, please leave a comment below and we'll take a look. If you doubt why the selected answer is correct or need additional more details? Please drop a comment or Contact us directly. Your email address will not be published. Required fields are marked *

