Algorithms And Flowcharts Flashcards
Techniques of solving problems
❖ Representing a solution as pseudocode
❖ Writing an algorithm
❖ Drawing a flowchart
A typical programming task can be divided into two phases
Algorithms and Flowcharts
Problem solving
Implementation
produce an ordered sequence of steps that describe solution of
problem
Problem solving phase
implement the program in some programming language
Implementation phase
is an artificial and informal language that helps
programmers develop algorithms. Pseudocode is very similar
to everyday English.
Psuedocode
A graphical representation of the sequence of
operations in an information system or program.
Flowchart
Uses of flowchart
Flow chart are used in designing and
documenting complex processes.
•Like other types of diagrams, they help to
visualize what is going on and thereby help the
viewer to understand the process.
Denotes the beginning or end of the program
Oval
Denotes an input operation
Parallelogram
Denotes a process to be carried out e.g. addition, subtraction, division etc.
Rectangle
Denotes a decision (or branch) to be made. The program should continue along one of two routes. (e.g. IF/THEN/ELSE)
Diamond
Denotes an output operation
Hybrid
D
e
no
t
e
s
the
direction
of logic
flow in the program
Flow line
(represented by a small circle) allows you to connect two flowchart segments.
Connectors
In page connector (circle, A in the middle)
Out page connector (pentagon downwards)
The preparation or initialization of memory space of data
Initialization processing