ALGORITHMS
Algorithm is a step by step process of solving any problem.
Examples of algorithm:
(a) ALGORITHM TO SEND A LETTER TO YOUR FRIEND:
Step 1: Take a blank paper sheet and a pen or pencil.
Step 2: Write a letter.
Step 3: Put it inside an envelope and seal it.
Step 4: Write the address of your friend on the envelope.
Step 5: Paste stamps on the envelope.
Step 6: Drop the letter into the letter box.
(b) ALGORITHM TO FIND AVERAGE OF THREE NUMBERS:
Step 1: Take three numbers.
Step 2: Add the three numbers.
Step 3: Divide the sum by 3 to get the average.
ADVANTAGES OF ALGORITHMS:
1. Easy to understand, implement
2. Easy to modify.
3. They are not dependent on any computer language.
ALGORITHMS IN OUR DAILY LIFE:
Comments
Post a Comment