Basic Elements of Programming
Basic Elements of Programming
OF PROGRAMMING
REPORTER: GROUP 3
11-HUMSS 4
WHAT IS
PROGRAMMING?
PROGRAMMING
• The action or process of writing computer programs.
• The process of developing and implementing various
sets of instructions to enable a computer to do a
certain task. These instructions are considered
computer programs and help the computer to operate
smoothly. The language used to program computers is
not understood by an untrained eye. Computer
programming continues to be a necessary process as
the Internet continues to expand.
5 BASIC ELEMENTS OF
PROGRAMMING
• PRIMITIVE VARIABLE
-WHEN ON THE LEFT OF
- Contains actual data
• REFERENCE VARIABLE
- Preview data is replaced with new data
-Old reference is replaced with a new
reference
FLOWCHART
- Is a graphical presentation of the
procedure involved in the solution or
problems. This consists of symbols that
are interconnected to provide illustration
of the flow of control in a program. In can
be use to show variety of different
procedure at different level.
TWO TYPES OF
FLOWCHART
• System Flowchart
- Shows the overall activities in a system.
• Program Flowchart
- Depicts the logic or the orders of instruction
to solve a specific problem.
BASIC
FLOWCHARTING
SYMBOL
TERMINAL BLOCK
-THIS IS USE TO INDICATE THE BEGINNING OR END OF THE PROGRAM.
INPUT/OUTPUT BLOCK
- USE FOR INPUT OR DISPLAYING DATA
PROCESSING BLOCK
-USE FOR MATHEMATICAL OPERATION (FORMULA).
DECISION BLOCK
- USE FOR LOGICAL/RELATIONAL OPERATION ANSWERABLE BY YES/NO.
PREPARATION/INITIALIZATION BLOCK
-USE FOR DECLARING VARIABLES.
FLOW LINES
- USE TO THE DIRECTION OF DATA.
ON PAGE CONNECTOR
-USE TO CONNECT THE FLOW CHART ON THE SAME PAGE.
Start A
Input num 2
Display “Enter the
First Value”
Ans = num 1 +
num 2
Input num 1
Display Ans
A
SELECTION CONTROL STRUCTURE
Start
Display
“Enter Age”
Input Age
Y Is
Display
Age<=17
“Qualified”
?