Professional Documents
Culture Documents
Intro To Programming
Intro To Programming
PROGRAMMING
Week 1 – Part 1
CSC 1164
COMPUTER
PROGRAM A program is a set of instructions following the
rules of the chosen language.
Without programs, computers are useless.
A program, also called an application or software,
is a set of instructions that process input,
manipulate data, and output a result. For example,
Microsoft Word is a word processing application
that allows users to create and write documents.
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.
Instructions must be written in a way that the
computer can understand.
Programming languages are used to write
programs.
DEFINITION OF PROGRAM
• A set of instructions that tells a computer to
perform tasks.
COMPUTER PROGRAMMING
• Computer programming is the process of writing,
DEFINATION 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.
COMPUTER PROGRAMMER
a) MACHINE LANGUAGE
The fundamental language of the computer’s processor, also called Low Level Language.
Machine language is a collection of binary digits or bits that the computer reads and interprets.
Also known as machine code or object code, is the elemental language of computers.
Machine language is the only language a computer is capable of understanding.
All programs are converted into machine language before they can be executed.
Is the natural language of a computer.
Consists of combination of 0’s and 1’s that represent high and low electrical voltage.
Machine language is a collection of binary digits or bits that the computer reads and interprets.
Programming language that can be directly understood and obeyed by a machine (computer) without
conversion (translation).
machine languages are almost impossible for humans to use because they consist entirely of numbers.
LOW LEVEL LANGUAGE
•Examples of code:
1110100010101 111010101110
Example:
•Let us say that an electric toothbrush has a processor and main memory.
•The processor can rotate the bristles left and right, and can check the on/off switch.
The machine instructions are one byte long, and correspond to the following machine operations:
LOW LEVEL LANGUAGE
ADVANTAGE DISADVANTAGE
Instructions are readily understood by the Instructions are extremely cryptic and difficult to
computer learn
ADVANTAGE DISADVANTAGE