Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI 

Similar presentations


Presentation on theme: "Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI "— Presentation transcript:

1 Introduction to Programming

2 Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI  Digital  Binary  Memory address  Volatile  RAM  ROM Hint: You will see these again in a quiz soon.

3  Hardware Monitor CPU Hard drive Mouse Keyboard DVD-ROM Power Supply  Software Operating system ○ Windows XP ○ Mac OS ○ Linux Applications ○ Word ○ Outlook express ○ Photoshop ○ Firefox

4 Central Processing Unit  Uses the main memory  Performs all the basic processing in a computer  Reads and executes instructions  Made up of the control unit, registers, and arithmetic/logic unit Central Processing Unit Main Memory

5 Input/Output Devices  Input Devices Mouse Keyboard Scanner Microphone Hard drive (any file)  Output Devices Monitor Speakers Printer Hard drive (any file)

6 Secondary Memory Central Processing Unit Main Memory Floppy Disk Hard Disk Secondary memory devices provide long-term storage Information is moved between main memory and secondary memory as needed Hard disks Floppy disks ZIP disks Writable CDs Writable DVDs Tapes

7 © 2004 Pearson Addison-Wesley. All rights reserved1-7 Software Categories  Operating System controls all machine activities provides the user interface to the computer manages resources such as the CPU and memory Windows XP, Unix, Linux, Mac OS  Application program generic term for any other kind of software word processors, missile control systems, games  Most operating systems and application programs have a Graphical User Interface (GUI)

8 Digital vs. Analog  Digital Uses 0 or 1 Binary Number System  Analog Anything that can change gradually Example: Temperature

9

10

11 Representing Text Digitally H i, H e a t h e r. 72 105 44 32 72 101 97 116 104 101 114 46

12 Bytes and Bits  A bit is one unit of info – a 1 or a 0  A byte is 8 units of info – 1100 0110  A megabyte (MB) is 1 million bytes or basically 8 million bits

13 © 2004 Pearson Addison-Wesley. All rights reserved1-13 Memory Main memory is divided into many memory locations (or cells) 9278 9279 9280 9281 9282 9283 9284 9285 9286 Each memory cell has a numeric address, which uniquely identifies it

14 © 2004 Pearson Addison-Wesley. All rights reserved1-14 Storing Information 9278 9279 9280 9281 9282 9283 9284 9285 9286 Large values are stored in consecutive memory locations10011010 Each memory cell stores a set number of bits (usually 8 bits, or one byte)

15 © 2004 Pearson Addison-Wesley. All rights reserved1-15 Storage Capacity  Every memory device has a storage capacity, indicating the number of bytes it can hold  Capacities are expressed in various units: KB2 10 = 1024 MB2 20 (over 1 million) GB2 30 (over 1 billion) TB2 40 (over 1 trillion) UnitSymbolNumber of Bytes kilobyte megabyte gigabyte terabyte

16 © 2004 Pearson Addison-Wesley. All rights reserved1-16 Memory  Main memory is volatile - stored information is lost if the electric power is removed  Secondary memory devices are nonvolatile  Main memory and disks are direct access devices – all information is directly accessible  The terms direct access and random access often are used interchangeably  A magnetic tape is a sequential access device since its data is arranged in a linear order - you must get past the intervening data in order to access other information

17 © 2004 Pearson Addison-Wesley. All rights reserved1-17 RAM vs. ROM  RAM - Random Access Memory (direct access)  ROM - Read-Only Memory  The terms RAM and main memory are basically interchangeable  ROM could be a set of memory chips, or a separate device, such as a CD ROM  Both RAM and ROM are random (direct) access devices!  RAM probably should be called Read-Write Memory (but it usually isn’t)

18 © 2004 Pearson Addison-Wesley. All rights reserved1-18 The Central Processing Unit  A CPU is on a chip called a microprocessor  It continuously follows the fetch-decode-execute cycle: fetch Retrieve an instruction from main memory decode Determine what the instruction is execute Carry out the instruction

19 © 2004 Pearson Addison-Wesley. All rights reserved1-19 The Central Processing Unit  The CPU contains: Arithmetic / Logic Unit Registers Control Unit Small, expensive storage areas Performs calculations and makes decisions Coordinates processing steps


Download ppt "Introduction to Programming. Key terms  CPU  I/O Devices  Main memory  Secondary memory  Operating system  User interface  Application  GUI "

Similar presentations


Ads by Google