COMP110-Ch1-Aug 25

COMP110-Ch1-Aug 25 - Overview of Computers and Programming...

Info iconThis preview shows pages 1–12. Sign up to view the full content.

View Full Document Right Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL Overview of Computers and  Programming Languages Qi Zhang Aug 25 COMP 110: Introduction to Programming
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 2 Course Introduction Installation of IDE jGRASP Running the first java program Last Week
Background image of page 2
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 3   Before you start programming, you need  to understand how computers work Hardware and software Programming languages and compilers Designing programs Today s Lecture
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 4 Hardware vs. Software A computer is made up of hardware and software Hardware Software  CPU - e.g. Intel Core 2 Duo  Input/Output devices -  keyboard -  monitor -  mouse  main memory -  e.g. 2GB RAM  secondary memory -  e.g. 120 GB hard drive  operating systems -  Windows XP -  Mac OS X -  Unix / Linux  applications -  games -  Microsoft Word -  Internet Explorer
Background image of page 4
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 5 Hardware Organization motherboard CPU memory hard drive
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 6 Central Processing Unit CPU "the brain" of a computer Arithmetic Logic Unit (ALU) . carries out all arithmetic and logical ops Microcontroller Fetch and decode instructions Control the flow of info between CPU and main memory CPU Program Instruction 1  Instruction 2 Instruction 3
Background image of page 6
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 7 Memory Provides permanent and temporary storage of  information Two basic types: Auxiliary memory Main memory
Background image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 8 Main Memory Directly connected to the CPU Aka Random Access Memory (RAM) Main memory holds The current program Data the program is using  The results of intermediate calculations All programs must be brought into main  memory before execution When power is turned off, everything in  main memory is lost
Background image of page 8
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 9 Bit and Byte Ordered sequence of storage cells Each cell is a physical device which has two stable  states (0/1) Bit: a 0/1 digit Byte: 8 bits of memory A quantity of memory 4GB main memory Memory Location: Adjacent bytes
Background image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 10 Address     A computer s main memory is divided into numbered bytes Address of a Byte:  The number of the byte Address of a Memory Location:  The address of the first byte
Background image of page 10
The  UNIVERSITY  of  NORTH CAROLINA  at  CHAPEL HILL 11 CPU and Main Memory CPU:  Executes program  instructions Main memory: Primary storage area for programs and data that are in active use All programs must  be brought into  main memory  before execution
Background image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 12
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/31/2009 for the course COMP 110 taught by Professor Qi during the Spring '09 term at Linn Tech.

Page1 / 50

COMP110-Ch1-Aug 25 - Overview of Computers and Programming...

This preview shows document pages 1 - 12. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online