lec 1-intro to computer

Upload: joshua-brown

Post on 01-Jun-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/9/2019 Lec 1-Intro to Computer

    1/18

    What is a computer, its category and component

    To become familiar with computer software, computer

    hardware and computer environments

    To know about the history of programming languages

    To understand writing, editing, compiling, and linking

    programs

    Objectives

    Chapter 1 : Introduction To Computers

    And Programming Language

  • 8/9/2019 Lec 1-Intro to Computer

    2/18

  • 8/9/2019 Lec 1-Intro to Computer

    3/18

  • 8/9/2019 Lec 1-Intro to Computer

    4/18

    4asic !ardware omponents

  • 8/9/2019 Lec 1-Intro to Computer

    5/18

    Computer !o"tare

    "oftware is divided into ' categories

    "oftware

    "ystem "oftware Application "oftware

  • 8/9/2019 Lec 1-Intro to Computer

    6/18

    !#stem !o"tare

    5ormally supplied by the manufacturer of thecomputer

    onsists of utility programs and operating aids that

    facilitate the use and performance of the computer

    %ncludes the computers operating system

    -elated software that manages the systems resources

    and control the operations of the hardware.

  • 8/9/2019 Lec 1-Intro to Computer

    7/18

    App$ication !o"tare

    1esigned to perform a specific task such as course

    registration or banking and a general&purpose such as

    processor (eg. s Word+

    ay be ac6uired by purchasing off&the&shelf or bydesigning for own purpose (custome made+

    0ff&the&shelf # prewritten and ready to use

    ustom made # written by in&house, consulting firm orsoftware house

  • 8/9/2019 Lec 1-Intro to Computer

    8/18

    Where are the application and system

    software7

  • 8/9/2019 Lec 1-Intro to Computer

    9/18

    Computing %nvironment

    )ersonal omputing

    Time&"haring

    lient 8 "erver omputing

    %nternet omputing

  • 8/9/2019 Lec 1-Intro to Computer

    10/18

    )ersonal computing environment

  • 8/9/2019 Lec 1-Intro to Computer

    11/18

    Time&sharing environment

  • 8/9/2019 Lec 1-Intro to Computer

    12/18

  • 8/9/2019 Lec 1-Intro to Computer

    13/18

    Histor# O" Computer Languages

    omputer language evolution

    The on$# $anguage understood b# a computer is

    machine $anguage

  • 8/9/2019 Lec 1-Intro to Computer

    14/18

    $.achine 9anguage

    omputer only understand this language.

    "eries of $s and :s

    1ifficult to write.

    9ow level language

    '. "ymbolic 9anguage

    *ni6ue to particular computer.

    *se mnemonics symbols. ;.g. ultiply

    ;asier to understand.

    Histor# O" Computer Languages &cont'(

  • 8/9/2019 Lec 1-Intro to Computer

    15/18

    . !igh&9evel 9anguage

    )ortable to many different computers.

    %nstruction are coded

    ;g. 0409 (4usiness+, ?0-T-A5 ("cientific+,

    4A"%, )ascal, , @@, ava etc.

    /. 5atural 9anguage

    9ike our natural language (such as ;nglish, ?rench, or

    hinese+

    %ts use is still 6uite limited.

    Histor# O" Computer Languages &cont'(

  • 8/9/2019 Lec 1-Intro to Computer

    16/18

    Program )eve$opment

    A computer understands a program only if the programis coded in its machine language.

    )rogrammer have to write the program and turn it into

    an e3ecutable (machine language+ file.

    )rogrammer have to understand the problem &B breakinto actions&B e3ecute by the computer.

    steps in the process #

    &Writing and editing program

    &ompiling the program

    &9inking the program

  • 8/9/2019 Lec 1-Intro to Computer

    17/18

    Program )eve$opment

    "teps in the solution must be written in a programming

    language (the source code+&B use te*t editor'

    "ource code(source file+ must be converted into machine codes

    that the computers microprocessor can understand&compi$ed(+,

    done bycompi$er'

    C-- Compi$er . preprocessor &scan "or preprocessor

    directive(

    + trans$ation &converting the program to

    machine language+

    Lin/erassembles other functions into e*ecutab$e program.

    Loaderlocates the e3ecutable programs and reads it into

    memory and control is given to the programs to begin

  • 8/9/2019 Lec 1-Intro to Computer

    18/18