Professional Documents
Culture Documents
Chapter2 - Session 1
Chapter2 - Session 1
a) Windows Password
b) MAX Function
c) Freeze Panes
Practical Question
3
LEARNING OBJECTIVES
Computer Algorithms
Advantages of
Algorithms
Algorithmic Solutions
LEARNING For Problems
OBJECTIVE
S Flowchart
Advantages of
Flowcharts
Algorithm
An algorithm is a well-defined procedure that allows a computer to solve a problem.
Algorithms are written in a step-by-step procedure before writing the actual program.
Advantages of Algorithms
Easy To Easy To
Understand Implement
Not
Dependent On Easy To
Programming Modify
Language
Rules for Writing Algorithms
There are some guidelines for writing an algorithm.
3) Write the
statements
clearly. 4) Write Stop at
2) Always begin
with “Start”. the end of the
algorithm.
Writing
Algorithms
High level Question
The number L1 would be the first number in the list, L2 the second number, etc.
Length
Width
Session 1 - Hour 2
Review Question
_______ is a well-defined procedure that allows a
computer to solve a problem.
A) Algorithm
B) Flowchart
C) None of these
Review Practical
12
Flowcharts
A Flowchart is a graphical representation of an algorithm.
It is a step-by-step process to solve a problem in graphical form.
The purpose of making a flowchart is to assist in writing a program.
Advantages of Flowcharts
Decision Box
Process Box
Yes No
C=A+B A>B
X
Guidelines For Drawing Flowcharts
Requirements should be
listed out in logical order.
01
It is better to use connector Flowchart should be Clear,
02 Neat, and Easy to follow
If flowchart becomes
complex , Flowchart should
have Start & Stop.
08
Direction of the flow
03 is from left to right
Guidelines or top to bottom.
for
Write briefly within
07 Drawing
standard symbols. Flowchart
Only one flow line
04 should come out from
a process symbol.
Only one flow line is used in 06
conjunction with a terminal 05
symbol.
Only one flow line should enter a
decision symbol, but two or three flow
lines, may leave the decision symbol.
Flowcharts Example
Flowchart to find the largest of three numbers A, B, and C.
Flowcharts Example
Flowchart to find the sum of the first 50 natural numbers.
High Level Question
Computer Algorithms
Computer
Programming
Algorithmic Solutions
For Problems
Algorithms
Flowcharts
Key Terms To Remember
Flow chart
program symbols
Algorithm
Problem Examples
Solving
Types
Flowcharts Flowchart
Examples
Learner
Page - 93