Module 01 Overview of Programming Languages: Background
Module 01 Overview of Programming Languages: Background
1
Overview of Programming Languages
Background
Computers can do such a wide variety of things because they can be programmed. This means that
computers are not designed to do just one job, but to do any job that their programs tell them to do. A
program is a set of instructions that a computer follows to perform a task.
Two commonly used programs, Microsoft Word and Adobe Photoshop. Microsoft Word is a word
processing program that allows you to create, edit, and print documents with your computer. Adobe
Photoshop is an image editing program that allows you to work with graphic images, such as photos
taken with your digital camera.
A programmer, or software developer, is a person with the training and skills necessary to design,
create, and test computer programs. Computer programming is an exciting and rewarding career.
Today, you will find programmers’ work used in business, medicine, government, law enforcement,
agriculture, academics, entertainment, and many other fields.
Course Module
Integrative Programming and Technologies 1
2
Overview of Programming Languages
Computer Program
A program is a set of instructions following the rules of the chosen language. Without programs,
computers are useless. A program is like a recipe. It contains a list of ingredients (called variables)
and a list of directions (called statements) that tell the computer what to do with the variables.
Programs are usually stored on a secondary storage device such as a disk drive. When you install a
program on your computer, the program is typically copied to your computer’s disk drive from a
CD-ROM, or perhaps downloaded from a website. Although a program can be stored on a secondary
storage device such as a disk drive, it has to be copied into main memory, or RAM, each time the CPU
executes it. For example, suppose you have a word processing program on your computer’s disk. To
execute the program you use the mouse to double-click the program’s icon. This causes the program
to be copied from the disk into main memory. Then, the computer’s CPU executes the copy of the
program that is in main memory.
Programming Language
A vocabulary and set of grammatical rules (syntax) for instructing a computer to perform specific
tasks. Programming languages can be used to create computer programs. The term programming
language usually refers to high-level languages, such as BASIC, C, C++, COBOL, FORTRAN, Ada, and
Pascal.
You eventually need to convert your program into machine language so that the computer can
understand it. There are two ways to do this: Compile the program and interpret the program.
Compile is to transform a program written in a high level programming language from source code
into object code. This can be done by using a tool called compiler. A compiler reads the whole source
code and translates it into a complete machine code program to perform the required tasks which
is output as a new file.
Interpreter is a program that executes instructions written in a high-level language. An interpreter
reads the source code one instruction or line at a time, converts this line into machine code and
executes it.
Computer Programming
Computer programming is the process of writing, testing, debugging/troubleshooting, and
maintaining the source code of computer programs. This source code is written in a programming
language like C++, JAVA, Perl etc.
Course Module
Integrative Programming and Technologies 1
3
Overview of Programming Languages
Computer Programmer
A programmer is someone who writes computer program. Computer programmers write, test, and
maintain programs or software that tell the computer what to do.
Course Module