a.abhari cps1251 topic 1: introduction to computers computer hardware computer components connecting...

Download A.Abhari CPS1251 Topic 1: Introduction to Computers Computer Hardware Computer components Connecting Computers Computer Software Operating System (OS)

Post on 19-Jan-2016

213 views

Category:

Documents

0 download

Embed Size (px)

TRANSCRIPT

  • Topic 1: Introduction to ComputersComputer HardwareComputer componentsConnecting ComputersComputer Software Operating System (OS)Running a High-level LanguageProblem Solving with Computers Software Development Method

    A.Abhari CPS125

  • Computer componentsCentral Processing UnitMemoryInput/output devicesSecondary storage

    A.Abhari CPS125

  • Computer Components

    A.Abhari CPS125

  • CPU

    A.Abhari CPS125

  • CPUArithmetic/logic unit (ALU) Performs arithmetic operations (+,-,...) and logical operations (, ...)Control unit (CU) Decodes machine instructions and tells other components the required operationsRegisters store current instruction and values

    A.Abhari CPS125

  • MemoryA collection of cellsEach cell has an address and a valueRandom Access Memory (RAM) Cells can be accessed randomlyRam is volatileAll data stored in binary formatBit, byte and word are the unit of data

    A.Abhari CPS125

  • CPU-Memory InteractionAssume a is stored in 14and b is stored in 15 a= a + b ResultProgram Fetch-execute cycle

    A.Abhari CPS125

  • Input/output Devices Text-based and GUI-based interactionScanners, Touch screensMonitor, printer, speakers Secondary Storage Floppy disk , CD (680 MB), DVD (4.717 GB), Tape, Hard diskFile, Directory, Subdirectory, Folder

    A.Abhari CPS125

  • Hard Disk Drive Basics

    A.Abhari CPS125

  • Connecting ComputersLocal Area Network (LAN)

    Wide Area Network (WAN)

    Internet

    World Wide Web (WWW)

    A.Abhari CPS125

  • Computer SoftwareOperating System (OS)Part of OS is stored on Read Only Memory (ROM) OS is responsible for directing all computer operations and resourcesCommand line interface (Unix)Graphical user interface (Windows)

    A.Abhari CPS125

  • Computer SoftwareApplication Software ( Word, Excel, etc.)

    Computer Languages

    Low level languages (machine language) High level language (C, Java, Fortran, )

    A.Abhari CPS125

  • Running a High-level LanguageGenerating a source file (editor) => tst.cTranslating to machine code (compiler) =>tst.objLinking the object file with other object files (linker) =>tst.exeCopying the executable file into memory (loader)Integrated Development environment (IDE) combines all of these steps

    A.Abhari CPS125

  • Problem Solving with Computers (Software Development Method)1- Specify the problem requirement2- Analyze the problem (input, output, additional requirements). Modeling the problem (abstraction)3- Design the algorithm to solve the problem (top-down design or divide and conquer)4- Implement the algorithm=> changing the algorithm to a programming language

    A.Abhari CPS125

  • Problem Solving with Computers (Software Development Method)5- Test and verify the complete program, running the program several times with different data sets6- Maintain and update the program, removing undetected errors

    ** Failure is part of the process **

    A.Abhari CPS125

Recommended

View more >