Fundamental of Computer Systems
Fundamental of Computer Systems
FUNDAMENTALS OF
COMPUTER SYSTEMS
DR. F. O. BOATENG
Contents 1-2
1.1 Introduction
1.2 Hardware and Software
1.3 How Computers Store
Data
1.4 How Program Works
1.5 Types of Software
1.1 Introduction 1-3
Programmers or Software
Developers are the individuals that
create computer software.
They have the training and skill to
design, create, and test computer
programs.
Concept:
Hardware
The
physical devices that a computer is
made of are referred to as the
computer’s hardware.
Acomputer is a system of devices that
work together.
1.2 Hardware and
Software 1-9
Hardware
A Computer System consists of:
Central Processing Unit (CPU)
Main memory
Secondary storage
Input devices
Output devices
Figure 1-2 Typical components
of a computer system
1.2 Hardware and
Software
1-10
Hardware
Central Processing Unit (CPU)
The CPU is the part of a computer that
runs the programs.
Without a CPU a computer cannot run
software.
Running or executing a program is the
term used when the computer performs
the tasks that the program tells it to do.
1.2 Hardware and
Software
1-11
ENIAC
World’s
first programmable
computer
Built in 1945
Designed to calculate artillery
ballistic tables for the U.S.
Army
Figure 1-4
CPU was 8 feet tall, 100 feet A lab technician
holds a modern
long, and weighed 30 tons microprocessor
(photo courtesy of Intel
Microprocessor Corporation)
Much smaller
1.2 Hardware and
Software
1-12
Main Memory
Considered the computer’s work area
Computer stores the program that is
running as well as the data
Commonly known as the random-access
memory (RAM)
Data is quickly accessed
RAM is a volatile type of memory
Used for temporary storage
RAM is erased when computer is turned off
1.2 Hardware and
Software
Secondary Storage Devices
1-13
Input Devices
Any data the computer collects from people and
from other devices is called input.
The hardware component that collects the data is
called an input device.
Common input devices are:
Keyboard
Mouse
Scanner
Microphone
Digital camera
Can you think of any other input devices?
1.2 Hardware and
Software
1-18
Output Devices
Any data the computer produces for people
or for other devices is called output.
The hardware component that formats and
presents the data is called an output device.
Common output devices are:
monitor
Printer
Software
• Everything a computer does is controlled
by software.
• Two categories of software:
System software
Application software
1.2 Hardware and
Software
System Software
1-20
Application Software
• Programs that people normally spend most of
their time running on their computers
performing everyday tasks are referred to as
application software.
• For example:
Word processing
Spreadsheet
Database
Presentation
Think of any other application
1.3 How Computers Store
Data
1-22
Concept:
Storing Numbers
• The positive charge or the on
position is represented by the
digit 1
• The negative charge or the off
position is represented by the
digit 0
• This corresponds to the binary
numbering system where all Figure 1-8 The values
numeric values are written as of binary digits as
a sequence of 0s and 1s powers of 2
Storing Numbers
For example:
Figure 1-10 Determining Figure 1-11 The bit
the value of 10011101 pattern for 157
1.3 How Computers Store
Data
1-26
Storing Numbers
• The largest value that can be stored in a byte
with eight bits is 255
• Two bytes are used for larger numbers;
maximum value is 65535
Figure 1-12 Two bytes used for a large number
1.3 How Computers Store
Data
1-27
Storing Characters
Characters are stored in the computer’s
memory as binary number
ASCII (American Standard Code for
Information Interchange) is a coding
scheme
Storing Characters
ASCII is a set of 128 numeric codes
ASCII is limited
Unicode is an extensive encoding
scheme
• It is compatible with ASCII
• It represents characters for many
languages in the world
1.3 How Computers Store
Data
1-29
Concept:
Figure 1-16
The fetch-decode-
execute cycle
1.4 How a Program Works 1-36
High-Level Languages
Assembly language is referred to as a low-
level language.
E.g. Assembly and Machine languages
High-level languages allow you to create
powerful and complex programs without
knowing how the CPU works, using words that
are easy to understand.
For example: Java, C++, Python, Visual Basic,
C#, Ada, Fortran
Do you know of any other high-level
computer programming languages?
1.4 How a Program Works 1-38
Syntax Errors:
• Errors in grammar of the language
Runtime error:
• When there are no syntax errors, but the
program can’t complete execution
• Divide by zero
• Invalid input data
Logical errors:
• The program completes execution, but
delivers incorrect results
• Incorrect usage of parentheses
1-43
THANK
YOU