Algorithms
- A sequential solution of any program that written in human language is called algorithm.
- Algorithm is first step of the solution process, after the analysis of problem, programmer write the algorithm of that problem.
- Example of Algorithms:
Ans.
step
1 : start
step
2 : input number
step
3 : rem=number mod 2
step
4 : if rem=0 then
print
"number even"
else
print
"number odd"
endif
step
5 : stop
Flowchart
Example of flowchart in our daily life:-
A flowchart is
a type of diagram that
represents
an algorithm, workflow or
process, showing the steps as boxes of various kinds, and their order
by connecting them with arrows. This diagrammatic representation
illustrates a solution model to a given problem.
Flowcharts are used in analyzing, designing, documenting or managing
a process or program in various fields.
OR
1. Graphical
representation of any program is called flowchart.
2. There are some standard graphics that are used in flowchart as following:
2. There are some standard graphics that are used in flowchart as following:
No comments:
Post a Comment