Lesson 3 - The Programming Process
Lesson 3 - The Programming Process
TO
PROGRAMMING
In the past lesson we
discussed..
• Introduction to Computer
Programming
• What is Computer Programming?
• Programming Languages
• Types of Computer Programs
• Uses of Computer Programs
Today, we’ll talk about..
• Programming process
The Programming Process
In the Program Development Life
Cycle or PDLC, this is a methodological
way of developing a program, there are
five phases in the program development,
namely:
Enter NUM1
Calculate SUM
as NUM1+NUM2
Display the
SUM
End
Flowchart
Start
Enter
Income
Enter
Find the profit/loss by comparing
Cost the income and cost.
No
Calculate Loss
as Cos-Income
Enter NUM1
Calculate the sum of two numbers.
Enter NUM2
The symbol used:
Terminal (Start/End)
Calculate SUM
as NUM1+NUM2
Input/Output
Display the
SUM Process
Flowchart
Enter
Selling
No Input/Output
Calculate Loss as
Cost-Selling price
Process
Decision
Display Loss End
Arrow Lines
Algorithm
Similar to flowcharts, an algorithm is a
procedure for problem-solving by executing
a sequence of steps taken. Unlike the
flowchart, however, the algorithm does not
use symbols or any pictorial
representation. Instead, the processes are
written in lists.
Flowchart
Algorithm
Start
Step 1: Start
Enter NUM1 Step 2: Enter the first
number (NUM 1)
Enter NUM2 Step 3: Enter the second
number (NUM 2) Calculate the sum of
two numbers.
Calculate SUM as Step 2: Calculate the sum as
NUM1+NUM2
NUM 1 + NUM 2
Display the
SUM
Step 2: Display the result
Step 2: End
End
Coding the Program
The next stage it to transfer the
solution to the problem in the computer
program. You will interpret the logic from
the prepared flowchart, or pseudo-code
into the actual programming codes based
on which programming language you are
going to use.
Coding the Program
Coding the program operates grammatically
somewhat like the English language. There are
sets of rules, called syntax, that determine if the
program will work, and how is it going to work.
Although each programming language has
different syntaxes form one another, the concept
of implementation is usually similar. Therefore,
learning multiple programming language is not
going to be very complicated.
Coding the Program
These are some of the tools needed to start
writing a program:
• Text Editor
• Integrated Development Environment
(IDE)
• Compiler
Questions?
Comments?
Share it with the
class.
That’s all for
Thank
today!you.
Keep safe.
God bless.