Algorithm and Flowchart Unit - 1
Algorithm and Flowchart Unit - 1
ALGORITHM
Algorithm:
Step1: Start
Step2: Read/input the first num1.
Step3: Read/input the second num2.
Step4: Sum num1+num2 // calculation of sum
Step5: Print Sum
Step6: End
PROPERTIES OF ALGORITHM
❖ Finiteness
An algorithm must always terminate after a
finite number of steps.
❖ Definiteness
Each step of an algorithm must be precisely
defined
❖ Input
The value/quantities are given to the algorithm
before it begins.
❖ Output
The output is expected value/quantities always
have a specified relation to the inputs
❖ Effectiveness
Algorithms to be developed/written using basic
operations
FLOWCHARTS
❖ Communication
A Flowchart can be used as a better way of
communication of the logic of a system
❖ Effective analysis
A flowchart of a problem can be used for
effective analysis of the problem.
❖ Documentation of Program/System
Program flowcharts are a vital part of a good
program documentation
❖ Efficient Program Maintenance:
With help of flowchart time to time maintenance
become easier
❖ Coding of the Program
Writing code referring the flowchart of the solution
become easy
THANK YOU