60 likes | 178 Views
Programming Languages. In this Course Title “Introduction Programming” therefor it is most essential and appropriate to under stand what programming. Definition : A program is a precise sequence of step to solve a particular problem.
E N D
Programming Languages In this Course Title “Introduction Programming” therefor it is most essential and appropriate to under stand what programming. Definition : A program is a precise sequence of step to solve a particular problem. It means that when we say that we have a program, it actually means that we know about a complete set activities to be performed in a particular order. The purpose of this activities is to solve a given problem. A program is a set of step by step instructions that directs the computer to do tasks that are required & produced the desired result. A set of rules that provides a way of communication between two ends(user & Computer) is called programming language. Low Level Language High Level Language Design By Sir Masood
Low level Language Machine Language It is also called binary language because it is the language of 0’s & 1’s means that every instruction in machine language consist of a series of zeros & ones (binary code) that a computer can understand and execute directly Assembly Language Assembly language is the next level of programming language. In this the statements are written in symbolic codes (mnemonics) that are easier for human to read & write as compared to machine code. Example: ADD ax,30h SUB dx,20d Design By Sir Masood
High Level Language A program written in high level language is called “source program ”The high level programs can be executed on any computer that has a compiler for that language .high level languages are closer to human that is easily understood by the programmer Each high level language has its own compiler Example: GW-Basic , C-Language ,Java etc Design By Sir Masood
Language Translators It translates user oriented language into machine language that is understood by computer. There are 3 types of translators Assembler Assembler is a program that converts an assembly language program into machine language Interpreter Interpreter is also used to translate high level program into machine language .The interpreter do not make any object file and it translates the program any time user will execute it . Interpreter translate the program line by line meaning it read one line of program and translates it then it read second line , translate it and so on. Design By Sir Masood
Compiler Compiler is similar to assembler in a way that it translate high level language program into machine language. the compiler translate whole program into machine language at once and make a separate object file for that translated program so that whenever user execute that program , computer uses that object file without translating program again and again. Design By Sir Masood
Basic stands for “Beginner's All Purpose Symbolic Instruction Code", developed by John & Thomas in Dartmouth College USA 1965. BASIC language is the simplest & friendly language. It's a simple form of C language. It is easy to learn for beginner’s level person. As Microcomputer began to evolve in the mid of 1970, the manufacturers adopted BASIC as their standard programming language. It is general purpose programming languages. Introduction to Basic Programming Design By Sir Masood