CH 2 Introduction To Problem Solving and Basics of Python Programming 2
CH 2 Introduction To Problem Solving and Basics of Python Programming 2
HYDERABAD REGION
Step 1: Start
Step 2: Declare variables a, b
Step 3: Read variables a, b
Step 4: If a>b
Display a is the largest number.
Else
Display b is the largest number.
Flow Chart
A flowchart is simply a graphical representation
of steps. It shows steps in a sequential order, and
is widely used in presenting flow of algorithms,
workflow or processes. Typically, flowchart
shows the steps as boxes of various kinds, and
their order by connecting them with arrows.
Flowchart Symbols
Different flowchart shapes have different
conventional meanings. The meanings of some of
the more common shapes are as follows:
Flow Chart
1. Terminator
The terminator symbol represents the starting or
ending point of the system.
2. Process
A box indicates some particular operation.
3. Document
This represents a printout, such as a document
or a report.
4. Decision
A diamond represents a decision or branching point.
Lines coming out from the diamond indicates different
possible situations, leading to different sub-processes.
5. Data
It represents information entering or leaving the
system. An input might be an order from a customer. An
output can be a product to be delivered.
6. Flow
Lines represent flow of the sequence and direction of a
process.
Flow Chart :
Addition of two numbers
Representation of algorithm using flow chart
Finding largest of
two numbers
Pseudo-code