L5 COMPUTER PROGRAMING (3)
L5 COMPUTER PROGRAMING (3)
PROGRAMING
FSU-031
COMPUTER PROGRAM
plan or procedure for solving
a problem with a computer;
A computer program is a
more specifically, an
collection of instructions
unambiguous, ordered
that can be executed by a A computer program is a
sequence of computational
computer to perform a sequence of instructions
instructions necessary to
specific task. A computer written using a Computer
achieve such a solution. The
program is usually written Programming Language to
distinction between
by a computer perform a specified task
computer programs and
programmer in a by the computer.
equipment is often made by
programming language. .
referring to the former as
software and the latter as
hardware.
What exactly do you do to tell him the way to go to KFC?
First go straight, after half kilometer, take left from
the red light and then drive around one kilometer
and you will find KFC at the right.
1. Go straight
2. Drive half kilometer
3. Take left
4. Drive around one kilometer
5. Search for KFC at your right side
Things to remember:
• A computer program is also called a computer software, which can
range from two lines to millions of lines of instructions.
One
• Machine language, or machine code, is a low-level language comprised of binary digits (ones and zeros).
• High-level languages, such as Swift and C++ must be compiled into machine language before the code is run on a
computer.
• Since computers are digital devices, they only recognize binary data.
• Every program, video, image, and character of text is represented in binary. This binary data, or machine code, is
processed as input by the CPU. The resulting output is sent to the operating system or an application, which displays
the data visually.
• For example, the ASCII value for the letter "A" is 01000001 in machine code, but this data is displayed as "A" on the
screen. An image may have thousands or even millions of binary values that determine the color of each pixel.
Machine Language vs Assembly Language
• Machine language and assembly language are both low-
level languages, but machine code is below assembly in the
hierarchy of computer languages.
• NOTE:
While machine code is technically comprised of binary data,
it may also be represented in hexadecimal values. For
example, the letter "Z," which is 01011010 in binary, may be
displayed as 5A in hexadecimal code.
Compiler
Thank You