Algorithm Flow Charts
Algorithm Flow Charts
In this lecture
The steps to create a program
Your first C++ program
Algorithm
A planning process must precede implementing
a computer program.
The computer needs a systematic approach for
finding solutions: a series of steps that involves
no guesswork.
An algorithm is a solution technique that is
unambiguous, executable, and terminating.
Unambiguous - no room for guesswork or creativity.
Executable - each step can be carried out in practice.
Terminating - the process will eventually come to an
end.
Algorithms (Example)
Problem:
You put Rs 10,000 into a bank account
that earns 5% interest per year. How
many years does it take for the
account balance to be double the
original?
After Year
0
Balance
$10,000