Chapter 1: Computer Systems
Chapter 1: Computer Systems
• problem solving
• program design and implementation
• object-oriented concepts
– objects
– classes
– interfaces
– inheritance
– polymorphism
• graphics and Graphical User Interfaces
• the Java programming language
2
Computer Systems
We first need to explore the fundamentals of computer
processing
3
Hardware and Software
Hardware
• the physical, tangible parts of a computer
• keyboard, monitor, wires, chips, data
Software
• programs and data
• a program is a series of instructions
4
CPU and Main Memory
5
Secondary Memory Devices
Hard disks
Floppy disks Hard Disk
ZIP disks Main
Writable CDs Memory
Tapes
Floppy Disk
6
Input / Output Devices
Monitor screen
Keyboard Hard Disk
Mouse Main
Bar code scanner Memory
Light pen
Touch screen Floppy Disk
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 98, Windows NT, Unix, Linux, Mac OS
Application program
• generic term for any other kind of software
• word processors, missile control systems, games
8
Analog vs. Digital
There are two basic ways to store and manage data:
Analog
• continuous, in direct proportion to the data represented
• music on a record album - a needle rides on ridges in the grooves
that are directly proportional to the voltage sent to the speaker
Digital
• the information is broken down into pieces, and each piece is
represented separately
• music on a compact disc - the disc stores numbers representing
specific voltage levels sampled at various points
9
Digital Information
Computers store all information digitally:
• numbers
• text
• graphics and images
• audio
• video
• program instructions
10
Representing Text Digitally
For example, every character is stored as a number,
including spaces, digits, and punctuation
Hi, Heather.
11
Binary Numbers
Once information is digitized, it is represented and stored
in memory using the binary number system
12
Bit Combinations
13
Bit Combinations
Each combination can represent a particular item
There are 2N combinations of N bits
Therefore, N bits are needed to represent 2N unique items
1
1 bit ? 21 = 2 items
How many 2 bits ? 2
22 = 4 items
items can be
represented by
3 bits ? 23 = 8 items
4 bits ? 24 = 16 items
5 bits ? 25 = 32 items
14
A Computer Specification
Consider the following specification for a personal
computer:
15
Memory
9278
Main memory is divided
9279 into many memory
9280 locations (or cells)
9281
9282
9283 Each memory cell has a
9284 numeric address, which
9285 uniquely identifies it
9286
16
Storing Information
17
Storage Capacity
Every memory device has a storage capacity, indicating the
number of bytes it can hold
Capacities are expressed in various units:
18
Memory
Main memory is volatile - stored information is lost if the
electric power is removed
Secondary memory devices are nonvolatile
19
RAM vs. ROM
RAM - Random Access Memory (direct access)
ROM - Read-Only Memory
20
The Central Processing Unit
A CPU is also called a microprocessor
It continuously follows the fetch-decode-execute cycle:
fetch
execute decode
21
The Central Processing Unit (CPU)
The CPU contains:
Performs calculations
Arithmetic / Logic Unit and decisions
Coordinates
Control Unit processing steps
Small storage
Registers areas
22
The Central Processing Unit
The speed of a CPU is controlled by the system clock
23
Monitor
The size of a monitor (17") is measured diagonally, like a
television screen
24
Modem
Data transfer devices allow information to be sent and
received between computers
25
Networks
A network is two or more computers that are connected so
that data and resources can be shared
26
Network Connections
Each computer in a network could be directly connected to
each other computer in the network
These are called point-to-point connections
27
Network Connections
Most modern networks share a single communication line
Adding a new computer to the network is relatively easy
28
Local-Area Networks
A Local-Area Network
(LAN) covers a small
distance and a small
number of computers
LAN
29
Wide-Area Networks
LAN
30
The Internet
The Internet is a WAN which spans the entire planet
32
IP and Internet Addresses
Each computer on the Internet has a unique IP address,
such as:
204.192.116.2
renoir.villanova.edu
kant.breakaway.com
33
Domain Names
The last section (the suffix) of each domain name usually
indicates the type of organization:
edu - educational institution
com - commercial business
org - non-profit organization
net - network-based organization
34
Domain Names
A domain name can have several parts
35
The World-Wide Web
The World-Wide Web allows many different types of
information to be accessed using a common interface
The term Web comes from the fact that information is not
organized in a linear fashion
36
The World-Wide Web
Web documents are often defined using the HyperText
Markup Language (HTML)
http://www.lycos.com
http://www.villanova.edu/webinfo/domains.html
ftp://java.sun.com/applets/animation.zip
37