control structure.pptx
TRANSCRIPT
-
8/17/2019 CONTROL STRUCTURE.pptx
1/14
CONTROL STRUCTURE
-
8/17/2019 CONTROL STRUCTURE.pptx
2/14
-
8/17/2019 CONTROL STRUCTURE.pptx
3/14
Control structure
Control structure is astructure of statementsin programming that
allows the programmerto control the ow of a
program.
-
8/17/2019 CONTROL STRUCTURE.pptx
4/14
-
8/17/2019 CONTROL STRUCTURE.pptx
5/14
SEQUENCE
-
8/17/2019 CONTROL STRUCTURE.pptx
6/14
SELECTION
-
8/17/2019 CONTROL STRUCTURE.pptx
7/14
SEQUENCE SELECTION
-
8/17/2019 CONTROL STRUCTURE.pptx
8/14
sequence
• linear execution of codes within aprogram
• statements are executed one by one
-
8/17/2019 CONTROL STRUCTURE.pptx
9/14
selection
• program have to make a decisionbased on the situation given.
• If...Then...Else” statement
-
8/17/2019 CONTROL STRUCTURE.pptx
10/14
DIE!E"Tseuence !i"erent selection
Executestatement oneby one in liner
Execution #ow Executedi$erentstatement fordi$erent
condition To execute codeline by line"o decision
symbol
usage To implementdecisionmaking
low chart
-
8/17/2019 CONTROL STRUCTURE.pptx
11/14
%&I'& ("E
-
8/17/2019 CONTROL STRUCTURE.pptx
12/14
-
8/17/2019 CONTROL STRUCTURE.pptx
13/14
-
8/17/2019 CONTROL STRUCTURE.pptx
14/14