FUNDAMENTALS OF PROGRAMMING
FUNDAMENTALS OF PROGRAMMING
PROGRAMMING 1
Presentation by. Patty Mae R.
Lim
PRAYER
LORD, TRUE SOURCE OF LIGHT AND WISDOM, GIVE
US KEEN SENSE OF UNDERSTANDING, A RETENTIVE
MEMORY AND A CAPACITY TO GRASP THINGS
CORRECTLY.
WHAT IS PROGRAMMER?
A computer professional who writes this set of
instructions
WHAT IS PROGRAMMING
LANGUAGE?
is a tool that allows programmers to write commands
or programs that can easily be understood by a
person and translated into codes that are machine-
readable. (e.g. C Language)
WHAT IS ALGORITHM?
is a formula or set of steps for solving a particular
problem. As an algorithm, a set of rules must be
unambiguous and have a clear stopping point. It can
be expressed in any language, from natural
languages like English to programming languages.
EXAMPLE: LET US SAY THAT YOU HAVE A FRIEND ARRIVING AT THE BUS
STATION, AND YOUR FRIEND NEEDS TO GET FROM THE BUS STATION TO YOUR
HOUSE. THERE ARE DIFFERENT ALGORITHMS THAT YOU MIGHT GIVE YOUR
FRIEND FOR GETTING TO YOUR HOME.
B. Call-me algorithm:
1. When your bus arrives, call me by my cell phone.
2. Meet me at the bus station
TERMS TO REMEMBER
Logic is sound reasoning in solving a problem.
Formulation means expressing concisely the solution to a given
problem.
Program Specification refers to the precise instructions necessary for
writing a program.
Input refers to the data that is entered into a computer system.
Process refers to the set of conditions used in converting the inputs
into outputs.
Output refers to the information produced by a computer system
VARIABLE AND CONSTANT
VARIABLE
• A variable is a named area in memory that stores
value or string.
• It serves as a container or storage area that holds
data.
EXAMPLE
If in case a constant values is given for a variable , say SN =10, the algorithm is written
this way:
Begin
SN=10
input FN
SUM=FN+ SN
Display SUM
End
1. Does it have defined inputs and
outputs?
2.It is guaranteed to terminate?
3.Does it produce the correct result?
SYNTHESIZE
08
1. WHAT IS AN ALGORITHM?
2. How do you formulate an algorithm?
3. What is the difference between an algorithm and
a computer program?
08
ACTIVITY: PROBLEM ANALYSIS
DIRECTION: GIVEN THE PROBLEM BELOW, ANSWER THE QUESTIONS FOUND IN THE
TABLE. WRITE YOUR ANSWER IN THE SPACE PROVIDED FOR YOUR ANSWER.
PROBLEM: INPUT THREE NUMBERS AND FIND THE AVERAGE OF THE THREE NUMBERS.
08
ASSIGNMENT
SEARCH ABOUT FLOWCHART
11
THANK YOU!
Do you have any
question?
11