(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) 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.
Contributions ({{ comment_count }})
Please wait...
Modal title
Report
Block User
{{ feedback_modal_data.title }}