Algorithm: an algorithm is a procedure or formula for solving a problem. The word and derived from the name of the mathematician. An algorithm is a step-wise procedure written in a simple language. If equation solution of any problem that written in human language is called as algorithm.
Algorithm is a first step of the solution process, after the
analysis of the problem, program for write the algorithm of that problem.
Write an algorithm to find a number is even or odd.
Step 1: Start
Step 2: Input a number
Step 3: rem= number mod 2
Step 4: if rem= 0 then
print “even number”
else
print
“odd number”
end if
Step 5: Stop
Flowchart: chat is a means of visually presenting the flow of the data through an information processing system, the operations performed within the system and the sequence in which they are performed. in this lesson, we shall concern yourself with a program flowchart, which describe what operations and in what sequence are required to solve a given problem. The program flowchart that can be likened to the blueprint of a building. As we know a designer draws a blueprint before starting construction on a building. Similarly a program word brief was to draw a flowchart prior to writing a computer program. As in the case of the growing of a blueprint, the flowchart is drawn according to define rule and using standard for chat symbol prescribed by the ANSI.
Meaning of flowchart: a flowchart is a diagrammatic representation that illustrates the sequence of operation to be performed to get a better solution of problem. who chart are generally draw in the early stages of formulating Computer Solutions. Flowchart facilitates communication between the program office and business people. These four charges play a vital role in programming of the problem and are quite helpful in understanding the logic of the complicated and then the problem. Once the flowchart is drawn in become easy to write the program in any high level language. Often we see how the Charter helpful in explaining the program to others. is it is correct to say that flow chart is a must for better documentation of complex program.
Symbols used in flowchart:
Guidelines of flowchart drawing:
- In
drawing a proper flow chart, all necessary requirements should be
listed out in logical order.
- The
future should be clear, Neat and easy to follow. There should
not be any room for ambiguity in understanding the flowchart.
- The
usual direction of the flowchart of a procedure is from left to right or
top to bottom
- Only
one flow line should come out from the process symbol
- Only
one flow line should we enter a decision symbol, but two or more flow
lines, one for each possible answer, should leave the decision symbol.
- Only
one flow line is used in conjunction with the terminal symbol
- Write
within the standard symbol briefly. as necessary you can use a
notation symbol to describe data or computational steps more clearly
- If
the future become Complex it is better to use connector symbol to reduce
the number of flow lines over the intersection of flow lines if you want
to make it more effective and better way of communication.
- Ensure
that the flowchart has a logical start and finish.
- It
is useful to test the validity of the future by passing through it within
a simple test data
• Pseudo code is understood by the programmers of all types.
•It enables the programmer to concentrate only on the algorithm part of the code development.
No comments:
Post a Comment