Beruflich Dokumente
Kultur Dokumente
Overview of
Computers and
Programming
Outline
1.1 ELECTRONIC COMPUTERS THEN AND NOW
1.2 COMPUTERS HARDWARE
1.3 COMPUTERS SOFTWARE
1.4 THE SOFTWARE DEVELOPING METHOD
1.5 APPLYING THE SOFTWARE DEVELOPMENT
METHOD
CASE STUDY:
CONVERTING MILES TO KILOMETERS
12
13
14
Supercomputer
Used in computationally intensive applications
15
Figure 1.2
(a) Notebook Computer
(ThinkPad, Courtesy of
IBM).
(b) Palmtop Computer
(Sony Cli PDA ,
Courtesy of Sony).
(c) Desktop Computer
(IBM NetVista Desktop,
Courtesy of IBM).
16
17
18
19
Memory
Memory cell
an individual storage location
Address
relative position in memory
Contents
the data stored in a memory cell
Figure 1.4
1000 Memory Cells
in Main Memory
111
112
113
Data retrieval
Copying the contents of a particular memory cell to
another storage area
114
Main memory
RAM (random access memory)
stores programs and data temporarily
volatile memory
115
CD drives
Uses a laser to access or store data in CD
DVD
Silver plastic platter with up to 17GB of data storage
116
117
CPU
CPU two roles
Coordinating all computer operations
Performing arithmetic and logical operations on data
Fetching an instruction
Retrieving an instruction in sequence from main
memory
118
Input/Output Devices
Cursor
A moving place maker that appears on the monitor
Function keys
Special keyboard keys used to select a particular
operation
Icon
A picture representing a computer operating
119
120
Computer Networks(1/2)
LAN (Figure 1.8~1.9)
File server
The computer in a network that controls access to a
secondary storage device such as a hard disk
121
Computer Networks(2/2)
GUI
Pictures and menus displayed to allow user to select
command and data
MODEM
A device that converts binary data into audio signals that can
be transmitted between computers over telephone lines.
122
123
124
126
127
Application Software
Application programs are developed to assist a
computer user in accomplishing specific tasks.
Ex: Microsoft Word, Excel,etc
128
Computer Languages
Machine language
Binary number codes understood by a specific CPU
Assembly language
Mnemonic codes that corresponding to machine
language instructions
name.obj:fileofmachinelanguageinstructions
130
Computer Program(1/3)
Source file
File containing a program written in high-level
language
The input for a compiler
Compiler
Translates a high-level language program into
machine language
131
Computer Progarm(2/3)
Object file
File of machine language instructions that is the
output of a compiler
Linker
Combines object files and resolves cross-references
to create an executable machine language program
132
Computer Progarm(3/3)
Loader
Copies executable files into memory
Initiates execution of instructions
133
134
135
Example:
Compute and display the total cost of apples given the number of
pounds of apples purchased and the cost per pound of apples
probleminput
Totalcost=UnitcostNumberofunits
Totalcostofapples=CostperpoundNumberofapples
136
137
CASE STUDY
CONVERTING MILES TO KILOMETERS
139
Step 1
Step 2
Step 3
142
Question?
A good question deserve a good grade
143