Types of flowchart - Basics of Programming

advertisement
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Introduction: Definition
A flowchart
is a diagram that describes a
process or operation. It includes
multiple steps, which the process
"flows" through from start to finish.
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Introduction: Using of flowchart
A flowchart is a useful to design an efficient programs and
troubleshoot or improve programs.
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Introduction: Importance flowchart
 A flowchart is diagram to make programs by easy way.
 A flowchart solve the problem.
Why flowchart make program easy and solve problem?
 Basic flowcharts are easy to create.
 shapes flowchart are simple and visual, they are easy to
understand.
 shows step-by-step progression through a procedure and
show the steps in a process.
Technical Trainers College
VP-4 AVP-1
AD-5
Elements of flowchart
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Elements of flowchart
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Types of flowchart
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Types of flowchart
Direct process is:
operation execute one time . (the steps begin from 'Start' to 'End' just
one time and doesn't go back to execute again).
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Types of flowchart
Loop process is:
operation execute more than one time.
( the steps begin from" start" then repeat the operation
more than one time until finished the loop . Then
complete even to "End").
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Types of flowchart
* Answers worksheet 1:
Q1:
Picture1
Picture2
Direct
Loop
Q2:
The loop has circular track ,but the direct
has one way.
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Types of flowchart: direct example
Q1:
Draw a flowchart that reads the width W
and length L of rectangle from a user and finds its
Area?
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Types of flowchart: Loop example
Q1:
Draw a flowchart that reads a number n
from the user and calculates n!.
[n! = 1*2*3*4*…*n].
Technical Trainers College
VP-4 AVP-1
AD-5
Date: 22/12/2013
TRTC
Exercises
Worksheet 2:
Draw a flowchart that reads Kilobytes from the user and convert
them to Megabytes. (Megabyte = Kilobyte / 1024).
Worksheet 3:
Draw a flowchart that reads 10 numbers and finds how many
are positive, how many are negative and how many are 0 zero.
Technical Trainers College
VP-4 AVP-1
AD-5
Review
 Introduction:
 Definition of flowchart
 Using of flowchart
 why and what important
 Elements of flowchart
 Exercise for Elements
 Type of flowchart
 Direct
 Loop
Date: 22/12/2013
TRTC
Technical Trainers College
VP-4 AVP-1
AD-5
Reference :
http://www.edrawsoft.com/Flowchart-Definition.php
Date: 22/12/2013
TRTC
Download