Lesson 1 in Computer Programming 1
Lesson 1 in Computer Programming 1
Lesson 1 in Computer Programming 1
Cycle/Programming
ConceptProgrammin
g
1. Defining the problem (planning)
. The first step in defining a problem begins with
recognizing the need for information. The problem is
thoroughly analyze in order to determine what is required for
its solution. To understand and analysing the problem we
must conduct a study to the nature of the problem and must
define what are necessary outputs required of the program.
2. Designing a Solution
When the problem is defined properly, we can
start designing the solution to the
problem. In designing the solution, we must be able
to breakdown the problem into
several steps so that it is easier for us to solve the
problem in small pieces. This
sequence of steps for the solution to the problem is
called an Algorithm.
3. Writing the Program
After the programmer has defined the problem and
designed a solution, the next step is to write the program
in a specific programming language.
4.Compiling the Program
The instructions written in a programming
language such as C must be translated into machine
language before they can be executed.
5. Debugging the Program
In computers, debugging is the process of locating
and fixing or bypassing bugs (errors) in computer
program code or the engineering of a hardware device.
6. Testing the Program
It is the process of checking if a program actually
performs its functions as planned
7. Documentation of the program
Documentation consists of written descriptions and
explanations of programs and other materials
associated with an organization’s data processing system.
Documentation of a system and a program designs are
one of the most important requirements for success in data
Input- Process-Output
There are three veryCycle
common terms that are linked to
each other. They describe particular stages in
information handling. They are:
1. Input
Data has to flow into the system in some form.
Input is the data flowing into the system from outside
Example:
A thermometer linked to the system provides data on
raw temperatures
A financial service provider sends a stream of current
share prices to your computer
A newspaper takes a news feed from a news wire
2. Processing
This will be the second stage where the information
flow is the input data being manipulated in some way. It is
the action of manipulating the input into a more useful form.
Example:
The newspaper takes the pure text obtained from the news
wire service and creates a front page layout using pictures
and formatted text.
The keystrokes being entered by the typist is converted into
ASCII format that the computer can understand.
PSEUDO-CODE
It is the art of expressing a program in a
short English phrases that is used to explain specific tasks
within a program’s algorithm. It should be written as a list
of consecutive phrases and indentation can be used to
show the logic in pseudo-code or the looping process.
BASIC SYMBOLS USED IN
FLOWCHARTING
Terminal Symbol/Block
The terminator symbol marks the staring or
ending point of the system. It usually contains
the work “start” or “end”.
Preparation/Initialization/Housekeeping Block
It is used to select condition to be initialize.
Input/output Block
It represents material or information entering or
leaving the system.
Action/Process/Sequence Block
A box can represent a single step, or and entire
sub-process within a larger process. It can
perform also any calculations to be done.
Flowlines
It signifies the process that is to be executed
next.
On Page Connector
https://www.youtube.com/watch?v=_1xT4zV8mKQ