PROGRAMMING LANGUAGES

Slides:



Advertisements
Similar presentations
2 We need programming languages to communicate with a computer. The two broad classifications of programming languages are: Low-level and High- level.
Advertisements

Programming Creating programs that run on your PC
The Binary Machine Modern high-level programming languages are designed to make programming easier. On the other end, the low level, all modern digital.
Overview of Programming Paradigms
Computers: Tools for an Information Age
Chapter 16 Programming and Languages: Telling the Computer What to Do.
Chapter 2: Impact of Machine Architectures What is the Relationship Between Programs, Programming Languages, and Computers.
CS 104 Introduction to Computer Science and Graphics Problems Software and Programming Language (2) Programming Languages 09/26/2008 Yang Song (Prepared.
SOFTWARE SYSTEMS SOFTWARE APPLICATIONS SOFTWARE PROGRAMMING LANGUAGES.
ALGORITHMS AND PROGRAMMING LANGUAGES Lecture 5: Algorithms and programming languages Networks and Communication Department 1.
Software Development CS 1 Rick Graziani Spring 2007.
1 CHAPTER 4 LANGUAGE/SOFTWARE Hardware Hardware is the machine itself and its various individual equipment. It includes all mechanical, electronic.
Introduction to Programming End Show. Resource Team R.P Ranjan-Lecturer, SPICTEC, Galle. W.M.A.S. Wijesekara-Centre manager,CRC Hali-Ela H.P.U.S Indra.
Tools make jobs easier to do -A computer is a tool used by many professions A computer can do many different jobs because they are programmable - Machine.
Programming Languages Lecture 12. What is Programming?  The process of telling the computer what to do  Also known as coding.
1 Chapter-01 Introduction to Computers and C++ Programming.
Programming Languages – Coding schemes used to write both systems and application software A programming language is an abstraction mechanism. It enables.
Introduction to Computer Programming itc-314
Course Introduction C++ An Introduction to Computing.
COMPUTER SOFTWARE Section 2 “System Software: Computer System Management ” CHAPTER 4 Lecture-6/ T. Nouf Almujally 1.
High level & Low level language High level programming languages are more structured, are closer to spoken language and are more intuitive than low level.
Slide 1 Standard Grade Computing Studies Systems Software.
Tranlators. Machine Language The lowest-level programming languageprogramming language Machine languages are the only languages understood by computers.languagescomputers.
Programming Language Rico Yu. Levels of Programming Languages 1.Low level languages 2.High level languages.
Evolution of Programming Languages Generations of PLs.
COMPUTER PROGRAMS AND LANGUAGES Chapter 4. Developing a computer program Programs are a set (series) of instructions Programmers determine The instructions.
Copyright©2008 N.AlJaffan®KSU1 Chapter 11 Information system development and programming language.
Programming Languages 1.07a.  A computer program is a series of instructions that direct a computer to perform a certain task.  A programming language.
The Teacher Computing Computer Languages [Computing]
Computer Programs and Programming Languages What are low-level languages and high-level languages? High-level language Low-level language Machine-dependent.
CSC425 - Introduction To Computer Programming 1. 2 Generation Of Programming Languages A set of rules that telling a computer what to do. There are over.
INTRODUCTION TO COMPUTING CHAPTER NO. 04. Programming Languages Program Algorithms and Pseudo Code Properties and Advantages of Algorithms Flowchart (Symbols.
1 Week 1: The History of Computing: Software READING: Chapter 1.2.
Evolution and History of Programming Languages 1.
Module 4 Part 2 Introduction To Software Development : Programming & Languages Introduction To Software Development : Programming & Languages.
FOUNDATION IN INFORMATION TECHNOLOGY (CS-T-101) TOPIC : INFORMATION SYSTEM – SOFTWARE.
CSC1200 INTRODUCTION TO PROGRAMMING Dr. Maureen Markel
Compilers and Interpreters. HARDWARE Machine LanguageAssembly Language High Level Language C++ Visual Basic JAVA Humans.
 Computer Languages Computer Languages  Machine Language Machine Language  Assembly Language Assembly Language  High Level Language High Level Language.
5.0 PROGRAMMING Duration: 10 weeks Prepared by Ong Lay Peng Copyright © 2007.
CONCEPTS OF PROGRAMMING LANGUAGES
Machine Machine language is PL in which program instructions are written in strings of 0s and 1s.The computer circuitry is wired in a manner that it can.
Introduction to Computer Programming itc-314 Lecture 04.
Lecture-8 Introduction to computer languages.
Chapter 1: Introduction to Visual Basic.NET: Background and Perspective Visual Basic.NET Programming: From Problem Analysis to Program Design.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
Compilers and Interpreters
Skill Area 311 Part B. Lecture Overview Assembly Code Assembler Format of Assembly Code Advantages Assembly Code Disadvantages Assembly Code High-Level.
The Functions and Purposes of Translators Translators, Interpreters and Compilers - High Level Languages.
GROUP 2 NAME :  AZMYLL BIN ARSHAD  (18DNS14F2014)  MARYAM JAMILAH BINTI RAHIM  (18ENS14F2004)  SURAYA BINTI MOHAMAD  (18DNS14F2005)  MUHAMMAD SALEH.
CSC141 Introduction to Computer Programming Programming Language.
نظام المحاضرات الالكترونينظام المحاضرات الالكتروني Computer Software.
Introduction to Computer Programming Concepts M. Uyguroğlu R. Uyguroğlu.
Introduction to computer programming
Programming Languages
Programming Languages Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
High-level language programming paradigms. Programming languages come in many forms or 'paradigms'. Each form of language offers advantages over other.
Introduction to computer software. Programming the computer Program, is a sequence of instructions, written to perform a specified task on a computer.
Game programming 1.
Computer Language
Evolution and History of Programming Languages
Programming Languages
Operating System Interface between a user and the computer hardware
CSCI-235 Micro-Computer Applications
Chapter 3 Machine Language and Assembly Language.
Chapter 3 Machine Language and Assembly Language.
CSC128 FUNDAMENTALS OF COMPUTER PROBLEM SOLVING
Lecture 8 Programming Paradigm & Languages. Programming Languages The process of telling the computer what to do Also known as coding.
1.3.7 High- and low-level languages and their translators
Presentation transcript:

PROGRAMMING LANGUAGES Low-level Languages High-level Languages Advantages & Disadvantages Translators Trends in Programming Languages

Computer Languages Used to instruct the computers to work for us Machine languages Machine code (binary) Assembly languages Mnemonics (symbolic instruction code) High-level Languages Like human languages (pseudo code)

Low-level Languages Machine language Assembly language a programming language that is interpreted & executed directly by the computer Assembly language a symbolic language with an instruction set that is basically one-to-one with the machine language

Machine language (ML) each computer can only understand programs that are written in its own ML is provided by the computer manufacturer translation is needed when executing programs written in Pascal or BASIC written at the most basic level of computer operation coded as a series of 0’s and 1’s, e.g., 10111010

Machine Languages Understood and directly executed by CPU Instruction format : The fields and their widths comprising the machine instruction operation code operand/operand address opcode operand **Some formats may have two or more operand fields

Disadvantages of Machine Languages Difficult to learn, understand and memorize Programming is time consuming and easy to make mistakes, difficult to debug Machine dependent (cannot be used in computers of other type) Machine programs are very long Machine oriented (not problem oriented)

Disadv. Of Machine language (ML) very difficult to write, because: binary system - not ‘user friendly’ to human it requires excellent memorizing power programmer has to keep track of storage locations of data & instruction  ASSEMBLY LANGUAGE

Programs & Progr. Lang. program programming lang. - later generations: a series of instructions make a computer ‘works’ can be written in a variety of programming languages programming lang. - later generations: fewer instructions provide a more sophisticated programmer/computer interaction

The hierarchy of programming languages Fourth generation languages (4GLs) Assembler Business COBOL (1959) Machine Multipurpose BASIC (1965) Pascal (1968) Scientific FORTRAN (1955) Procedural languages High-level are problem oriented Low-level machine 4th gen. 3rd 2nd 1st More sophistication in programmer/ computer interaction

Assembly language also provided by the manufacturer one instruction for each computer operation instruction codes are represented by mnemonics (symbolic instr. code) the code must be assembled into machine language for execution One-one correspondence with ML

Assembly language Disadvantages: (similar to that of ML) machine dependent the program is usually long hard to learn & slow to write HIGH LEVEL LANGUAGES

High-level Languages made programming much more convenient written using common names & words, more like human languages problem-oriented languages designed to solve specific problems e.g., FORTRAN, COBOL, BASIC, Pascal & C++(object-oriented)

Advantages of High-level Languages easier to write, to read & to modify written in English-like format programs - faster & shorter to code one statement for several computer operations more portable, i.e., can be executed by different computers (with slight modifications) machine independent

Adv. of Low-level Languages take up less storage space run faster useful for writing system programs e.g. operating systems (require fast & efficient use of CPU) sometimes an operation can only be performed in a low-level language (can access the hardware directly)

Translators Programs (except ML) must be translated into machine codes before execution Source program Object program Translator Execution A simplified translation process

Translators - 3 types The functions of the three types of translators Source program Translator Object program Execution assembly language programs high-level machine codes assembler compiler interpreter The functions of the three types of translators

Differences between compilers & interpreters

Trends in Programming Languages fewer instructions (more high-level) more user-friendly towards using 4GLs non-procedural language users only have to state what needs to be done, but not how to do it designed for users with minimal programming knowledge & training

Trends in Programming Languages Logic programming (e.g., Prolog) 5th-generation computer language declarative language expert systems & artificial intelligence application Object-oriented techniques e.g., Borland C++ Visual development environments e.g., Microsoft Visual Basic