0% found this document useful (0 votes)
26 views17 pages

Powerpoint Lesson2

Uploaded by

cloud hildegard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views17 pages

Powerpoint Lesson2

Uploaded by

cloud hildegard
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 17

ALGORITHM

FLOWCHART AND
PSEUDOCODE
ALGORITHM
 An algorithm is defined as a sequence of steps to
solve a problem(task).
 An algorithm is also defined as a plan to solve a
problem and represents its logic.
What is a Flowchart?
It is a picture (graphical representation) of the problem solving
process.
A flowchart gives a step-by-step procedure for solution of a problem.
Elements of a flowchart: •
 Various geometrical shaped boxes represent the steps of the
solution.
 The boxes are connected by directional arrows to show the flow of
the solution.
Uses of a flowchart:
 To specify the method of solving a problem. •
 To plan the sequence of a computer program.
 Communicate ideas, solutions.
Common Flowchart Symbols
Terminator: An oval flow chart shape indicating the start
or end of the process.
Process: A rectangular flow chart shape indicating a normal
process flow step.
Decision: A diamond flow chart shape indication a branch
in the process flow.
Connector: A small, labeled, circular flow chart shape used
to indicate a jump in the process flow.

Data: A parallelogram that indicates data input or output


(I/O) for a process.
Drawing a Flowchart
 Identifyinput and output.
 Apply reasoning skills to solve the problem.
 Draw the flowchart using the appropriate
symbols and arrows to show the sequence of
steps in solving the problem.
Examples of Flowchart:
FLOWCHART WITH DECISION MAKING
Problem:Find the sum of five numbers.
What is a Pseudocode? ( SOO-doh-kohd)
It is a method of describing computer
algorithms using a combination of
natural language and programming
language.
Flowchart Pseudocode
Begin Begin
input hours input x, y
input rate sum = x + y
pay = hours print sum
*rate End
print pay
End
EXERCISE 1:
Write a Pseudocode and draw the flowchart of the given
problem below:

1. Finding the quotient of 35 and 5.

You might also like