You are on page 1of 17

Computer Programming

 A set of written instructions in the form of


software that tells the computer exactly what to
do. Programs are designed to perform specific
tasks.
 Programmers- are individuals who develop, write,
and debug computer programs.
Programming
 It is the art and science of creating program.
 It is the process of planning and designing solutions for a
particular problem and then writing a code using
programming language.
Programming Language
 It is a tool that allows programmers to write commands or
programs that ca easily be understood by a person and that
can be translated into codes that is machine readable.
Classifications of Programming
Languages
Machine Language
 The only language that a computer understand.
Machine Language
 0000 = 0
5,270 is represented by the binary
 0001 = 1
code for 5, 2, 7, 0, which translates
 0010 = 2 into 0101 0010 0111 0000.
 0011 = 3
 0100 = 4
 0101 = 5
 0110 = 6
 0111 = 7
 1000 = 8
 1001 = 9
Assembly Language
 This is more advanced than machine language.
 Mnemomics- are memory aids.
 Instead of using numbers,programmers began using
English like abbreviations such as mov for move, mul for
multiply and add for addition.
 It is incomprehensible to computers.
 Assembler- converts assembly instruction to machine
code.
CONTINUED

High-Level Languages
 High-level program languages more resemble English
language than low-level languages.
Examples are BASIC, COBOL, FORTRAN, PASCAL , etc.
 Interpreter- it translates a program from high-level language
into machine code line by line during program is running.
 Compiler- Translates the entire program into machine code
before running the program.
Object-Oriented/Event-Driven
Programming Languages
 Visual Basic 2010 is an object-oriented programming
language.
 It is more suitable for developing complex software.
The Program Development Process
 PLANNING
 CODING
 TESTING AND DEBUGGING
 DOCUMENTATION
 MAINTENANCE
PLANNING
 Identify the problem or the requirements.
 Decide on the goals of a program.
 Will the program produce reports?
 Will the program calculate values.
CODING
 You can use the program development tool such as Visual
Basic to write the program.
 You will spend most of your programming time qworking on
the source code.
Testing and Debugging
 Errors called bugs.
 Test the program thoroughly and fix the errors.
 Fixing errors called debugging.
Documentation
 When the program is finished and tested, documentation is
included for distribution.
 It includes necessary information about the profile,
requirements of the program, operating system needed to
run the program.
 It also contains technical information.
Maintenance
 Maintenance or updating the program. This is the point
where the programmer is tasked to keep the program
running smoothly and updated.

You might also like