13
UNIT - 1 Topic - 3 COMPUTER LANGUAGES

UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

Embed Size (px)

Citation preview

Page 1: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

UNIT - 1 Topic - 3

COMPUTER

LANGUAGES

Page 2: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

What is a SOFTWARE?Computer software is a program that tells a computer what to do.

Computer software, or just software, is any set of machine-readable instructions that directs a computer's processor to perform specific operations.

Software is a program that enables a computer to perform a specific task, as opposed to the physical components of the system (hardware).

Software is a set of programs, which is designed to perform a well defined function.

Page 3: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

What is a Computer Program?

A computer program, or just a program, is a sequence of instructions, written to perform a specified task with a computer..

A computer program is a set of instructions for a computer to perform a specific task.

Page 4: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

What is a Computer Instruction?

A computer instruction is a statement which tells to the computer to do some task (Operation).

Example:

c = a + b;It is instruction which tells to the computer that “add values stored in memory location ‘a’ & ‘b’ and store the result in memory location ‘c’”.

Page 5: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

How Computer Instruction is generated?

We use Computer Programming Language to generate computer instructions.

Page 6: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

NoteRelated to the computer technology languages are divided into THREE types.

High Level Language

Middle Level Language

Low Level Language

Page 8: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

Middle Level Language

The combination of High Level & Low Level Languages is called Middle Level Language.

Page 9: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

Low Level Language

Language which can be understand by a computer is called as a Low Level Language.

Binary Language

Page 10: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

Problem with these languages?

UsersUser writes all

instructions in High Level Language

Page 11: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

Solution

To solve the language problem we use TWO types of translators.

Page 12: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

InterpreterInterpreter converts instructions from High Level Language to Low Level Language, but it is done ‘LINE BY LINE’.

void main(){ int a,b,c; a = 10 b = 20; c = a + b;}

1110001010110001110111110001011010001

Conversion is stopped

Page 13: UNIT - 1Topic - 3. Computer software is a program that tells a computer what to do. Computer software, or just software, is any set of machine-readable

CompilerCompiler converts instructions from High Level Language to Low Level Language, but it is done ‘ENTAIRE PROGRAM AT TIME’.

void main(){ int a,b,c; a = 10 b = 20; c = a + b;}

1110001010110001110111110001011010001

Creates a List of ERRORsIt Displays the List of ERRORs1110001011010001

11100010110100011110001011010001100101

If there are no ERRORs