Академический Документы
Профессиональный Документы
Культура Документы
Cognifront.co
Objectives
• To Study Flowchart
• To Study Pseudocode
Cognifront.co
Tools to design Algorithm
• Flowchart
• Pseudocode
Cognifront.co
Flowchart
Cognifront.co
Flowchart Symbols
• Assignment Statement or
Assignment
Expression : Statement
• Read / Print :
Read / Print
Cognifront.co
Flowchart Symbols (contd…..)
• Decision Making :
Decision
making
• Connector :
Connector
• Flow Indicator :
Cognifront.co
Pseudocode
Cognifront.co
Conventions for Pseudocode
Cognifront.co
Example for Adding N numbers
Start
Read N
Sum=0; k=1
N
k<=N Print Sum
Y
Read X
Stop
Sum = Sum + X
k=k+1
Cognifront.co
Example for Adding N numbers
Input N
Initialize sum to zero
Initialize K to 1
While K is less than or equal to N
Input X
Add X into the sum
Add 1 to the K counter
Print the sum
Play Algorithm Design Tools Video from DV
Cognifront.co
Time for Students’ Questions!
Any Question?
Cognifront.co