0% found this document useful (0 votes)
38 views

Flow Chart

The document discusses different types of procedures used to represent algorithms including flowcharts, pseudocode, and algorithms. It provides examples of different flowchart symbols like start/stop, input/output, process, decision, and control flow. It also outlines some basic rules for constructing a flowchart like ensuring all boxes are connected by arrows and every flowchart must start with a terminal or process symbol.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
38 views

Flow Chart

The document discusses different types of procedures used to represent algorithms including flowcharts, pseudocode, and algorithms. It provides examples of different flowchart symbols like start/stop, input/output, process, decision, and control flow. It also outlines some basic rules for constructing a flowchart like ensuring all boxes are connected by arrows and every flowchart must start with a terminal or process symbol.
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 17

procedure

Aprocedure is a finite sequence of


well-defined instructions, each of
which can be carried out in a finite
amount of time.
Algorithm

 Analgorithm is a step-by-step
procedure to solve a given problem.
Flow Chart

A flowchart is a type of diagram that


represents an algorithm or process
Pseudo Code

A pseudo code is a compact and


informal high-level description of a
program
Flow Chart – Terminal Symbol

- 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

 Flowchart is generally drawn from top to bottom


 All boxes of flowchart must be connected with arrow
 All flowchart start with a terminal or process symbol
 Decision symbol have 2 exit points, one for YES (TRUE)
and another for NO (FALSE)
Exercise 01 : - Add 10 and 20
Start

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

 Pseudo-code is a step-by-step process that simplifies the


execution of a program in a simple way (so that it can be
converted to a real computer language).
 Pseudo-code is simply presented to anyone who has no standard
consensus or even no knowledge of programming.

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

You might also like