cpsc 2031 what is a computer? a machine that processes information

15
CPSC 203 1 What is a computer? A machine that processes information

Post on 19-Dec-2015

221 views

Category:

Documents


2 download

TRANSCRIPT

CPSC 203 1

What is a computer?

A machine that processes information

CPSC 203 2

Processes Information

Input Computer Output

… but,

brains process information

CPSC 203 3

Why use computers?

Fast Accurate Don’t get bored Expand our capabilities

CPSC 203 4

At fundamental level

Computers work by transmitting an electric current through switches

CPSC 203 5

Components

Calculator Computer

CPSC 203 6

Input devices

CPSC 203 7

Output Devices

CPSC 203 8

Temporary Memory

Calculator Small Intermediate

values Explicit memory

Computer Bigger Main memory

Power off Information lost

CPSC 203 9

Storage

Calculator none

ComputerBig external storage Floppy disks Hard disks Optical disks Magnetic tape Flash memory

CPSC 203 10

Processor

Calculator Single purpose Few functions Hardwired

Computer General purpose Programmable

CPSC 203 11

Processor

Performs (executes, carries out) a sequence of instructions

CPSC 203 12

What instructions

Arithmetic: + - * / Compare 2 data values and use the

result to alter the order of execution Move data (e.g. from memory to

processor)

CPSC 203 13

Program: A sequence of instructions

Stored program computer: processor gets the data AND the instructions from main memory

CPSC 203 14

Summary

Computer Programmable More I/O options Bigger memory Storage Faster Stores both programs and data in

memory

CPSC 203 15

See overhead