0% found this document useful (0 votes)
2 views

L5 COMPUTER PROGRAMING (3)

Computer programing c++

Uploaded by

grockstar705
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

L5 COMPUTER PROGRAMING (3)

Computer programing c++

Uploaded by

grockstar705
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

COMPUTER

PROGRAMING
FSU-031

BY: Dr Pankaj Vaidya


Computer program, detailed

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

• Computer program instructions are also called program source code


and computer programming is also called program coding.
Two

• A computer without a computer program is just a dump box; it is


programs that make computers active.
Three
Programing Languages
If you understood what a computer program is, then we will say: the act of writing computer programs is called
computer programming.
As we mentioned earlier, there are hundreds of programming languages, which can be used to write computer
programs and following are a few of them −
• C
• C++
• JAVA
• Python
• PHP
• Perl
• Ruby
Before Proceeding to Programing

• 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.

• Assembly language includes human-readable commands,


such as mov, add, and sub, while machine language does not
contain any words or even letters.

• Some developers manually write assembly language to


optimize a program, but they do not write machine code.
Only developers who write software compilers need to
worry about machine language.

• 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

You might also like