Professional Documents
Culture Documents
1 Programming
LEARNING OUTCOMES
By the end of this topic, you should be able to:
1. Define computer program and programming; and
2. List the six steps involved in the program development process.
INTRODUCTION
Since its introduction, computers have helped tremendously to make everyday
human tasks easier. With the help of a computer, we can pay bills, perform
banking transactions and even shop from home. Businesses depend on
computers for seamless operations. More and more students are also learning
with computers at schools. Imagine a life without computers!
This topic will discuss programming concepts and the processes involved in
developing a program.
ACTIVITY 1.1
Being aware of the sequence of things is important in human life. The sequence is
achieved through a process called programming. In our daily routine, we often
have to do the same tasks repeatedly. This may make us feel bored or to lose
interest, resulting in the task not being completed properly or completed with
errors. Programs prevent human beings from having to do repetitive tasks.
Whereas,
Each of these phases is divided into several parts. Refer to Figure 1.1 to learn
about the relationship between these two phases.
We will discuss in detail how these three steps are carried out.
(a) Analysis
Analysis is the process of understanding and defining a problem. At this
stage, a programmer should try to state the problem clearly and
understand what needs to be done to solve the problem. We may need to
know additional detailed information from the people who have identified
the problem.
During analysis, ensure that you understand and define the problem
accurately.
(c) Walkthrough
Walkthrough is one of the steps in algorithm design that is often forgotten.
(b) Testing
Testing a program code is the process of running a program and checking it
for errors. This is to ensure the program does what it is intended to do.
Normally, testing is carried out by running the program code repeatedly
using a set of different data, to ensure it functions properly for every
situation. Large input size that cannot be tested manually has to be tested
now. If an error is found, the program needs to be modified until it
produces the right output or answer.
(c) Maintenance
Maintaining and updating a program code involves tasks in modifying the
program code, to eliminate errors that were not found before, and to
update it according to current changes in the organisationÊs rules and
policies.
Usually, maintenance work is carried out every five years and the
programmer who developed the program might have left the organisation
by then. Therefore, it is important for a programmer to write programs that
are easy to read, understand and maintain. Thus, we must adhere to
programming styles that are accepted by the programming society.
SELF-CHECK 1.1
1. What is a program?
There are three steps that must be taken to solve any problem, which are: to
perform a problem analysis, get a general algorithm design and
walkthrough the algorithm.
The implementation phase also consists of three steps which are: detailed
problem-solving in the form of program code, carrying out tests on the
program code and maintaining the program code.