BIC 10204 Chapter 2 Problem Solving and Algorithm
BIC 10204 Chapter 2 Problem Solving and Algorithm
BIC 10204 Algorithm and Programming After this lesson, you should be able to understand
or explain about:
Chapter 2 ✓ what is problem
Problem Solving and ✓ problem identification techniques
✓ problem solving tools and techniques
Algorithm ✓ various forms of algorithm
✓ flow chart and pseudo-code
✓ convert problem to flow chart /pseudo-code
✓ convert pseudo-code to flowchart
2
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
3 4
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
How to install a software into a PC? How to log into an online system?
5 6
1
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
7 8
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
9 10
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Steps in computer
Procedure or formula
program for solving problem
for computer to do its job
Sequence set of
steps taken to
solve a problem
2
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
13 14
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
15 16
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
17 18
3
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Keyword?
Keyword?
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
21 22
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
4
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
25 26
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Test your
understanding!
27 28
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Schematic representation of an
algorithm or process
29 30
5
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Start/Stop Decision
The terminator symbol marks the A decision or branching point. Lines
starting or ending point of the representing different decisions
system. It usually contains the emerge from different points of the
word "Start" or "End." diamond.
Input/Output
Action or Process Represents material or information
A box can represent a single step entering or leaving the system,
("add two cups of flour"), or and such as customer order (input) or a
entire sub-process ("make product (output).
bread") within a larger process.
31 32
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Off Page
Flow Line Indicates that the process continues off
Lines indicate the sequence of page.
steps and the direction of flow.
Database
Connector Indicates a list of information with a
Indicates that the flow continues standard structure that allows for
where a matching symbol searching and sorting.
(containing the same letter) has
been placed.
33 34
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
35 36
6
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
Convert to
flowchart
A box has height, width and length.
Write the pseudo code to calculate the volume Given the following formula, write the pseudo code
of a box. to calculate the porosity of rock:
Convert
Convertto
to porosity = (pure volume /total rock volume) x 100%
flowchart
flowchart
Write the pseudo code to calculate salary of
an employee for a month.
39 40
Chap 2 Problem Solving & Algorithm Chap 2 Problem Solving & Algorithm
41 42