Differencebetween machine language and high level language
Answers
Answer:
The difference between High level language and Machine language.
Explanation:
High level language :
A high-level language is a programming language that uses English and mathematical symbols, like +, -, % and many others, in its instructions. When using the term 'programming languages,' most people are actually referring to high-level languages. High-level languages are the languages most often used by programmers to write programs. Examples of high-level languages are C++, Fortran, Java and Python.
To get a flavor of what a high-level language actually looks like, consider an ATM machine where someone wants to make a withdrawal of $100. This amount needs to be compared to the account balance to make sure there are enough funds. The instruction in a high-level computer language would look something like this:
x = 100
x = 100if balance x:
x = 100if balance x: print 'Insufficient balance'
x = 100if balance x: print 'Insufficient balance'else:
print 'Please take your money'
This is not exactly how real people communicate, but it is much easier to follow than a series of 1s and 0s in binary code.
There are a number of advantages to high-level languages. The first advantage is that high-level languages are much closer to the logic of a human language. A high-level language uses a set of rules that dictate how words and symbols can be put together to form a program. Learning a high-level language is not unlike learning another human language - you need to learn vocabulary and grammar so you can make sentences. To learn a programming language, you need to learn commands, syntax and logic, which correspond closely to vocabulary and grammar.
The second advantage is that the code of most high-level languages is portable and the same code can run on different hardware. Both machine code and assembly languages are hardware specific and not portable. This means that the machine code used to run a program on one specific computer needs to be modified to run on another computer. Portable code in a high-level language can run on multiple computer systems without modification. However, modifications to code in high-level languages may be necessary because of the operating system. For example, programs written for Windows typically don't run on a Mac.
Machine language :
Machine language, or machine code, consists of binary code and is the only language that is directly understood by the computer. ... Both machine code and assembly languages are hardware specific.
I HOPE YOU UNDERSTAND THE DIFFERENCE BETWEEN MACHINE LANGUAGE AND HIGH LEVEL LANGUAGE.