Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 21

Review Question

The _________ feature is used to lock the selected rows


and columns in place while the rest of the sheet is moving.

a) Windows Password
b) MAX Function
c) Freeze Panes
Practical Question

Create a new workbook. Rename “Sheet1” as


“CFY KSU”.

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.

1) Give statement 5) Write each


numbers as Step statement in a
1, Step 2, etc. separate line.

Writing
Algorithms
High level Question

Algorithms can be useful for solving real life


problems ? If yes Give Examples?
How Algorithms Work?
An algorithm to find the largest number in an unsorted list of numbers.

 The input consists of a list of numbers, and this list is called L.

 The number L1 would be the first number in the list, L2 the second number, etc.

The algorithm would look something like this:


Algorithm Examples
Algorithm to calculate the area of a rectangle

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

Write an Algorithm to calculate the area of a


circle?

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

1) Independent of the 2) Establishes better


programming language.
communication.

4) Easier to understand the 3) It is always better to find


object and logic of the errors from flowcharts
program with the help of the rather than from the
flowcharts. programs.
Standard Symbols of Flowcharts
Start / Stop Symbol Input / Output Box

Start Stop Input A, B Print A, B

Decision Box
Process Box
Yes No
C=A+B A>B

Flow Lines Connectors

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

What is the purpose of flowchart in problem


solving?
Closing

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

You might also like