Wednesday, 8 July 2015

Difference b/w Flowchart and Algorithm:

Difference b/w Flowchart and Algorithm:


Flowchart:

  1. Standard symbols are used to design flowchart.
  2. Flowchart is more time-consuming.
  3. It is difficult to modify.
  4. It is a graphical representation of solution.



Algorithm:

  1. Simple English is used to write algorithm.
  2. Algorithm is less time-consuming. 
  3. It is easier to modify.
  4. It is a step-by-step procedure to solve a problem.

Example 1:

                 Algorithm of sum of  2 numbers :

  1. Start

  2. Input 1st number

  3. Input 2nd number

  4. Total = 1st number + 2nd number

  5. Display Total

  6. Exit

Example 2:

                 Algorithm to calculate a the area of circle :
  1. Start
     2.  Input radius

     3.  area = 3.14*radius*radius

     4.  Print area

     5.  Exit


No comments:

Post a Comment