0% found this document useful (0 votes)
6 views14 pages

Problem Solving 5

This document provides an overview of flowcharts and their significance in representing algorithms visually. It includes sections on flowchart symbols, drawing flowcharts for simple problems, decision structures, loop structures, and tools for creating flowcharts. The content emphasizes the importance of flowcharts in improving communication and detecting errors in software development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views14 pages

Problem Solving 5

This document provides an overview of flowcharts and their significance in representing algorithms visually. It includes sections on flowchart symbols, drawing flowcharts for simple problems, decision structures, loop structures, and tools for creating flowcharts. The content emphasizes the importance of flowcharts in improving communication and detecting errors in software development.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MODULE 4: FLOWCHARTS AND

DIAGRAMMATIC REPRESENTATION

By
Dr. Johnwendy C.N.

1
FLOWCHARTS AND DIAGRAMMATIC
REPRESENTATION

Unit 4.1: Introduction to Flowcharts


Unit 4.2: Flowchart Symbols (Start/End, Process, Decision,
Input/Output)
Unit 4.3: Drawing Flowcharts for Simple Problems
Unit 4.4: Decision Structures in Flowcharts (Yes/No logic
Unit 4.5: Loop Structures in Flowcharts
Unit 4.6: Tools for Drawing Flowcharts (e.g., Visual Paradigm,
[Link])

2
UNIT 4.1: Introduction to Flowcharts

A flowchart is a graphical representation of an


algorithm using symbols and arrows.

3
Why Flowchart Matters
Make logic visual
Help detect errors early
Improve communication between developers
In real-world software teams:
Designers, analysts, and developers all understand flowcharts

4
UNIT 4.2: Flowchart Symbols

Flowcharts use standard symbols that must be used correctly in


exams.
1. Start/End (Terminator)
Shape: Oval
Purpose: Beginning or ending of a process
Example:
Start / End

5
UNIT 4.2: Flowchart Symbols
2. Process
Shape: Rectangle
Purpose: Any operation or calculation
Examples:
Add A + B
Calculate total

6
UNIT 4.2: Flowchart Symbols
3. Input/Output
Shape: Parallelogram
Purpose: Data input or display
Examples:
Input number
Display result

7
UNIT 4.2: Flowchart Symbols
4. Decision
Shape: Diamond
Purpose: Condition (Yes/No, True/False)
Example:
Is A > B?

8
Unit 4.3: Drawing Flowcharts for Simple Problems

Example 1 : Add Two numbers


Start
Input a, b
Compute sum=a +b
Display sum
end

9
Unit 4.4: Decision Structures in Flowcharts

Example 2 : check if n is odd or even


Start
Input n
If n % 2==0 then
display ‘even’
Else
display ‘odd’
End if
end

10
Unit 4.4: Decision Structures in Flowcharts
Example 3:Checking Age and Citizenship
START
INPUT age, citizenship
IF age >= 18 THEN
IF citizenship == "Yes" THEN
PRINT "You are eligible to vote"
ELSE
PRINT "You must be a citizen to vote"
ENDIF
ELSE
PRINT "You are underage"
ENDIF
END
11
Unit 4.5: Loop Structures in Flowcharts

Example 4: Print 1 to 5
START
Input i
FOR i ← 1 TO 5 DO
PRINT i
ENDFOR
END

12
Unit 4.5: Loop Structures in Flowcharts

Example 5: Print 0 to 4
START
Input i
SET i ← 0
WHILE i < 5 DO
PRINT i
SET i ← i + 1
ENDWHILE
END
13
Unit 4.6: Tools for Drawing Flowcharts

Flowcharts are usually drawn using software tools instead of


paper because they are:
Easier to edit
More professional
Neater and shareable
Suitable for assignments and presentations

14

You might also like