2. objectives
• Identify a computer program;
• Define a computer programming language;
• Give examples of computer programming languages.
3. Computer Program
• A computer needs written instructions to perform specific tasks.
These written instructions are called programs.
• Technically, a program is defined as a sequence of instructions written
to perform a specific task with a computer.
• It is an organized list of instructions that, when executed causes the
computer to behave in a predetermined manner.
4. Examples
• In ALGOL
BEGIN
DISPLAY( “Welcome to Esteem”)
END
• In BASIC
PRINT “Nigeria is great”
• In C
(programming language)
#include <stdio.h>
Int main (void)
{ printf(“Nigeria is greatn”)
{ return 0
5. Examples cont.
• In Fortran
Program Nigeria
Print*, ‘Nigeria is great’
End program Nigeria
6. Programming Language
• A programming language is an artificial language that is designed to communicate instructions to a machine,
particularly computer. A programming language can be used to create programs which control the behavior
of a machine particularly a computer.
• Examples
• BASIC;
• Fortran
• Cobol;
• C;
• Pascal
• Algol;
• Logo;
• Assembly language;
• Java;
• Prolog e.t.c
7. Types of programming languages
Programming Languages
Assembly Language
High-level Language
Machine language