Page 42 - iPro_trackGPT_V5_Class8
P. 42
Step 7: Subtract the number B from the number A and store the result in Difference.
Step 8: Print the Difference.
Step 9: Stop.
B. Algorithm to compare two numbers A and B and find the smallest one
Step 1: Start.
Step 2: Read two numbers and store them in A and B.
Step 3: Compare the numbers A and B.
Step 4: If A is less than B, print "A is smaller" and go to Step 7.
Step 5: If B is less than A, print "B is smaller" and go to Step 7.
Step 6: If A is equal to B, print "A and B are equal".
Step 7: Stop.
DEFINING FLOWCHART
A flowchart is a type of diagram that visually represents an algorithm or process. It illustrates a
series of steps or instructions needed to complete a task or solve a problem. Flowcharts are used
to analyse, design, document, or manage various processes or programs in different fields.
Flowcharts display the sequence of steps in a program, making them essential in programming.
They help simplify and understand complex problems by breaking them down into easier-to-
follow steps. Once a flowchart is created, it serves as a blueprint for writing the program in any
high-level language. Additionally, flowcharts are effective for explaining a program's logic to
others, making them a valuable tool for understanding and communicating complex processes.
Symbols Used in Flowchart
Different symbols are used to draw different types of flowcharts. Let us discuss them.
Name Symbol Description
It shows the beginning and ending of the flowchart.
(Start/Stop) It usually has the words Start or Stop. It is also called
terminal box.
It represents a process, operation, or action step in the
Process
flowchart.
It represents a question or decision point in the process
flow. The text inside the decision box typically poses
a question or checks a condition. If the answer to the
Decision question is Yes or the condition is True, the flow proceeds
along one path, often labeled Yes or True. If the answer
is No or the condition is False, the flowchart follows a
different path, often labeled No or False.
40 TrackGPT iPRO (V5.0)-VIII

