IT for Managers 6

download IT for Managers 6

of 28

Transcript of IT for Managers 6

  • 8/8/2019 IT for Managers 6

    1/32

    Information Technologyfor Managers

    Session 6By

    Prof. Arun Mishra

  • 8/8/2019 IT for Managers 6

    2/32

    L earning Objectives

    I n this session you will learn:Machine Language

    Assembly LanguageHigh-level LanguageObject-oriented Language

    CompilersI nterpretersSubroutines

  • 8/8/2019 IT for Managers 6

    3/32

    C omputer L anguage

    A language that is acceptable to acomputer system is called computer

    language or programming language.A computer Language is used by aprogrammer to instruct a computerwhat he wants to do something.

  • 8/8/2019 IT for Managers 6

    4/32

    Types of C omputer L anguage

    Machine Level LanguageAssembly Language

    High Level LanguageFourth level LanguageObject oriented Language.

  • 8/8/2019 IT for Managers 6

    5/32

    Machine L evel L anguage

    Machine language of a computer iswritten as string of binary 1 & o.

    Example- 10001,101010A computer can be programmed tounderstand many different computerlanguages, but there is only one

    language understood by computerwithout using a translation program.This Language is called Machine LevelLanguage or language of computer.

  • 8/8/2019 IT for Managers 6

    6/32

    Machine language instruction format

    I t has two parts:OPCODE (operation code)- tells the

    computer what function to perform.OPERAND- tells computer where tofind or store the data or instructionwhich are to be manipulated.

  • 8/8/2019 IT for Managers 6

    7/32

    Operations included in instructionformat of machine language

    Arithmetic operationsLogical operationsBranch operations for transfer of controlto the address given in operand field.Data movement operations for movingdata between memory location &

    registers.Data movement operations for movingdata from 1 computer to another. Or 1input device to another output device.

  • 8/8/2019 IT for Managers 6

    8/32

    L imitation of Machine level language

    Machine dependent.Difficult to program.

    Error prone- tough to rememberopcodes.Difficult to modify.

  • 8/8/2019 IT for Managers 6

    9/32

    A ssembly L anguage

    A Language which allows instructionand storage location to be

    represented by letters and symbols,instead of numbers is calledAssembly Language.A program written in An assemblylanguage is called an assemblylanguage program.

  • 8/8/2019 IT for Managers 6

    10/32

    Merits of A ssembly L anguage over Machine L anguage

    I t uses alpha numeric codes instead of numeric codes for instructions. e.g.-We use ADD instead of 1110 for theinstruction to Add.I t allows Storage Location to berepresented in the form of

    Alphanumeric address instead of numeric address. e.g.- memorylocation 1000,1001,1002 may berepresented as F I RST, SCND, ANSR.

  • 8/8/2019 IT for Managers 6

    11/32

    Merits of A ssembly L anguage over Machine L anguage

    I t provides additional instructions,called pseudo instructions in instructionset.

    e.g.- pseudo instruction tell things like:-START program AT 0000START data AT 1000SET AS I DE an address for FRST

    SET AS I DE an address for SCND

  • 8/8/2019 IT for Managers 6

    12/32

    A ssembler

    An assembler is a system software whichtranslates an assembly language into itsequivalent machine language.A computer can directly execute onlymachine language program, which usenumbers for representing instructions andstorage locations.

    So assembly language program must beconverted into its equivalent machinelanguage program.This translation is done with the help of

    Translator program known as ASSEMBLER.

  • 8/8/2019 IT for Managers 6

    13/32

    A dvantages of A ssembly L anguage

    Easier to understand and use.Easier to modify.

    Easy to locate and correct errors.

  • 8/8/2019 IT for Managers 6

    14/32

  • 8/8/2019 IT for Managers 6

    15/32

    Ex ample of A ssembly language

    Microprocessor language.

  • 8/8/2019 IT for Managers 6

    16/32

    H igh L evel L anguage

    High level language were designed toovercome the limitations of low level

    languages (Machine language & Assembly language).High level enabled the use of computers to solve problems even bynon experts.

  • 8/8/2019 IT for Managers 6

    17/32

    C haracteristic of H igh L evellanguage

    I t is machine independent.I t do not require the programmers toknow anything about the internalstructure of computer on which programwill be executed.I t do not deal with the machine Levelcoding.They deal with the high level codingenabling the programmer to writeinstruction using ENGL I SH words andfamiliar symbol & expression.

  • 8/8/2019 IT for Managers 6

    18/32

    C ompiler

    High level language must beconverted into its equivalent machine

    language program, before it isexecuted.This translation is Done by translatorprogram known as COMP I LER.Compiler is program which translatesHigh level language into itsequivalent machine languageprogram.

  • 8/8/2019 IT for Managers 6

    19/32

    C ompiler

    A compiler can translate only thosesource programs which have been

    written in the language for which thecompiler is meant. E.g.- FORTRANcompiler is only capable of translatingsource program written in FORTRAN.

    So each computer requires separatecompiler for each high level languageit supports.

  • 8/8/2019 IT for Managers 6

    20/32

    Interpreter

    I t is also used to translate HighLevel language to Machine Level

    Language.But it takes one statement at atime, translates its and immediatelyexecutes the resulting machinelanguage instruction.I t translate 1 instruction at a time.

  • 8/8/2019 IT for Managers 6

    21/32

    Interpreter

  • 8/8/2019 IT for Managers 6

    22/32

    A dvantage of H IGH level L anguage

    Machine I ndependentEasier to learn & Use.

    Very less errors.Low program preparation cost.Saves time.

    Better documentation.Easy to maintain.

  • 8/8/2019 IT for Managers 6

    23/32

    D isadvantages of H igh levelL anguage

    Low efficiency- as it first convertinto machine language then

    executed.

  • 8/8/2019 IT for Managers 6

    24/32

    Ex ample of H igh level L anguage

    FortranCobol

    PascalC

  • 8/8/2019 IT for Managers 6

    25/32

    F ourth generation languageI t is also known as non-procedurallanguage.These languages consists of a variety of programming languages that enable usersto specify the result they want, while thecomputer determines the sequence of instruction that will accomplish those

    result.Fourth generation language simplify andaccelerates software development as wellas reduce programming errors.

  • 8/8/2019 IT for Managers 6

    26/32

    Ex ample of fourth generationlanguage

    SQL Standard Query LanguagePRO LOG: an artificial intelligence

    language that applies rules to data toarrive at solutions.J ava

  • 8/8/2019 IT for Managers 6

    27/32

    Object oriented L anguage

    An object in object oriented programminglanguage consist of data and the actionsthat can be performed on the data.

    OOP language are distinguished fromother language as they combine data andprocedures into objects, whereas theother programming language separates

    data from the procedures or actions thatare to be performed on them.Examples: JAVA, C++.

  • 8/8/2019 IT for Managers 6

    28/32

    C haracteristic of good programminglanguage

    S implicity - Must be simple & easy tolearn.

    N aturalness -should be natural forthe application area for which it isdesigned.Ab straction -Means ability to define& then use complicated structure oroperations in ways that allow manyof the details to be ignored.

  • 8/8/2019 IT for Managers 6

    29/32

    C haracteristic of good programminglanguage

    E fficiency -Good programminglanguage are efficiently translated into

    machine codes, are efficientlyexecuted and consumes less space inmemory.C ompactness - Programmer shouldbe able to express intendedoperations concisely.Ex tensi b ility - should allow extensionin future.

  • 8/8/2019 IT for Managers 6

    30/32

    Any Q uestions?

  • 8/8/2019 IT for Managers 6

    31/32

    QuestionsQuestionsWhat is assembly language? What are itsadvantages over Machine Language?What are the characteristic features of high level language. What are itsadvantages over Low Level Languages?Write short notes on:

    AssemblerCompilerI nterpreter

  • 8/8/2019 IT for Managers 6

    32/32