Professional Documents
Culture Documents
Presentation slides are copyright 2006 by John Lewis, William Loftus, and Cara Cocking. All rights
reserved.
Instructors using the textbook may use and modify these slides for pedagogical purposes.
*AP is a registered trademark of The College Entrance Examination Board which was not involved in
the production of, and does not endorse, this product.
Software
• programs and data
• a program is a series of instructions
Hard disks
Floppy disks Hard Disk
ZIP disks Main
Writable Memory
CDs
Tapes Floppy Disk
Monitor screen
Keyboard Hard Disk
Mouse Main
Joystick Memory
Bar code scanner
Touch screen Floppy Disk
Application program
• generic term for any other kind of software
• word processors, missile control systems, games
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 voltages 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 specific
times
Hi, Heather.
9278
Main memory is
9279 divided into many
9280 memory locations (or
9281 cells)
9282
9283 Each memory cell has
9284 a numeric address,
9285 which uniquely
9286 identifies it
fetch
execute decode
Performs
Arithmetic / Logic Unit calculations and
makes decisions
Coordinates
Control Unit processing
steps
Small
Registers storage
areas
A Local-Area Network
(LAN) covers a small
distance and a small
number of computers
LAN
LAN
http://www.villanova.edu/webinfo/domains.html
ftp://java.sun.com/applets/animation.zip
It is an object-oriented language
© 2006 Pearson Education
41
Java Program Structure
In the Java programming language:
• A program is made up of one or more classes
• A class contains one or more methods
• A method contains program statements
class body
Java source
code Java
bytecode
Java
compiler
Java Bytecode
interpreter compiler
Machine
code
Edit and
save program
errors
errors
Compile program
40
(112, 40)