Professional Documents
Culture Documents
INTRODUCTION TO PROGRAMMING
2. Low level languages – are used to write programs that relate to the specific architecture
and hardware of a particular type of computer. They are closer to the native language of a
computer (binary), making them harder for programmers to understand. Examples are
assembly language and machine code.
Advantages:
• Can make use of special hardware or special machine-dependent instructions (e.g.
on the specific chip)
• Translated program requires less memory
• Write code that can be executed faster
5. Syntax – is grammatical rules of a programming language. If you did not follow correctly the
syntax of a specific programming language this will result to syntax error.
6. Syntax error is an error in the syntax of a sequence of characters. A program will not compile
or run until all syntax errors are corrected and the process is called debugging.
7. Debugging- or to debug a program means to identify and remove errors from a program.
8. Programmer- a person who creates programs or instructions for a computer.
Characteristics of a Successful Programmer:
1. Puzzle Solver – It is not easy to write a code, a huge a part of the coding process is trial
and error. It is frustrating and requires a lot of patience. If you enjoy the challenge of solving
a problem then you will become a successful programmer.
2. Always Learning - Programming, like almost all jobs involving computer technology, is
prone to extremely rapid changes. If you’re working in this field, you will have to be willing
to learn new stuff. That means refreshing and updating your skillset to fit the market and
technology as a whole at regular intervals. This is a vital skill to becoming a successful
programmer in the long term.
3. Curious - Even if things work after the first try, a good programmer still asks themselves why
that is. A good programmer always strives to understand how his work functions, because
8. Love for Technology- Last but not least, a good programmer is very passionate
about technology. “Doing what you love” is the motto of a successful programmer.
9. The Five Step Process of Programming:
1. Defining the problem- Specifically, the task of defining the problem consists of
identifying what it is you know (input-given data), and what it is you want to obtain
(output-the result).
2. Planning the solution- Two common ways of planning the solution to a problem are to
draw a flowchart and to write pseudocode, or possibly both.
3. Coding the program - As a programmer, your next step is to code the program-that is,
to express your solution in a programming language. You will translate the logic from
the flowchart or pseudocode to a programming language.
4. Testing the program – to look for errors in a program and debug them.
Usually, a small process of one functionality follows a basic flowchart/diagram of almost five steps
only.
Example:
Flowchart Components
An input number is taken and divided by 2. If the remainder is equal to zero, the number is even, else printed as
Activity: Write an algorithm and a flowchart to the following problems. (20 points)
1. The process of baking a cake.
2. The process of getting the square root of a number.
3. Online enrollment procedure in PUP.
4. How to achieve a healthy body.
5. Getting the average grade of a student.