Introduction to Computer Programming Part 2

Introduction to Computer Programming Part 2

Before reading this post if you have not read my previous post on Introduction to computer programming first read it and continue here for more understanding .
link for introduction to computer programming 

Just imagine this scenario... 
you are a manager of a company and your job is to give task to your employee. one day you got transfer to some place x and the language spoken by the employee in that place is y but you don't know that language y ,so you thought you can learn that language y and you start to learn but then you felt that learning language y is very difficult and time consuming . then what would you do?

My answer:
You can have a translator who can know both your language and the language y.the translator T can translate your command to the employee.

So what is the relation between the above scenario and computer programming?
As I said that computer can understand only one language and it machine language and it is hard to understand and code in machine language so the computer scientist came up with an idea of translator . the first translator is assembler which can translate  the assembly language to machine language.

Assembly language uses instructions to code which is easy to understand compared to Machine language and an assembler is the one who translates the assembly code to machine code.

below is the assembly code to subtract two numbers
When I saw the assembly code I felt easy compared to machine code but not so easy.the Scientist also felt the same so they introduced a concept of High level language.
The examples of high level languages are
  • Ada
  • Algol
  • BASIC
  • COBOL
  • C
  • C++
  • Python
  • Java
  • Lisp
  • Pascal  etc....
The High level languages are similar to English and are easy to understand and write code with it.
But as we know that the computer cannot understand High level language we need a translator to convert High Level Language into machine language .

There are two types of translator they are 
  • Compiler
  • Interpreter
Let's learn about them in detail in our next post....Thank You....    
Previous Post
Next Post
Related Posts

1 comment:

  1. Hi! I wish to say that this post is awesome, great written and include almost all important infos. I would like to see more posts like this .
    translation service in dubai

    ReplyDelete

Popular Posts