Flow Chart
Flow Chart
Analgorithm is a step-by-step
procedure to solve a given problem.
Flow Chart
- Start/ Stop
Example:-
Start Stop
Flow Chart
- Input/ Output
Example:-
Input Output
Flow Chart –
- Process
Example:-
A = 10 Total = 10 + 45
Flow Chart
- Decision
If False
X > 50
True
Flow Chart – Continued…
- Control Flow
- Connector
Flowchart Rules
Algorithm Sum = 0
1. Initialize sum = 0
(process) Enter 10, 20
2. Enter the numbers (I/O)
3. Add the numbers and Sum = 10 + 20
store the result in sum
(process)
Print sum
4. Print sum (I/O)
Start
Flowchart Structures
1) Sequence
2) Selection
3) Repetition
Sequence
Selection (Decision)
Repetition (Loop)
Pseudocode
BEGIN
END
Ex-
pseudo-code for a simple program that calculates the
total amount payable when you include the hourly and
hourly rate
Begin
input hours
input rate
pay=hours*rate
print pay
End