Intro To Programming
Intro To Programming
(ITFLO2C)
PROGRAM
– a set of step by step
instruction that directs the
computer to do the task
you want it to do and to
produce the result wanted.
Programming Language
Standardized
COMMUNICATION technique
for expressing INSTRUCTIONS
to a computer.
Set of COMMANDS that is
formulated by the user and
executed by the computer.
Categories of Programming Language
HIGH-LEVEL
•- A Programming Language
that is more USER-
FRIENDLY
- PLATFORM-
•
INDEPENDENT
• Fortran
Categories of Programming Language
LOW-LEVEL
•- Assembly languages are
similar to machine
languages, but they are
much easier to program
because they allow
programmer to substitute
names for numbers.
What Programmers Do?
Makes / executes programs.
Converts problems and solution to
computer instruction.
Prepares instruction of program, runs,
tests and debug the program
Write a report on the program
Helps the user develop new program to solve
problems.
Click icon to add picture
Widescreen Pictures
Pictures can also be presented more dramatically in widescreen.
The Program Development Life
Cycle
Testing the
Problem
Coding
Planning &the
Solution
Definition
Program
Debugging
D
oc
u
m
en
ti
ng
th
e
Pr
og
ra
m
The Program Development Life
Cycle
Problem Definition
Sample Problem:
“Create a program that will determine the
number of times a name occurs in a list”
The Program Development Life
Cycle
Program Requirement:
Determine the number of times a name occurs in a list
Input:
list of name, name to look for
Process:
count the number of times the name occurred
Output:
the NUMBER of times the name occurs in a list
The Program Development Life
Cycle
Planning the Solution
Flowcharting
c. Flowchat
Get
nameList
Get
keyNam
e
STOP count = 0
NO YES
Display More Name =
count names? keyName?
YES
NO count = count + 1
Flowcharting
Flowcharting
GUIDELINES IN FLOWCHARTING
1. In drawing a proper flowchart, all necessary requirements should
be listed out in logical order.
.
Flowcharting
OR
Flowcharting