Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Algorithms
Flowchart
Outline
1 Problem Solving
2 Algorithms
3 Flowchart
Problem Solving
Problem Solving
Problem Solving
Problem Solving
Problem Solving
Concepts
Definition
An algorithm is a finite set of instructions to specify a
sequence of operations to be carried out in order to solve a
specific problem.
Concepts
Definition
An algorithm is a finite set of instructions to specify a
sequence of operations to be carried out in order to solve a
specific problem.
Definition
A program is an implementation of an algorithm in a
programming language (C, C++, Java, etc.)
Concepts
Definition
An algorithm is a finite set of instructions to specify a
sequence of operations to be carried out in order to solve a
specific problem.
Definition
A program is an implementation of an algorithm in a
programming language (C, C++, Java, etc.)
Definition
Debugging is the removal of errors from the program.
Outline
1 Problem Solving
2 Algorithms
3 Flowchart
Algorithms
Algorithms
Algorithms
Algorithms
Algorithms
Expressing Algorithms
Expressing Algorithms
Expressing Algorithms
Definition
A pseudocode is an artificial and informal language that helps
programmers develop algorithms. It is similar to everyday
english. It is convenient and user-friendly, but, it is not an actual
computer programming language
Outline
1 Problem Solving
2 Algorithms
3 Flowchart
Flowchart
Definition
A flowchart is a graphical representation of an algorithm or of
a portion of an algorithm.
Flowchart
Definition
A flowchart is a graphical representation of an algorithm or of
a portion of an algorithm.
Notations:
Examples
Example
Compute and output the sum, average, and product of the three
numbers A, B, C.
Examples
Example
Compute and output the sum, average, and product of the three
numbers A, B, C.
Example
Compute the mean of two numbers. If the mean is greater than
or equal to 60 output PASSED. Otherwise, output FAILED.
Examples
Example
Compute and output the sum, average, and product of the three
numbers A, B, C.
Example
Compute the mean of two numbers. If the mean is greater than
or equal to 60 output PASSED. Otherwise, output FAILED.
Example
Determine the smallest of any three numbers.