SECTION 1 - Fundamental of Hardware and Software: Describe A General-Purpose Computer System
SECTION 1 - Fundamental of Hardware and Software: Describe A General-Purpose Computer System
Function Activity
Input Accepts or takes in data
Processing Manipulates data according to instructions
Output Provides user with information
Storage Stores data
Input - The barcode reader scans the items to collect the name and price of the item.
Processing - The computer system adds up the prices of all the items bought.
Output - The Price of all the items are displayed to the user on the monitor along with the total price of
all the item and after you have paid your sales receipt is also printed out
HARDWARE
SECONDARY
There are five general categories of hardware: STORAGE
1. Central processing unit (CPU) is the brain of a computer and is found inside of the system unit. The CPU
has two main parts called Arithmetic and Logic Unit(ALU) and Control Unit(CU). The ALU performs the
calculations and logic operations while the CU controls the flow and execution of data through the
computer.
1
2. Input devices allow data and instructions to be entered into the computer system. A mouse, keyboard,
scanner and webcam are all input devices.
3. Output devices get processed information out of a computer to be available to users. A printer,
monitor(display screen) and speakers are all output devices.
4. Main memory also called RAM, primary storage or immediate access storage holds program and data
currently being executed temporarily.
5. Secondary storage is permanent and stores data for future use. Hard disks, flash drives, CD-ROM and
tape drives are secondary storage media.
Peripheral devices are pieces of hardware that can be added to a computer system. Input, output and storage
devices may be peripheral devices such as the mouse, printer and an external hard disk drive.
Primary storage devices are used by the computer for its own use.
There are two types of primary storage devices: Volatile storage and Non-volatile storage.
Volatile storage devices loses all the data when the computer is turned off while non-volatile storage devices
keeps the data even if the computer is turned off.
Random Access Memory(RAM) also called main memory, temporarily holds program and data that is
currently being executed.
Read-Only Memory(ROM) is a permanent storage device that contains data that cannot be changed.
Data in ROM is called firmware, which is a set of instructions that tells the computer what to do when it
starts up. One of the set of instructions done by the ROM is called Booting, which is loading the
operating system (Windows 7 or Linux) into main memory.
Programmable ROM (PROM) is a type of ROM that can be programmed only once after it is
manufactured. Once it is programmed it cannot be changed.
Erasable Programmable ROM (EPROM) is a type or ROM that can be programmed just like PROM, but it
can be erased then re-programmed more than once using an ultraviolet light.
2
1-4 Unit of Storage
Some computers can store small amount of data while others can store large amounts of data. But how do we
measure data. If you have a glass of water and you want to measure how much is in it the unit of measurement
you might use is ounces, but if you are measuring the amount of gas to put into your car you might change the
unit from ounce and use gallon instead. The same with computers. The smallest unit of measurement in
computers are Bits and the largest one we are going to use is Terabyte.
Bits (Binary digits) a computer stores data in bits. Bits are just a combination of 1s and 0s. For example,
10110011 are 8 bits of data. This means that a computer is a bi-stable device, which means it can be in 1 of 2
states; either a 0 or a 1.
Byte is a group of 8 bits or you can say 8 bits equals 1 Byte. 10010101 is a Byte. Every character you type on the
keyboard(letter, number, symbol) uses up 1 Byte of storage. For example pressing letter A on the keyboard
might be equal to 01000001(1 byte).
Word is the largest amount of binary units that can be processed in one operation. Computers usually have a
word size of 32 or 64 bits. Word size is the number of bits which can be transferred in a word.
Bit
Byte 8 Bits = 1 Byte
KB(KiloByte) 1024 Bytes = 1 KB
MB(MegaByte) 1024 KB = 1 MB
GB(GigaByte) 1024 MB = 1GB
TB(TeraByte) 1024 GB = 1TB
Let us try these examples first to help you understand conversions a bit more.
Dollars to Cents
1 dollar --> cents = 100cents (working: 1x100=100) and
7 dollars --> cents = 700cents (working: 7x100=700)
This tells us that if we are converting from a bigger to a smaller unit we have to MULTIPLY,
because more of the smaller unit is needed to fill the space of the bigger unit.
Cents to Dollars
500cents --> dollars = 5dollars (working 500/100=5)
This tells us that if we are converting from a smaller to a bigger unit we have to DIVIDE.
3
Conversion Diagram
Divide (/)
Multiply (x)
1. 3GB -> MB
Solution: bigger to smaller we multiply
GB ---> MB
3 x 1024 = 3069
Answer = 3096MB
2. 2GB -> KB (NB: Going from GB ->KB we must pass through MB)
Solution: bigger to smaller we multiply
GB ---> MB --> KB
2 x 1024 x 1024 = 2,097,152
Answer = 2,097,152KB
3. 2KB -> bit (NB: When converting to and from bits we use 8 AND NOT 1024)
Solution: bigger to smaller we multiply
4. 40,960 bits -> KB (NB: going from bits -> KB we must pass through Bytes)
Solution: smaller to bigger we divide
4
1-5 Secondary storage devices and media
Storage device is the hardware that is used to store the data unto the storage medium or retrieve the data from
the storage medium. For example, the CD-ROM(device) drive is used to read data from or store to the CD-
ROM(media).
Device Interfaces
A device interface determines how the storage device are physically connected to the computer.
5
Read/write head, sectors, tracks and cylinders are all parts found within a hard drive.
Magnetic tape is a narrow plastic coated strip where data is recorded along the length of the tape. It is normally
used for storing large amount of data at a relatively low cost.
Magnetic tape uses Sequential access, while flash drives, CD-ROMs and hard drives uses Direct access.
With sequential access you must go through the preceding data before
getting to a specific data.
With direct access, the computer goes directly to a specific data on the
storage medium.
Access time is the time taken to locate and retrieve data from storage.
6
1-7 Input Devices
Input devices allow data and instructions to be entered into the computer system.
Keyboard is the most common devices used to enter data into the computer. There are also special
keyboards such as the Braille keyboard for the visually impaired.
A mouse is also a common type of input device which is used to control the movement of the pointer on
the screen. A mouse is a pointing device.
Voice response unit uses a microphone to accept spoken words as data or instructions. The voice
recognition software may require initial training by the user to recognize their voice pattern.
A graphic tablet are used by artists, designers and architects to create accurate drawings. It works along
with a stylus to draw on the graphic tablet which is transferred to the monitor screen.
A sound card is normally an internal device found in the system unit which can be used to capture
sounds from a microphone. It is also used to allow sounds to be outputted to speakers that are
connected to it.
Webcam is a video capturing device normally used in vide chat and video conferencing.
Sensors are used to capture data automatically and to pass the data to a computer where it is analyzed,
stored and manipulated. There are different types of sensors. Some detect heat, light, movement, wind
etc.
A remote control uses infra-red light to operate another device such as, TVs, gates and toys.
7
Biometric systems uses some part of a person's body to uniquely identify them. Body parts commonly
used are the finger prints, face and iris.
Digital cameras are used to take and store pictures digitally. These images can then be easily transferred
to a computer using memory cards. Digital cameras can also be called an output device because the
image can be also shown on the display screen directly from the camera.
Point of sale(POS) systems are commonly used at shopping malls and supermarkets. It normally consists
of a terminal at the checkout area, a barcode reader to scan the items, a receipt printer and a computer
system that contains a database of all the items.
Barcode reader - a barcode is a combination of thick and thin lines that provides data on an item. A
barcode reader uses laser beams to scan the barcode found on items to obtain the name, manufacturer,
price etc.
Optical mark reader/recognition(OMR) identifies the absence or presence of dark marks on a form. It is
normally used to mark multiple choice examinations.
Magnetic ink character reader(MICR)reads text printed with magnetic ink. It is used mainly for
processing bank cheques.
Optical character recognition(OCR) reads handwritten or printed characters and converts them into an
electronic form which can then be edited. Some scanners come with an OCR software while others do
not.
8
1-8 Output Devices
The two main types of output are Soft copy and hard copy.
Resolution - Pictures on a screen are made up of tiny dots called pixels. Resolution is the
amount of pixels outputted on the screen (1440 x 768 pixels [horizontal x vertical]). The
more the pixels the higher of more detailed the images will be.
1. Cathode ray tube(CRT) - Used mainly in the past but are being replaced by LCD.
Found mainly with old desktops.
2. Liquid crystal display(LCD) - takes up less space and consumes less energy that
the CRT. Found mainly on laptops.
3. Light-emitting diode(LED) - Found mainly on palmtop computers.
Printers are output devices that produce hard copy output mainly on paper.
Impact printers
Impact printers strike through a carbon or inked ribbon, like a type writer.
9
Non-impact printers
Inkjet printer - Operates by spraying mall ink droplets unto the paper. The speed is
measured by how many pages can be printed per minute.
Laser printers - are high quality and high speed printers and are much faster than
inkjet printers. A laser beam creates an image of the page on a drum, treated with a
magnetically charged powder called toner. The paper is then pressed against the drum
and fuses to the paper by using heat.
Thermal printers - uses heat on chemically treated paper to form characters. A receipt
printer found in stores is a thermal printer.
Plotters - use coloured pens or toner to draw accurate and precise images on paper.
Used by engineers to produce maps and large building plans.
Sound output - A computer's sound card is used to send the sounds to headphones or speakers which
enable the sounds to be heard.
10
1-9 How Data is Stored and Manipulated
NUMBER SYSTEMS(Bases)
CONVERSIONS
Here are all the conversions that will be covered in this chapter
BIN DEC
2 OCT DEC Use expansion table
HEX DEC
BIN OCT
3 Group the BITS
BIN HEX
OCT BIN
4 Separate each digit
HEX BIN
5 BCD DEC Groups of 4
6 DEC BCD Separate each digit
11
SECTION 1 CONVERSIONS
Examples
1. Convert the following from DEC BIN: (write your answer using 8 bits)
a) 2510 BIN2 b) 4810 BIN2
2 25 R 2 25 R
2 12 1 2 24 0
2 6 0 2 12 0
2 3 0 2 6 0
2 1 1 2 3 0
0 1 2 1 1
Bottom to top gives 11001 0 1
contains 5 bits so add 3 0's at the beginning Bottom to top gives 110000
Answer is 000110012 (using 8 bits) contains 6 bits so add 2 0's at the beginning
Answer is 001100002 (using 8 bits)
8 38 R 8 69 R
8 4 6 8 8 5
0 4 8 1 0
0 1
Answer is 468 Answer is 1058
16 155 R 16 30 R
16 9 11 16 1 14
0 9 0 1
12
SECTION 2 CONVERSIONS
Examples
b) 1100002 DEC10
1 1 0 0 0 0
32 16 8 4 2 1 Multiply by base(2) from right to left
32 + 16 + 0 + 0 + 0 + 0 Answer = 4810
13
SECTION 3 CONVERSIONS
1 0 1 1 0 1 0 0
21=2 20=1 22=4 21=2 20=1 22=4 21=2 20=1
2 + 0 =2 4 + 2 + 0 =6 4 + 0 + 0 =4
Answer is 2648
1 0 0 1 1 1 1 0
23=8 22=4 21=2 20=1 23=8 22=4 21=2 20=1
8 + 0 + 0 + 1 =9 8 + 4 + 2 + 0 = 14(E)
Answer is 9E16
14
SECTION 4 CONVERSIONS
6|0|3 separate each digit, then convert to BIN using 3 BITS each.
2 6 R 2 0 R 2 3 R
2 3 0 0 0 2 1 1
2 1 1 0 = 0, using 3 BITS 0 1
0 1 0 = 000 3 = 11, using 3 BITS
6 = 110 3 = 011
Answer is 1100000112
2|B|7 separate each digit, then convert to BIN using 4 BITS each.
2 2 R 2 B(11) R 2 7 R
2 1 0 2 5 1 2 3 1
0 1 2 2 1 2 1 1
2 = 10, using 4 BITS 2 1 0 0 1
2 = 0010 0 1 7 = 111, using 4 BITS
B = 1011 7 = 0111
Answer is 0010101101112
15
SECTION 5 CONVERSIONS
1 0 0 1 0 0 0 0 0 1 1 0
8 4 2 1 8 4 2 1 8 4 2 1
8 + 0 + 0 + 1 0 + 0 + 0 + 0 0 + 4 + 2 + 0
=9 =0 =6
SECTION 6 CONVERSIONS
2 9 R 2 0 R 2 6 R
2 4 1 0 0 2 3 0
2 2 0 2 1 1
2 1 0 0 = 0, using 4 BITS 0 1
0 1 0 = 0000 6 = 110, using 4 BITS
9 = 1001 6 = 0110
Answer in BCD is 1001 0000 0110
16
UNSIGNED BCD vs SIGNED BCD
1 10111
1001 + 110
+0101 1
0 10
.1
1 10111
1001 + 110
+0101 01 10
10
11
1 10111
1001 + 110
+0101 101 11
1110
11
1001+0101=11102 10111
+ 110
11101
10111+110=111012
17
REPRESENTING POSITIVE AND NEGATIVE INTEGERS
There are two main methods for representing Positive and Negative integers:
Example: Using sign & magnitude, determine if the following bits are positive or negative.
1 0110101 Negative
1 1110110 Negative
0 1100001 Positive
0 0100101 Positive
1 0001101 Negative
2 30 R
2 15 0
2 7 1
2 3 1
2 1 1
0 1
18
TWO'S COMPLEMENT (Represented in standard 8 BITS)
.+47. 00101111
Therefore
+47 = 00101111
-47 = 11010001
19
The Two's complement comes in very handy when attempting to subtract numbers.
For example:
It cannot do 15-10
What a computers does instead is to add a negative number: 15 +(-10)
15-10 and 15+(-10) actually means the same thing.
This means you have to use 2's complement to represent the negative number.
Convert -5 BIN 2
5 BIN is 00000101
5 must be changed to -5 , using 2's complement
.5. 00000101
11011 is positive, just add 3 0s to make it 8 Bits Then add the numbers: 12 + (-5)
11011 = 00011011 3
- 1111 11
1
00011011
+ 11111011
101 is negative, so change the bits then add 1. 100010110 NB: if there is an extra Bit, get rid of it.
00000101
2
11111010 (1's complement)
+ 1
11111011 (2's complement)
20
1-10 Hardware specifications of a computer system
1. CPU (Type and speed) – The processor performs almost all of the computation and controls the
functioning of the other devices. The most common brands are Intel and AMD. The processor power is
measured by its clock speed in megahertz (MHz) or gigahertz (GHz), where 1 GHz = 1000 MHz. Faster
clock speed will produce faster computer processing power, and will be more expensive.
1. CPU type
2. CPU speed
1. Size: Common RAM sizes are 512 MB, 1 GB, 2 GB and 4 GB. The bigger the better.
2. Type: The three main types of memory are DDR, DDR2 (The most common) and DDR3.
3. Speed: Some specifications may include the RAM speed. Common speeds are 667, 800, 1066
and 1333 MHz.
4. Number of RAM modules: The specification may tell you how many DIMMS (RAM modules)
there are. In the example above the 4 GB are split into two memory modules.
21
3. Hard Drive – The three factors you most consider when purchasing a hard drive are:
The size (measured in gigabytes or terabytes); typical sizes are 500GB, 750GB, and 1.5TB
Speed (measured in revolutions per minute); typical speeds are 5400rpm and 7200rpm
The interface type (IDE, SATA or SCSI)
4. Expansion Slots
Motherboards have slots where you can plug in expansion cards such as video cards or sound
cards. These are called expansion slots. There are three main types that you may encounter: PCI,
AGP and PCI Express.
5. Ports
At the back of your computer and sometimes at the front you’ll find several ports where you can
plug in external peripheral devices. Each type of port has a specific shape so that you can’t plug in a
device in the wrong place. Some ports include: PS/2, USB, VGA and FireWire (the fastest).
22
1-11
Systems and Application Software
Software
Application System
Software Software
Software Integrated
Suite Software
Application software
System software
1. Application software
Application software are programs that enable the user to carry out a specific task. It is installed according to
the requirements of the user. It is not needed for the computer to function.
Microsoft Office
Windows media player
Sims 2
Peachtree accounting
23
There are three(3) main types of application software:
Integrated Software is also a combination of application programs, but it can only run as a single
program. The user can easily switch from one type of application to the next without exiting the
program. For example, Microsoft Works and Apple Works.
C. Custom-written Software
Both general purpose and special purpose application software can be purchased through software
retailers(stores), but sometimes a company might need a special software built just for them.
Custom-written Software is software written by a developer or programmer to meet the specific needs of a
company.
24
2. System Software
System software are programs that enable the computer system to run properly and efficiently. System
software must be installed before application software can run.
Operating Systems
Utilities
Translators
A. Operating systems
An Operating System(OS) is a collection of software that manages computer hardware resources and provides
services for application software programs.
OS are the most important programs and must be present in all computer systems.
Utilities are system programs that can be added to the main Operating System to increase the efficiency of the
computer system.
Examples of utilities
Anti-virus software
Back-up software
Disk defragmenters
C. Translators
Translators are software that converts other programming language instructions to machine language.
25
1-12
Functions of an Operating System
When a computer system is switched on the OS is loaded into main memory in order for the computer to start
up. This process is called booting.
Process management
Process management allocates time for processes to use the CPU, keeps a check on other processes that are
waiting to use the CPU, or signals when the CPU is available.
File management
The OS is responsible for creating, deleting, renaming of files and folders and also for making back-up copies of
files.
Memory management
Main memory or RAM stores programs and data that are presently being used by the CPU. The OS allocates
areas of memory to different programs so that each program can run effectively.
Input/Output management
There are many input or output devices that can be plugged up to the computer. The OS makes the
communication possible between the input and output devices and the computer.
Provide security
A user interface is the method by which the user interacts with the computer system. The OS provides the user
with a friendly interface that will help the user to interact with the computer system.
26
1-13
Distinguishing between:
A. Multiprogramming
Multiprogramming is the ability of a computer to open 2 or more programs at the same time. More than one
program lies in main memory(RAM)
Example of multiprogramming
Having Microsoft word, Paint and the calculator opened at once.
B. Multitasking
Multitasking is the ability to execute 2 or more tasks at the same time. Each task is given a slice of the CPU's
time and they take turns until they are done. A turn is so short that the CPU can switch between tasks many
times a second that it looks like the CPU is executing multiple tasks at a time.
Example of multitasking
Listening to music on the computer while browsing the internet at the same time.
C. Multiprocessing
Multiprocessing is the ability of a computer to execute a program on two or more processors simultaneously(at
the same time).
If one processor(CPU) can only do one task at a time, why not get two or more processors in the same
computer system? If your computer has 2 processors, it can then run two tasks at the same time. This
means a single program can use both processors at the same time so it can run faster.
27
1-14
Types of processing modes
Batch processing is when the data collected is grouped together and processed at a later point of time such as
weekly or monthly.
Electricity and telephone bills are usually collected then calculated on a monthly basis
Salaries are calculated and paid to employees at the end of the week or month.
B. Online processing
Online processing is when data collected is processed right away and is updated immediately.
It allows a user to interact with the computer expecting an immediate response or process.
An ATM machine
Booking a flight online
Ordering books on the internet
C. Real-time processing
Real-time processing is a method for inputting, processing and outputting data continuously, and is used to
control activities as they happen.
Aircraft control
Controlling robots
Traffic lights
D. Time sharing
Time sharing is a method of processing that allows many users to use a computer simultaneously.
28
1-15
Types of User Interfaces
A user interface is the way in which a user interacts with a computer system.
1. Software interfaces
Software interface is the way in which you can interact with programs on the computer system.
The main interface device for the command-driven interface is the keyboard.
Advantage
Many tasks can be done with a single command.
Disadvantage
It requires you to remember the commands and their correct syntax.
Advantage
The user does not have to remember the commands and their correct syntax.
Disadvantage
Sometimes the user cannot see all the options that are available in the menu right away.
29
C. Graphical user interface(GUI)
GUI is one that uses images to represent the choices that the user can make. Also known as WIMP interface,
because this interface provides the user with Windows, Icons, Menus and Pointers.
Advantage
GUI can be very helpful for a novice user as they do not have to remember the commands and is
provided with icons to choose from.
Disadvantage
It is slower than command-driven interface because you may have to click many icons to
complete a task.
2. Hardware Interfaces
Hardware interfaces are special devices with additional features that will make the interaction much easier.
Keyboards, mice, screens and speakers are part of the standard user interface, but additional hardware devices
can be used as part of the user interface to match the needs of a particular user.
A. Special Keyboards
Ergonomic keyboard is shaped so that it is more comfortable to use.
Overlay keyboard replaces the keys with a flat touch sensitive panel. This is normally found at fast food
restaurants(KFC) to avoid dust and grease from entering the keyboard.
Braille keyboards are available for blind people.
B. Touch screen
Touch screens are special devices that make it easier to input data using a stylus of fingers.
C. Sensors
Sensors capture data automatically and passes it to a computer. Sensors are useful in providing
interfaces for people who cannot use standard devices such as keyboards. People with disabilities can
use head movements to communicate with a computer.
D. Non-visual Interfaces
The computer can use sounds to alert a user that a virus is detected.
30