6.4k views
2 votes
Explain programming language and three main types of programming​

1 Answer

5 votes

Answer:

Machine language

Assembly language

High - level language

Step-by-step explanation:

MACHINE LANGUAGE:

Machine language is a collection of binary digits orbits that the computer reads

and interprets.

Machine languages are the only languages understood by computers.

While easily understood by computers, machine languages are almost

impossible for humans to use because they consist entirely of numbers.

Example of Machine Language code and their corresponding machine operation

are:

0000 0000 = stop

0000 0001= Rotate bristles left

0000 0100 = Go back to start of program

Machine Language:

Machine-language programming was simply too slow, tedious and error-prone for

most programmers.

Instead of using the strings of numbers that computers could directly understand,

programmers began using English-like abbreviations to represent elementary

operations. These abbreviations formed the basis of Assembly languages.Assembly Language:

Assembly language is a middle-level language. It consists of a set of instructions in

a specific format called commands. It uses symbols to represent field of

instructions. It is very close to machine level language. The computer should have

assembler to translate assembly level program to machine level program.This is because, the computer doesn't understand the assembly code, so it needs

to be converted into machine code

These assemblers which are also called the translator programs were developed to

convert early assembly-language programs to machine language at computer

speeds.

ASSEMBLY LANGUAGE ;

The following section of an assembly-language program also adds overtime pay to

base pay and stores the result in gross pay:

load =basepay

add = overpay

store= grosspay

Although such code is clearer to humans, it is incomprehensible to computers until

translated to machine language.

Computer usage increased rapidly with the advent of assembly languages, but

programmers still had to use many instructions to accomplish even the simplest

tasks. To speed the programming process, high-level languages were developed.

HIGH-LEVEL PROGRAMMING LANGUAGES;

High-level languages allow us to write computer code using instructions resembling

everyday English and contain commonly used mathematical operation which are

then translated into machine language to be executed.

To speed the programming process, high-level languages were developed in which

single statements could be written to accomplish substantial tasks.

Some programming languages use program translators such a compiler to perform

this translation and others use an interpreter.

A payroll program written in a high-level language might contain a statement such

as

grossPay= basePay + overTimePay

User Dino Tw
by
7.7k points

No related questions found