Algorithms
The logical sequence of operations described in concise and precise form is called algorithm.Algorithm is first step of any solution process of any problem.
It is prepared before writing a program. It is machine and language independent.
Example: Write an algorithm for two addition or sum of two numbers.
- 1.Start.
- 2.Input two numbers.
- 3.Calculate sum of two numbers.
- 4.Display sum.
- 5.End.
Flowchart
It is the diagrammatic representation that shows the flow of execution of a program.Flow of procedure is from left to right and top to bottom.
Arrows are used to indicate the flow.The standard symbols used for drawing flowcharts are :
Example: Draw the flowchart for addition or sum of two numbers.
0 comments:
Post a Comment