Академический Документы
Профессиональный Документы
Культура Документы
Contents Page
Communications Technology
Module 7: Spreadsheet
Module 8: Database
Topics at Glance:
What is a computer?
Uses of a computer
Functions of a computer
Input
Processing
Output
Storage
Stages of Processing
Input
Processing
The process takes place in that part of the computer called the Central Processing
Unit (CPU). The CPU, also known as the Processor is „the brain‟ of the computer.
It takes raw data and, following a set of instructions (programs), converts it into
information. The speed at which the CPU processes data is measured in megahertz
(millions of machine cycles per second) or for newer machines in gigahertz (billions of
machine cycles per second). A machine cycle is the sequence of instructions preformed
to execute one program instruction. The CPU consists of two smaller units known as
the Control Unit (CU) and the Arithmetic and Logic Unit (ALU).
The Control Unit is the main part of the CPU. It directs and coordinates all the
activities within the CPU. The Control Unit determines the sequence in which the
instructions are executed. However, it does not execute the instruction itself; instead,
it sends the data and instructions to the ALU for processing. The CU is primarily
responsible for the movement of data and instructions from itself to the main memory
and ALU and back. The CU executes instructions by preforming the following steps:
The ALU preforms all the arithmetic and logic functions in a computer. For example, if
an instruction involves an arithmetic operation such as addition, subtraction,
multiplication or division or the comparison of data, the control unit sends the data to
the ALU for processing.
The main memory/immediate access is directly accessible to the CPU. It holds data
and instructions the computer is processing at the same time. Therefore, the data
collected would be place in main memory while it is being processed. Storage is done
while the processing stage occurs.
Output
*So in summary we can say, Input devices enters data to be processed. The CPU
process the data into information and after processing, the data and information can
be either stored in a secondary device or be displayed Output devices so that the user
can understand.
…………………………………………………………………………………………………
…………………………………………………………………………………………………
………………………………………………………………………………………………….
………………………………………………………………………………………………….
Input Devices
Some of the Input devices that are mostly used in today‟s world are:
Mouse
This is one of the most commonly used input device. On it are displayed a number of
keys, each when pressed sends a digital code to the computer and automatically that
key is displayed on the monitor screen or the action taken place. For example: CTRL+v
is a shortcut key for paste. If these keys are pressed, then what ever you have copied
onto your clipboard will now be paste.
Types of keyboard:
The concept Keyboard: contains flat embedded switches which are whole words,
pictures or symbols are displayed. These keyboards are uses in businesses such as
restaurants, so the operator can visually add up the cost of standard menu items.
The Virtual Keyboard: projected on the screen, where it registers finger movement and
translates the finger movement into keystrokes. Example: keyboards on touch screen
phones.
Scanner
Joystick
A joystick is a device which lets you control the movement of an object on the screen
by operating a small lever. It is used mainly for computer games.
Barcode reader
The OMR detects the position and intensity of black marks on white paper, mostly
made by pencil lead or ink marks in appropriate boxes. These are commonly used for
marking multiple choice questions on exams paper or questionnaires given out by
market researchers.
MICR is mainly used in the banking industry for reading cheques. On bank cheques,
you can find the cheque number, the bank branch number, the customer‟s account
number and the amount of money which is printed using a special magnetic ink that
contains iron oxide. However, only a special font size is recognized as it only
recognises a special size of character.
Advantages
Disadvantages
However, OCRs cannot understand handwritten text, if the letters are not properly
formed and even up to printed documents with unusual fonts.
Example:
Light pen
Light pen allows the user to draw directly on the screen. However, they are not as
accurate as a digitalising tablet
Touch terminals
This pointing device lets you interact with the computer by touching the screen. The
pointer is the human finger. There are three forms of touch screens: pressure-
sensitive, capactive surface and light beam. These screens can be used in the bank for
ATM machines, or even up to the personal computers, tablets and smartphones
introduced to the human world today.
All modern computers contain a built-in microphone for sound capture. Today‟s
modern cell phones and computers are adapted for this function where a human
speech is inputted and the phone or computer execute the command given.
scanners
Sensors
Digital camera
Digital cameras capture an image and store it in memory within the camera. These
stored images can be uploaded or inputted into the computer system to be
manipulated or printed.
Output devices
Output devices are pieces of equipment that are used to get information or any other
response OUT of a computer. If the output can be read by humans, it is said to be
human readable and if it can be read by computers or machines, then it is said to be
machine readable.
Hardcopy: output is more permanent and the information is displayed or printed out
on paper.
Monitor
The monitor or the visual display unit (VDU) also called the „Screen‟ can output still or
moving pictures. The screen is similar in appearance to a television and helps the user
to interface visually with the computer. Images and text are formed by tiny dots of
coloured lights called pixels (Short of Picture Element). A pixel is the smallest unit on
the screen, it can be turned on and off or coloured in different shades. Pixels are so
numerous; they appear to form a smooth image on the screen.
1. Cathode Ray Tube (CRT) – this type of screen display is out-dated, and is the same
as that of the standard television set. A colour display has three different types of
particles coating the inner screen. Each particle produces different colour: red,
green, blue (RGB). These colours light the pixels on the screen. When viewed from
a little distance away, the colours appear to blend forming a full range of colours
required.
The graphics/video card or adapter being used – this is the link between the
computer‟s processor and the monitor. It is a circuit board that connects the
processor to the monitor. It determines the display resolution, the number of
colours available and the refresh rate of the monitor. Both the types of monitors
and graphics card determine the resolution. The adaptor contains VRAM (Video
RAM memory) that will support a certain resolution. You cannot set a
resolution higher than the adaptor can support. The more powerful the card is,
the more capable the monitor will be in all these aspects
The monitor‟s size – this is the diagonal dimension of the screen. Common sizes
include 15-inch, 17-inch and 19-inch monitors.
The „image aspect ratio‟ – refers to the height of an image on the screen. Most
monitor have 4:3, breath to a height ratio.
Its „refresh rate‟ – refers to the number of times the image is repainted or
refreshed on the screen per second. We get the impression that, for example a
drawing on the screen is still but in fact it is being repainted continuously. If
this process is slow, the screen may tend to flicker.
Printers:
This type of output device provides a hardcopy of the outputted data. There are two
types of printer:
Non-Impact printers: non-impact printer does not strike the paper, so they are much
quieter. Examples of these printer are:
The Thermal Printer: Fine heated pins form characters on heat-sensitive paper. These
printers are widely used in battery powered calculators, fax machines and some
ATM‟s.
Laser Printer
Ink-jet printer
These works by spraying ink onto the paper in a dot matrix pattern. These can print
bot black and white and colour, and are used mainly in homes also produces good
quality image. However, these, don‟t produce a better image quality as the laser but
are much cheaper and affordable to buy.
Plotter
Used to draw high quality blue prints, graphics, maps and vectors.
Plotters c=are slow but can draw continuously using a variety of colours
Aid in CAD (Computer Aided Design) and architectural drawings.
Paper is laid on a flat bed or on a rotating drum.
These are used to create and deliver dynamic multimedia presentations. For example,
power point presentations in which sounds, photos, video, text, animations are
combined to produce an interesting output.
Speakers
these computer generated device produces, any sound, music, or even the normal
speaking voice to be outputted for the user to hear.
Storage refers to the media and devices used by a computer to keep data and
instructions available for immediate or later use. Storage can be grouped into two
categories:
Primary Storage
Primary storage (also called main memory or Immediate Access Store (IMAS)) are a
group of chips that is located in the mother-board (main circuit board) of the
computer.
The distance the electrical signals travel from the CPU to primary storage or vice-versa
is much shorter than the distance between the CPU and secondary storage devices
which are connected to the mother board via cable. This shorter distance, along with
the design of the chips allows the faster interchange of data instructions.
A computer uses RAM to hold data and instructions (programs) temporarily while
processing is taking place using that data and program. It also holds the data that
results from processing – data that is waiting to be output or stored in a secondary
storage device. RAM therefore is also called main memory.
This means that whatever information is stored on RAM, it can only be accessible if
the program is loaded or if the device is off. Once it closes or shuts down, all data and
information is lost, because the information in RAM is temporary and changeable.
ROM chips hold data and instructions necessary for starting up the computer when it
is switch on. It is commonly used to store system level programs such as BIOS (Basic
Input/ Output System) program. ROM chips may also hold translators for high level
language and operating systems.
Instructions stored in ROM are fixed at the time of manufacture and are sometimes
being described as “hard-wire.” This means that whatever instructions are stored ROM
are always present, whether the computer is on or not. Therefore, we can say ROM
chips are non-volatile. This means that it cannot be reprogramed, or data stored
cannot be deleted easily, because it is read-only. Users of a system cannot infect ROM
chips with a virus.
This is a type of ROM that can be programmed using special equipment; it can be
written to, but only this is useful for companies that want to make the own ROM form
software they write themselves when they change their code they can create new
PROMs without requiring a whole ROM manufacturing.
An EPROM is a ROM that can be erased and reprogrammed which can make it more
useful than ordinary PROM, although EPROM chips do not last as long. This is done
by exposing the chip to ultraviolet light of a specific frequency for a specific period of
time. Reprogramming may become necessary if they are updates to the current data or
instruction that are held in EPROM.
Units of Storage
A bit is the smallest unit of storage. It is also the short for Binary Digit
The amount of data and instructions that can be stored in the memory of a storage
medium (plural media) is measured in bytes. A byte is a combination of 8 bits. One
byte has the power to represent ONE (1) Character.
A word is the number of bits the computer can process in one operation.
Bit b -
Bytes B 8 bits
Kilobyte KB 1024 bytes
Megabyte MB 1024KB
Gigabyte GB 1024MB
Terabyte TB 1024GB
Secondary Storage
Secondary Storage also called axillary storage or back-up storage is used to store data
and instructions when they are not being processed. Secondary storage is more
permanent that main memory since data and instructions are retained when the
power is turn off. Secondary storage is also much cheaper that primary storage and is
unlimited, i.e. you can have as much of it you can afford.
A computer for home use will not have as much secondary storage as a computer used
in large organisation such as banks, hospitals or an insurance company. Because of
this diverse range of storage needs, a number of secondary storage devices are
available. Devices are chosen for a particular used based on their:
Storage capacity
Access (the time need to locate the data and transmit it to the CPU)
Size (necessary for storage on selves or portability)
Portability (ability to be easily removed and use another system)
Cost
Magnetic Tapes
Magnetic tape is a ribbon plastic material with a metal oxide film on which data is
recorded as magnetised or unmagnetised spots. The magnetic orientations of the
magnetised and unmagnetised spots represent the binary digits 0 and 1. On
mainframe computers the tape is stored on reels of cartridges. In microcomputers are
stored in cartridges similar to those used to store music, but of a much higher quality.
Just like the tape in a tape recorder, data can be written to, read from, the tape as it
passes the magnetic heads.
Magnetic tape is not suitable for data files that are revised of updated often because it
stores data sequentially. This means that data is retrieved in the order in which they
are stored. Therefore, accessing data is very slow as you cannot go directly to an item
of data on the tape. It is necessary to start at the beginning of the tape and search for
the data as the tape goes past the heads.
However, magnetic tapes are erasable, reusable, and moderately durable, and are
made to store large quantities of data inexpensively. For these reasons; they are
mainly used for emergency back-up purposes.
Magnetic Disks
Magnetic Disks are one of the most widely used secondary storage media for
computers. All magnetic disks provide direct access to the data stored. This means
that you can go directly to a specific piece of data without having to access any other
data either before or after the data you want. The capacity and access speeds of
magnetic disk vary with each device or medium. Magnetic disk includes floppy disks
(diskettes) and hard disks.
Floppy disks
A floppy disk is a removable, flexible plastic disk coated with a magnetised material.
A cylinder is made up of all the tracks of the same number from all the metal disk
that make up the hard disk.
Before a disk can be used to store data, it must be formatted. Formatting a disk
means writing electronic information on the disk so that the computer can recognize
the disk as a valid storage device and data can be stored. The formatting process sets
up a method of assigning addresses to different areas. It also sets up an area for
keeping the list of addresses. Without formatting, there would be no way to know what
data is stored. When a disk is formatted, the following happens:
Floppy disks are useful for transferring data between computers and for keeping a
back-up of small files. They are relatively slow to access because of their rotation
speed. Floppy disk holds 1.44mb of information. This is plenty of space for storing
text documents (word or excel files), but for files containing graphics a floppy disk may
not be sufficient.
Hard disks are thin but rigid, inflexible disks made of highly polished metal. The
surface of each side of a disk also called platters is covered with a substance that can
be magnetised, thereby allowing data to be stored on both sides as magnetised or
unmagnetised spots.
The disks constantly rotate at a high speed and may have one read/write head per
disk (moveable head) or, on more expensive, every track has its own head (fixed head).
The combination of the disk read/write head and the circuitry that goes with these are
called hard disk drives.
Hard disks are much slower than internal memory. To increase the speed at which
data is write and read from a hard disk, a cache is sometimes included.
All modern PCs comes with a hard drive housed in the system Unit. These are usually
not removable and comes with a varied storage capacity of 20-500 GB and more.
Optical storage
Optical disks are disks that can be read by laser lights. They are made of
polycarbonate plastics and data is usually stored on a layer inside the plastic.
CD-ROM (Compact Disk- Read Only Memory) – means that you can only read (access)
what is on the disk, but you cannot change or add anything.
CD-RW (Compact Disk-Re-Writable) – is now effective for back-up storage. The data
stored on the disk can be erased and new data can be recorded as many times you
want.
DVD stands for Digital Versatile Disk. The main types are DVD-ROM (read only), DVD-
R (recordable) and DVD-RW (Rewritable). They look similar to a CD-R disk but are
capable for holding much more information. A typical DVD disk can hold 4.7GB and
17GB of information. They are mainly used for storing movies. The quality of sound
and video output is much superior to video tapes.
Flash Drives
In the modern world, today, mostly persons use flash drives or USB flash drives. It is
rewritable and removable. Videos, songs, documents, pictures can all be store on flash
drives and can also be deleted if these files are no longer in use. They are available in
all shapes and sizes and has a memory capacity of over 32GB!
Almost all the phones available today can hold a memory card or a computer/camera
can have a SD card connected to it. It is small and portable and you can take them
anywhere you want.
CDs Up to 800 MB
DVDs Up to 17GB
Read/Write Head: A read/write head is a specific physical part of a hard disk that is
responsible for reading data from, and writing data to, the disk.
Sector: the amount of data that can be read from or written to a disk by the computer
in one read/write operation.
Cylinders: All the tracks of the same number from all the metal disks that make up
the hard disk.
Buffer: a temporary area holding data that is in transit from one device to another, so
that neither device is delayed by the other.
Cache: Very fast memory processor can access much more quickly than RAM.
Sequential Access: this means that you can access data in the order that they are
stored.
Direct Access: this means that you can go directly to a specific piece of data without
having to access any other piece of data.
SCSI (Small Computer System Interface): is an interface that allow personal computers
to communicate with peripheral hardware.
Data: all that is raw facts and figures that a computer processes by following a set of
instructions (called a program) into information.
Types of Data:
Discrete Data: data that can be counted for. Example the number of letters in the
alphabet.
Continuous Data: is data that can be measured and be recorded at many different
points. Example the temperature of a liquid, weather, length, volume etc.
Base Ten
Normal numbers we use every day are written in base ten (decimal). Example 0, 1, 2,
3, 4. 5, 6, 7, 8, 9. The first column is represented in units, the second is represented
in groups of ten, and the column after is represented in groups of hundreds and so on.
The binary number system consists of two digits 0 and 1. The binary digits are also
known as bits (short for Binary digits). In base two, each column is two times bigger
than the column on the right.
25 24 23 22 21 20
1 0 1 0 1 1
Converting a decimal number to binary is a simple process whereby you divide the
decimal by the number 2 and record the remainder until the result is Zero. Then write
the remainder from the last to the first.
1. 22
2210=101102
2. 56
5610=1110002
3. 87
Exercise:
1. 2310
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
2. 3510
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
3. 10410
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
12110
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
23510
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
To convert a binary to decimal, multiply each bit by its place value, starting from the
bit on the left to the bit on the right.
Example #1
01102 → Decimal
23 22 21 20
This row shows the value of each digit
8 4 2 1
above in its place value position.
Each digit is then multiplied by its
0 1 1 0
place value.
0 4 2 0 Sum the totals.
4+2=6
01102 = 610
Example #2
26 25 24 23 22 21 20
64 32 16 8 4 2 1
1 0 0 1 0 1 0
64 0 0 8 0 2 0
Exercise:
01012
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
10012
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
0101012
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
1010112
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
01101012
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
From the sums above it can be concluded that 12+12=102 NOT 1+1=2. Since Binary
only consist of 0 and 1, you convert 2 to binary giving you 10 2. So we can safely say
12+12=102 in binary. Likewise, we do the same when adding 12+12+12.
Example 1
Step one: Set the binary numbers one above the other measuring the bits with the
same value.
102
+ 012
112
Therefore 012+102=11.
Example 2
Step one: Place the values in their correct position one under the other.
Step Two: Add the right most bit, which gives a result of 2. Since 2 is not a symbol of
the base two system, you convert two to binary giving you 102. Just like ordinary, you
write the 0 in the same column and carry the 1 to the next column.
Step Three: pertaining to this problem, you repeat step number two. Note: not all
problems will require you to repeat this step.
1. 0112+1102
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
2. 1010+1011
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
3. 00010+01110
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
4. 010101+001100
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
5. 1011001+111011
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
When subtracting binary numbers there are a few rules you should remember.
02–02=02
12–02=12
12–12=02
However, when subtracting 02-12, just like ordinary subtraction, you take a group of
two from the column on the left.
For Example:
Step One: Place the values in their correct position one under the other
Step Two: Just like normal subtraction, since 1 is bigger than 0, you take a group of
two from the next column.
Using the same rules when converting from Base ten to Base Two, we can convert
from Base ten to Base Eight. However, in this case we divide by 8 and not 2.
Example 1
3610=428
Example 2
Exercise:
1. 648
2. 5738
3. 7438
4. 6348
5. 6258
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
To convert an Octal number to decimal, we multiply each bit by its place value,
starting from the bit on the left to the bit on the right.
Example 1:
512 64 8 1
4 2 7 2
2048 128 56 2
2048 28 + 56 + 2 = 2234
1. 2078
2. 758
3. 3458
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
34610 = 15A16
703710 = B2D16
Exercise
1. 4210
2. 24210
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
To convert a Hexadecimal number to decimal, we multiply each bit by its place value,
starting from the bit on the left to the bit on the right
Example 1
Example 2
F216 Decimal
Exercise:
Convert:
1. 2C16 Decimal
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
2. 2CD16 Decimal
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
3. B1616 decimal
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
4. F2C16 Decimal
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
5. FAA16
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
Positive and negative integers can be represented in many ways, some of these are:
Using the four-bit binary representation, positive numbers begins with a 0 while
negative number have a 1 in front.
For example:
We can also represent binary numbers in Sign and Magnitude using Eight-Bit binary
representation.
For example:
this gives us: 1000112, but since the answer is only in six bits, to make it eight we add
two more zeros to the left giving us: 001000112. Note by doing this, we did not change
the value of the number.
Step 2: in order for us to make it negative, we flip the left most bit to a 1
In electronic devices such as microwaves and calculators where numeric values are to
be displayed, BCD is used.
In BCD each digit of a number is represented by its four-bit binary equivalent along
with the binary equivalent to the positive and negative signs. In BCD we represent
positive (+) as 1010 and 1011 for negative (-). The four- bits codes for the numbers 0-9
are as follows:
For example:
One’s Complement
For example:
Example 2
Step 2: add a zero to the left most bit to make it a four bit binary = 01102
Two’s Complement
This is the most commonly used methods of representing signed (positive and
negative) integers.
To find the two‟s complement of a binary number, we first find the one‟s complement
and then add 1 to it.
Example 1
N.B
When finding the two‟s complement of a negative decimal number. Convert the
positive of the number to binary then find the two‟s complement.
Step 2: add the two values that is the two‟s complement and the other number.
The answer obtained is in Five-bits, however the answer we want should be in four-
bits, so therefore we discard the leftmost bit giving us an answer of 1000.
Example 2
Find the Value of 910 – 610 using four-bits two’s complement binary
Since the answer is only three-bits we add a zero in front giving us 01102.
Now our answer has five bits, so we discard the extra bit giving us an answer of 00112.
All characters that are stored and processed by a computer are called the character
set of a computer. One of the most common use codes is the ASCII. This set uses
Seven-bits to represent each character and an extra bit to ensure data integrity.
The first 32 are called control codes that helps computer to carry out a
command such as „skip a line‟.
EXERCISE
-2110
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
5. Subtract the binary number 0011011 from 11110010 using two‟s complement.
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
6. What is the decimal equivalent of the following BCD representations? The first four
digits are used to represent the sign (positive and negative).
7. What is the decimal number for the following two‟s complement representations?
a. 1001
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
c. 11100111
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
d. 10010111
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
(a) What is the hexadecimal equivalent for the decimal 21? [Working must be
shown.] (2
marks)
(b) The ASCII representation for the letter „D‟ is 1000100. What is the ASCII
representation for the letter „G‟? [Working must be shown.] (4marks)
(d) State how many bits are represented by one digit using BCD representation.
(1 mark)
++++++++++
++++++++++
++++++++++
++++++++++
++++++++
(10 marks)
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
(Total 10 marks)
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
……………………………………………………………………………………………………………....
A software is a set of instructions (a program) that a computer needs to carry out its
tasks.
Types of software
System software
Application software
System software
System software is a set of programs that are needed for the computer to perform its
functions. It controls the operation of the computer and all hardware devices. It
includes operating systems, utility programs and translation programs.
Memory Management: Main memory holds current instructions and data used by
the computer. The operating system ensures that the right data is being copied into
the RAM to be use.
File Management: They manage the transfer of data to and from peripherals
(hardware) e.g. keyboard, mouse, scanner, etc.
Process Management: with many things to process at the same time, the OS will
organise these tasks.
Utilities
Utilities are programs in the computer that carry out one specialist function in order
for the computer to work smoothly. They carry out tasks such as automatic backup of
computer files, scanning an email for computer viruses. An example of a utility
program is antivirus software.
Translators
A system software has the feature to allow you to create your own program. A
translator may be used to support computer programmers in translating source code
Application software
Application software programs carry out specific task or solve particular problems. For
example, if you want to type a letter, you would need to use a word processor. To
create a highly decorative birthday card you would require some type of graphic
package. A word processor and a graphic package are example of application software.
General purpose software is software that is not written or any specific business or
organization but can be used or adapted to suit their specific needs, example a word
processing package.
General purpose software, “also called off the shelf” software, are usually well tested
and are relatively cheap.
Advantages
The ease with which data can be transferred from one component to another
Takes up less disk space than individual applications
You can move much faster from one application to another
Easier to learn as the user interface for choosing is the same.
Usually cheaper than purchasing the packages individually.
Disadvantages
Specialized software
Specialized software is software that is written for a specific task rather than for a
broad application area. The programs provide facilities specifically for the purpose for
which they were designed. For example, a payroll program will usually only be able to
deal with all aspects of a company‟s payroll, i.e. for one specific purpose.
Customized software
This refers to general purpose software which has been modified to meet the needs of
an individual or organization better. These packages are customized through the
writing of code or macros. Macros are short programs written to automate several
steps in software in software such as databases, spreadsheets and word processors.
An instruction usually a keystroke signals the computer to perform a predefined
sequence of instructions. Macros are usually written be experienced end-users of the
program once the program is complete. The core code of the program allows for these
match macros to be added.
This is software written to meet the specific needs of a company. Every company is
unique and may have unique needs, which is why a solution tailored to achieve a
company‟s goal, based on their specialized requirements, offers many advantages
when compared with general purpose pre-packaged applications. Custom-written
software may be written be programmers within the company, or it may be contracted
out to a company that specializes in writing software.
Disadvantages
Cost
Lengthy development time
Increased probability of undetected error
The two main features of CPUs that you need to be aware of are its speed and type.
The processor speed: of most of today's PCs are measured in GHz (GigaHertz). 1 GHZ
means that it can execute approximately 1 billion instructions per section.
The CPU type: determine the type of application for which a particular type of
processor is used. The two most popular companies that currently produce CPUs are
Intel and AMD.
Main Memory
The capacity of a computer's memory determines the number of programs that it can
hold at a time, which affects the performance of a computer system. More memory
indicates that it can hold more programs at a time. Modern PCs memory capacity is
measured in GB (Gigabytes).
There are two main types of RAM - SDRAM (Synchronous Dynamic RAM) and RDRAM
(Rambus Dynamic RAM). RDRAM are faster and more expensive than SDRAM and are
used mainly for high performance computers.
Word size: determines the number of bits that can be stored and processed at a time
by the CPU. Most modern PCs have a word size of either 32-bit or 64-bit.
RAM speed: determines how fast the chip updates the data that it contains. In modern
PC‟s it is measured in MHz (MegaHertz) and is usually above 400MHz.
Storage capacity determines how much information can be stored for later use. More
hard disk space means you can store more programs and data. In modern PC‟s it is
measured in Gigabytes (GB) but are reaching up to Terabytes (TB).
Hard disk speed is normally expressed in revolutions per minute (rpm). The rpm is
how fast the disk is spinning and varies from 5400 rpm - 15000 rpm.
Other specifications
Ports
A computer system need to send and receive information from peripheral devices. A
port is a piece of technology that is used to connect external devices to a computer.
Parallel: used mainly to connect printers but can also be used to connect certain
scanners and external hard disks.
Universal Serial Bus (USB)Used to connect around 127 devices including printers,
scanners, flash drives and digital cameras. There are USB-1 and USB-2 (this one is
faster).
Fire wire/IEEE 1394: used to transfer video images from digital devices.
Expansion slots are sockets found on the motherboard and are used to insert
additional circuit boards (cards). They can be used for adding more memory, graphics
facilities and other special devices. There are three types of expansion slots:
3)Industry Standard Architecture (ISA) - used for attaching modems and not
commonly seen on most modern computers
User Interfaces
Hardware
The hardware user interface makes it possible for a person to work with the
computer system. Such as items on the keyboard, the mouse and even on monitor
screen are found in almost every computer system. Items such as the touch screen
are now invented to make computers easier to use. Even, to the blind person, there
are the braille-based input and voice recognition are designed for them to use
computers.
Software
Command-driven interface
The command driven interface requires you to enter a command b typing in codes or
words. You have to type in the command at the prompt on the display screen.
This type of interface allows you use either a mouse or cursor-movement or arrow keys
to make selection from a menu. Menus contain commands to Print, Save, Format and
so on.
Most computers nowadays use the GUI, which makes it easier and more user friendly.
The GUI also makes use of the keyboard and mouse. It contains:
Icons which are pictorial representation of a program, or file. It can be selected using
the mouse/touchpad or even your finger if using a touch screen.
Windows: a rectangular area of the screen that opens to allow access to files and
storage areas.
Processing
Multitasking
Multi-programming
This term can be defined as one processor carrying out more than one task at a time.
Meaning that, a computer with one processor can carry out various tasks, with the
operating system swapping quickly between these tasks.
A program being executed on more than one processor working at the same time.
Meaning that some tasks carried out by the computer are too large for one processor.
Therefore, it can be divided among several processors linked together.
Batch Processing
Time-sharing
This type of processing was also use in the early age, where persons would share one
processor. This was done by multitasking and multiprogramming.
A human user is so much slower than a computer that each user hardly notices that
he or she is sharing the processor with others. The effect on the computer‟s response
is slight.
Online Processing
Question 1
Give ONE similarity and ONE difference between EACH of the following terms:
Question 2
Question 3
(A) Give TWO advantages and TWO disadvantages using a customized software
(4 marks)
(B) Explain TWO differences between a plotter and a dot matrix printer (2 marks)
(C) Describe briefly the operation of a touch screen or touch terminal and explain
TWO ways it could be more advantageous than a mouse (3 marks)
(D) Give the difference between a batch processing system and an online processing
system and give one advantage that EACH type holds over the other (3 marks)
Total 15 marks
Question 4
(A) Which output device is best suited for printing an architectural drawing of the
front view of a new building, and why? (3 marks)
(B) Give ONE similarity and ONE difference between OCR and MICR operation
(2 marks)
(C) The following terms relate to memory and data storage. Give the meaning and
purpose of EACH:
(i) Backing up (2 marks)
(ii) Read/Write head (2 marks)
(iii) Address (2 marks)
(iv) Access Time (2 marks)
(D) Give the MOST important advantage of disk storage over tape storage (1 mark)
Total 15 marks
In this module, students will be able to understand the fundamental principles and
practises of problem-solving using a computer. In doing so, they will be able to:
All computers are design to solve problems speedily and accurately. Most problems
that are solve by humans can also be solved by computers. However, computers must
be told what to do and in a correct sequence.
Exercise:
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
The IPO (input processing and Output) chart is a guide to help you define a problem
and analyse what you need to solve this problem.
For example:
First step: is to understand what is the problem asking for, which is, in this case
„average of three numbers‟
Second Step: Analysing a problem comes with what do you need to solve the problem,
in this case, we need three numbers.
Third step: Finding a solution. In mathematics, we normally add the numbers and
divide the sum by dividing the amount of numbers to find the average. Hence, this will
be our solution to this problem.
I P O
Average = Sum/3
Exercise:
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
Algorithm
OR
Characteristics of an Algorithm
Must be unambiguous
Must be finite, that is they can be terminated after a number of steps
Instructions must be in a logical sense.
1. Pseudocode
2. Flowchart
Pseudocode
Algorithm, pseudocode and computer programs are written using the specific rules
and statements of a computer language much like English language. These rules for
writing a particular language is called Syntax.
Variables
In the memory of a computer are storage cells (or bytes), each has a unique address
called memory location. This helps the computer to find relevant data easily when it is
referred to a name.
Computations are performed by the arithmetic and logic unit (ALU) which is a
component of the CPU. The results are temporally stored registers within the CPU.
Any value that we may need to access later on in a program is stored in variables.
Whenever we choose a variable name, we choose a name that reflects the kind of data
being stored. For example, a variable can be named „Name-of-Student‟, this tells us
that a person name should be stored here and not numbers. This helps the
programmer as well as the user to understand the solution better.
Note: Variable names must always begin with a Letter character and must be of a
certain length.
Example:
*Sum* = Wrong
Sum = Correct
Sum12 = Correct
Constants
Algorithmic Structure
Control structures
Sequential Structures
1. Input statements:
Get
Read
Accept
2. Output statements:
Print
Display
Output
4. Initialised variables
Count = 0
Minimum = 0
Start
Prompt „Please enter length of square‟
Read Length
Perimeter Length*4
Print „The perimeter of a square is‟ Perimeter
Stop.
Exercise:
3. Input the price of a textbook. Calculate and print the total cost of the book after
VAT 15% is added.
4. Enter the length and width of a pool and calculate and print the length of the
rope needed to cord off the pool.
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
Start
Read Cost
Final_Price 0.10*Cost
Stop.
If you noticed in the problem above, one of the storage location was supposedly named
final price. However, when assessing a name to a variable and it consist of more than
one words in the name, then you could use a Hyphen, underscore, or no space to
connect the words. Note there must not be any space between the variable name.
Example: FinalPrice OR Final-price OR final_price. Note capital letters are not always
necessary.
Exercise:
1. Write the instructions to find the new price of a bicycle after 5% discount has been
made.
3. John Mathews is paid $14.00 an hour during a fortnight, plus he also worked ten
hours overnight at the rate of time and a half. Design an algorithm to display the
employee‟s name and his basic wage.
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
Sometimes when processing data, you may need to compare a value of one variable
with that of another variable/constant.
Syntax:
IF <condition> THEN
Example #1
A company gives out rewards based on the number of cars each employee sold. If 5
cars or more cars are sold, then the employee is rewarded 5% of the total cost of the 5
cars. Read and print the amount of reward would that employee receive.
Start
Prompt „Please enter number of cars sold‟
Accept No_of_Cars
IF No_of_Cars >= 5 THEN
Reward = Total_Cost*0.05
Print „The amount of reward received is‟ Reward
ENDIF
Stop.
In example 1, it was asked to read and print the amount of reward the employee would
receive. In the pseudocode for example one, the amount of reward will only be printed
if 5 cars were sold. Let us look at another example.
Start
Prompt „Please enter number of cars sold‟
Accept No_of_Cars
IF No_of_Cars >= 5 THEN
Reward = Total_Cost*0.05
ENDIF
Print „The amount of reward received is‟ Reward
Stop.
In the second example, because the print statement is outside of the IF-THEN
construct, the reward will be printed whether the person is qualified or not. But we
want the reward to only be printed if the person is qualified, therefore example #2 is
incorrect.
IF-THEN-ELSE Construct
The IF-THEN-ELSE construct contains two parts: the THEN part and the ELSE part.
When the condition is tested, if holds true, the THEN part will be executed. If the
condition tested holds false, the ELSE part would be executed.
Syntax:
IF <condition> THEN
<Action to be taken if condition is TRUE>
ELSE
<Action to be taken if condition is FALSE>
ENDIF
For example:
When a selection is based upon more than one decision/expression being TRUE or
FALSE. You may find the need to combine the expression using the Boolean
Operators: „AND‟ or „OR‟.
The AND Operator is used when BOTH the conditions must be met
For example:
Read the day and weather and output „Game on‟ if the weather is Sunny and the day
is Sunday.
Start
Prompt „Please enter the Day and The Weather‟
Accept Day, Weather
IF Day = Sunday AND Weather = Sunny THEN
Print „Game On‟
Stop.
For example:
Read weather and output „Game on‟ if the weather is sunny, or „Play suspended‟ if the
weather is Cloudy or Rainy.
Start
Prompt „Please enter The Weather‟
Accept Weather
IF Weather = Sunny THEN
Print „Game On‟
ELSE
IF Weather = Cloudy OR Rainy THEN
Print „Play Suspended‟
Stop.
Nested Selections
If statements embedded one within another, they are said to be nested. For every IF-
then statement, there must be an ENDIF.
Syntax:
Syntax:
IF <condition 1> THEN
<Action to be taken if condition 1 is met>
ELSE
IF <condition 2> THEN
<Action to be taken if condition 2 is met>
ELSE
IF <condition 3> THEN
<Action to be taken if condition 3 is met>
ELSE
<Action to be taken if conditions 1 to 3 are not met>
ENDIF
ENDIF
ENDIF
Example:
A company gives bonuses based on the amount of income generation by their sales
representatives per month. Once the income is greater than $15,000.00 then a bonus
Information Technology Workbook on Section 1-8 Page 88
of 10% is given. If the income is greater than 8,000 but less than or equal to 10,000,
then a bonus of 8% is given. If the income generated is greater than 5,000 but less
than 8,000 then a bonus of 5% is given. If the income generated is less than or equal
to 5,000 then a bonus of 2.5% is given. Read the income generated and print the
bonus.
Start
Prompt „Please enter the income generated‟
Read Income_Generated
IF (Income_Generated > 15,000) THEN
Bonus = Income_Generated * 0.10
ELSE
IF (Income_Generated > 8,000) AND (Income_Generated <= 10,000) THEN
Bonus = Income_Generated * 0.08
ELSE
IF (Income_Generated > 5,000) AND (Income_Generated <= 8,000) THEN
Bonus = Income_Generated * 0.05
ELSE
If Income_Generated <= 5,000) THEN
Bonus = Income_Generated * 0.25
ENDIF
ENDIF
ENDIF
Print „The bonus given is‟ Bonus
Stop.
Exercise:
1. A video club rents videos for three days. Design an algorithm to read the present
date and the date borrowed. Calculate the number of days borrowed. If the number
of days borrowed exceeds three days, compute and display the number of days
overdue and the overdue charge which is calculated at a rate of $1.50 for every day
overdue.
3. Design an algorithm to read the name of the student and the value of the student‟s
mark. Print the name of the student and the value of the student mark. Print the
name of the student and an appropriate grade based on the following grading
scheme: 80 or more = A, Less than 80 but more than or equal to 65 = B, Less than
or equal to 65 but more than or equal to 50 = C, Less than or equal to 50 but more
than or equal to 35 =D, Less than 35 = F.
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
Create an algorithm that would input your old monthly salary and print your new
yearly salary if there is an increase by 5%. If your yearly salary is less than or equal to
60,000 then tax rate is equal to zero otherwise calculate the tax for 2016 if the tax rate
is 20% on your taxable income. Print the tax for 2016.
Start
Tax-rate=0.2
Read Old-Monthly-Salary
Tax2016=0
Else
ENDIF
Stop.
But before we can look at the various loops, we must look at the Counting.
Counting
Looping Structures
Finite loop
Syntax:
FOR <variable> = <Beginning value> TO <Ending value>
DO
<Action to be repeated>
Example:
A car rental rents 5 cars in one day. Read the number of days for the rental of each
car and calculate the total rent paid to the firm if a car is rented for $350.00. Print the
total rent paid to the rental firm.
Start
Total_Rent = 0
FOR Count = 1 TO 5 DO
Prompt „Please enter the number of days for rent‟
Read Num_of_days
Rent Num_of_days*350
Total_Rent Total_Rent + Rent
ENDFOR
Print „Total rent paid for the rental firm‟ Total_Rent
Stop.
Indefinite Loop
Iteration means to repeat a set of instructions over and over. However, it can only be
end with a sentinel value. A value of such must not be one of the values in the list that
must be processed. If the user inputs such a value, then and only then the loop will be
terminated.
In the pseudocode, above it could be seen that a sentinel value is 986, as no student
could be of that age.
The program fragment above shows an example of how the while loop is structured.
In the WHILE construct the computer executes a number of instructions repeatedly for
as long as the given statements to be repeated is proven true.
The statements BEFORE the WHILE loop are carried out only ONCE. The while loop is
executed until the condition becomes false, which forces the loop to stop. The
statements AFTER the ENDWHILE are carried out ONLY once.
If the statements within WHILE and ENDWHILE is tested and is false, then the
computer will only run the statement before While and continues with the statements
after ENDWHILE, skipping those within WHILE and ENDWHILE.
Syntax:
While <Condition is true>Do
<Action to be Taken>
End While
Truth Tables
b) State the two Boolean Values that are used to rest the rules in part (a).
………………………………………………………………………………………………………
(1
mark)
c) Write pseudocode to represent the rule that states if both test are passed then
award grade P. (5
marks)
Flow charts
This is another type of algorithm that uses geometrical symbols to designate the basic
steps of a program which are: input, output, processing.
Below are some examples of how the various control structures are depicted in
flowcharts.
Sequence
Selection/Decision
Design an algorithm that would accept two values, the hourly rate and the number of
hours worked by an employee. If the number of hours exceeds 40, then the excess
hours should be paid at an overtime rate of twice the hourly rate. Calculate the wages
(including overtime if any) due to the employee.
Program Implementation
This is a single statement beginning with the word program. The heading assigns a
name to the program and lists the inputs and output statements in parenthesis.
Example: Program Average (input/output);
The Program Block
This is the body of the program. It consists of the pascal statement for executing the
program. It is made up of two parts:
1. The Variable Declaration section: this is where all the variables and data
structures used by the program are defined.
2. The Statement Section: this is where the action statements of the program are
specified. these are found between the words „BEGIN‟ and „END‟.
Keywords are reserved words with a special meaning attached to it in Pascal and are
used in predefined contexts, meaning they cannot be used as variables. Some
keywords in Pascal, that one should always use are:
Program, type, VAR, CONST, Begin, End, Writeln, Readln.
Declaring Variables in Pascal
Variables must always be declared in the variable declaration section prior to their use
in the program. Variables are declared in Pascal by specifying the keyword VAR,
followed by a list of variables, a colon, data type and semi-colon.
For example:
Var
Num1: integer;
AVG: real;
Now that we went through the basics, let us now translate pseudocode into pascal.
Example #1
In Pseudocode:
Algorithm Area_of_Square
{This algorithm will calculate the area of a square}
Start
Prompt ‘Please enter Length of Square’
Accept Length
Area length*length
Print ‘The area of a square is’ Area
Stop.
In Pascal:
Example #2
Exercise:
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
Unlike for and while loops, which test the loop condition at the top of the loop, the
repeat…until loop in Pascal checks its condition at the bottom of the loop.
A repeat ... until loop is similar to a while loop, except that a repeat ... until loop is
guaranteed to execute at least one time.
Syntax:
Repeat
(statements…)
The conditional expression appears at the end of the loop, so the statement(s) in the
loop execute once before the condition is tested.
If the condition is false, the flow of control jumps back up to repeat, and the
statement(s) in the loop execute again. This process repeats until the given condition
becomes true.
Exercise:
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
.………………………………………………………………………………………………………………
……….………………………………………………………………………………………………………
Pascal programming language provides a data structure called the array, which can
store a fixed-size sequential collection of elements of the same data type.
An array is used to store a collection of data, but it is often more useful to think of an
array as a collection of variables of the same type.
An array, once declared, the size that is specified by the programmer will remain the
same throughout the whole program and cannot be changed.
Structure of an Array:
An array data structure defines the size of the array and the data type that it will use
for storing data. It can be from 1 to 50, or even from 1 to 1000, This size depends on
your program requirements.
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
Question #2
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
Question #3
An array named OMEGA is used to store values of three integers. Write pascal code for
EACH of the following:
………………………………………………………………………………………………………
(B) Assign the values 5 and 10 to the first and the second locations of the array
respectively. (Use two pascal statements). (4 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
(C) Add the values in the first and the second locations of the array and store the sum
in the third location of the array. (2 marks)
………………………………………………………………………………………………………
Searching an Array
Variable declaration
Looking at the description of the program tells you that you will need need several
variables:
Code Purpose
In this line, the search result variable is initialised.
The initial value is „N‟. This is to show that the search
term has not yet been found in the array.
A for loop is used to go through each element in the
array. The number of iterations is the same as the
number of elements in the array. The next two lines
are within the FOR loop.
A conditional IF statement is used to test whether
each element in the array matches the search term.
If the element matches the search term, then the
value Y is assigned to the variable ,
meaning the term has been found.
CONTENTS B A C T
INDEX 1 2 3 4
(B) Write the order of the index numbers that would output the letters CAT (3 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
(C) Write the fragment of code to search the array for the letter C and return the index
location (5 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
(D) Write a fragment of code to write the letter Z into Each cell of the array (4 marks)
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
………………………………………………………………………………………………………
Checking the algorithm to see if it works is a very important step in the problem-
solving process. This must always be done before the program is translated into a
programming language.
1. Choose a simple input test cases which are valid. Two or three tests cases are
usually sufficient.
2. Establish what the expected result should be before for each test case. That is
do a manual solution beforehand.
4. Walk the first test case through the algorithm, keeping a step by step record of
the content of each variable in the table as the data passes through the logic
until the algorithm reaches its logical end.
5. Check that the expected result established in step 2 matches that actual result
developed in step 4.
Example:
1 Total-runs = 0
2 Count = 0
3 While Count <= 6 Do
a Read runs
b Total-runs Total-runs+1
c Count Count+1
4 ENDWHILE
5 Average-runs Total-runs/runs
6 Print Average-runs
7 Stop.
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
……………………………………………………………………………………………………………….
When you write a program you always begin with a description (the declaration
statement) of what you want the program to do. This is called program specification.
Anything that prevents the program from working to the specification is an error.
Types of errors
Syntax Errors
This is the name for the rules of a computer programming language. Rules include the
spelling and usage of key words, the use of punctuation such as semi-colons etc.
The complier can only work if your program obeys the syntax of pascal. If you make a
mistake in the syntax, then the program will not compile. Some compliers will give you
helpful message as to where the error is.
Run-time Errors
Even if the program complies successfully, it could still have errors in it, which you
can only spot once you run the program. Example: Forgetting to end a loop, or
dividing by Zero.
Logical Errors
Some programs may compile and run successfully, but it could still have errors, giving
you the wrong result. Example using the less than instead of more than or vice versa,
or using addition instead of subtraction. The program will still compile and run but it
would give you the wrong result.
Testing will help you to find these errors easily as they are usually difficult to find.
Debugging
Testing
This is a rigorous process which is used to discover any hidden problem in the code
for the problem.
Dry run test: this is the basic use of the trace table, when testing for errors in an
algorithm.
Using test data is a good technique in testing for errors in a program. Test data is
basically pretend data rather than real data.
The first basic testing is to make sure that the program works using normal or
realistic data. Data that is similar to that of the real data.
The second testing is to use extreme data, example very small numbers or very large
numbers. At this point of testing, you will discover whether or not your program goes
wrong when unusual data are entered.
And lastly the use of mistaken data: for example, if a user mistakes and enter the
letter „O‟ instead of the number Zero „0‟ or accidently type in a negative number, then
what will happen. Testing will help you to find out!
Since pascal compliers only reads the word and punctuation of the program you have
written and doesn‟t pay attention to the layout and use of capital letters, it is
important that one must a program with the proper layout and other features, since it
may benefit:
You, as you can check your own work and be able to locate errors more quickly
Identifiers: for example, in a variable payrate, you can use capital letters to
show the beginning of a new word: PayRate.
Comments: these can be in enclose curly brackets like that of your declaration
statement. The pascal complier usually ignored the statements within these
brackets.
Spacing: the use of spaces makes your program much clearer and will help you
avoid errors. Spaces between different words is a good practise. If your output
line includes quote words, then a good idea is to include a space before and
after words. For example,
External documentation
1. A technical manual: deals with the way the program works, the structure, and
the programming methods, they ae mainly design for other programmers to
help maintain them.
2. A user manual: mainly for the user and it explains how the program works, the
ways in which the program can benefit you, menu choices, etc.
First generation
The machine code: instructions stored in some computers use a binary code system
(0‟s and 1‟s), while other may use hexadecimal. This machine code is what the earliest
programmers used to program and carrying out specific tasks on a computer.
89 F8 A9 01 00 00 00 75 06 6B C0
03 FF C0 C3 C1 E0 02 83 E8 03 C3
Second generation
Example:
Fourth Generation
SQL is the standard language for relational database management systems. SQL
statements are used to perform tasks such as update data on a database, or retrieve
data from a database. Some common relational database management systems that
use SQL are: Oracle, Sybase, Microsoft SQL Server, Access, Ingres, etc. SPSS
(Statistical Package for the Social Sciences) for doing statistical maths.
Fifth Generation:
Object-oriented: based around handling data objects that correspond to actual object
in the real world, example a payroll program. Simula was the first object-oriented
programming language. Java, Python, C++, Visual Basic .NET and Ruby are the most
popular Object Orientated Programming languages today. The Java programming
language is designed especially for use in distributed applications on corporate
networks and the Internet.
Module 4
Data communication
Data communication can be broadly described as the transmission of data from one
location to another for direct use or further processing.
Data communication systems may be set up to transfer data from one location to
another, it may be in a small environment, regionally or globally.
Transmission modes
This is the direction in which data flows. Data flow can be classified into three
categories:
1. Simplex: data is flowed in one direction only. For example: a television can
receive programs but cannot send messages.
Transmission media
Coaxial Cable: this type of cable is made of an inner conducting cable, surrounded by
insulation. It is more expensive than twisted pair, but provides better insulation
against electrical interference.
Twisted-Pair: this type of cable is made up of pairs of wires. In each pair, the wires are
twisted around each other. This type of cabling has been used for many years. It is
relatively inexpensive and reliable.
Fibre-Optic: this cable sends signals in the form of light pulses. It provides a reliable
modern alternative to copper cables.
3. Microwave Links: these signals are high frequency radio signals that can be
transmitted through space.
6. Modem: a standard telephone line can only transmit analogue data, whereas
data emitted from a computer is in digital form. A modem (short for Modulator
Demodulator) is a device used to convert the digital data to analogue and
analogue back to digital.
7. Bandwidth
Transmission channels
Voiceband Channel: transfer data at a faster speed at the rate of about 1000 to 8000
cps. A telephone line is one of such.
Broadband Channel: can transfer larger volumes of data at speeds of over 100, 000
cps. Transmission media such as cables, microwave links, satellites are commonly
used to provide these channels. It is mainly used to transfer text, voice, pictures and
videos.
Transmission Speed
It is the rate at which data can be transferred over the Measured in bits per second
(bps).
Network
What is a network?
A computer network is any system that allows computers to send signals to other
computers in electronic form. The signals are sent in a variety of different ways, and a
range different technologies are used.
Types of Networks:
Local Area Network (LAN): connects computer within the same building, or at most
within buildings that are close together (for example, a school) to share peripherals,
files and programs.
Each computer in the network can function as an independent PC, running its own
software or as a workstation on the network accessing information from the network
server.
The Network Server runs the networking software that allow computers to share
resources with other computers on the network.
Before a PC can become part of a network, especially a LAN, it must be fitted with a
Network Interface Card (NIC). This card fits into an expansion slot in the motherboard
of the computer and enables the computers on a network to send and receive
messages. The card has an external outlet into which one end of the network is
plugged. The other end of the cable plugs into a connected based on the configuration
of a network.
Advantages of LAN
Disadvantages of LAN
LAN Topologies
A network topology is the pattern in which nodes (i.e. computers, printers, routers or
other devices) are connected to a local area network (LAN) via various transmission
media. Computers in LAN can be connected in a Star, Bus/Line, or Ring and Mesh.
Star Topology
This is the most popular network topology in businesses today. It consists of nodes
connected to a central switch or hub. A hub is a hardware device to which a number
of computers can be connected.
This means that each computer has its own connection to the network and that if
there is a break in the cable, other computers will not be affected, however if the HUB
breaks down then the entire network is affected and will not work. If you have a home
network, you are probably using the star topology.
The Star Network although more expensive to install than the other types, is much
quicker and easier to use.
Bus topology is a specific kind of network topology in which each computer and
network device are connected to a single cable or backbone.
In this way, a single cable wire is utilized in connecting all the computers than
individual cable wired for all the computers. This makes the topology cost effective as
well. But when there is an error in one of the functioning devices due to the presence
of a single mother cable, it is difficult to find out which computer is malfunctioning.
The following sections contain both the advantages and disadvantages of using a bus
topology with your devices.
Ring Topology
It is a network setup where each computer and network device is interconnected with
one another, allowing for most transmissions to be distributed, even if one of the
connections go down. This topology is not commonly used for most computer networks
as it is difficult and expensive to have redundant connection to every computer.
However, this topology is commonly used for wireless networks.
WAN connects computers that are spread out over a large area such as an island, the
whole Caribbean, or even across the ocean.
MAN, is slightly less common. It might connect the computers in a large city or
district.
Internet
The internet is a network or network that connects computers worldwide via a huge
set of telecommunication links. The individual networks may be owned by any
organisations or private individuals.
The internet is not owned by anyone or does not have a central authority. Yes, there
are organisations that develop technical aspects and set standards for creating
applications on it, but no one governing body or government is in control.
Internet Relay Chat (IRC): enables people connected anywhere on the Internet to
join in live discussions. Unlike older chat systems, IRC is not limited to just two
participants.
To join an IRC discussion, you need an IRC client and Internet access. The IRC
client is a program that runs on your computer and sends and receives
messages to and from an IRC server. The IRC server, in turn, is responsible for
making sure that all messages are broadcast to everyone participating in a
discussion. There can be many discussions going on at once; each one is
assigned a unique channel.
Telnet: a network protocol that allows a user on one computer to log into
another computer that is part of the same network. It is a user command and
an underlying protocol for accessing remote computers. Through Telnet, an
administrator or another user can access someone else's computer remotely.
On the Web, HTTPs and FTPs allow you to request specific files from remote
computers, but not to actually be logged on as a user of that computer. With
Telnet, you log on as a regular user with whatever privileges you may have been
granted to the specific application and data on that computer.
File Transfer Protocol (FTP): is the protocol used to allow computers to upload
and download files.
Upload: transfer of data from one computer to another, typically to one that is
larger, for example from your computer to the internet.
World Wide Web (WWW): The World Wide Web, or simply Web, is a way of
accessing information over the medium of the Internet. It is an information-
sharing model that is built on top of the Internet.
Web browser:
HTTP
Hypertext Mark-up Language (HTML/XHTML):
Web Page
Website
Blogging
Webserver
URL
E-Commerce
E-Learning
HTTP: is the protocol used to allow computers to share web pages, it controls
the communications between computers.
Pod-casting
Bulletin board:
VoIP (Voice over Internet Protocol): is a protocol that allows you, to send phone
messages over the internet instead of phone lines.
Intranet
Extranet
Software Restrictions:
Passwords
Encryption
Virus protection (Antivirus software)
Firewall
Biometric Systems
Guards
Locks
Fire/Water Proof Cabinets
Archiving
Backup and Recovery Procedures
Propriety Data and Software
1. Violation of privacy – Users have passwords to keep their data private and secure
it from being stolen or modified. Computer Hackers use software to decipher
codes and passwords to gain unauthorised access to computer systems for their
own illegal purposes.
This violation of privacy resulted in the creation of the Computer Misuse Act of
1990, where users if found guilty were punishable by fines or imprisonment.
Using accessed information for illegal purposes the information that the
user has, is accessed by the hacker and used as blackmail or for unfair
advantage
Altering accessed information for fraudulent purposes the hacker alters the
accessed information, such as changing figures on bank accounts or
deleting files
3. Software piracy – This is a form of illegal copying. Some people make copies of
expensive computer software, and sell it illegally.
10. Credit card fraud - In this form of identity theft, the criminal uses another
person‟s credit card to buy goods or borrow cash.
In most cases hardware goes together with software – if you need a special piece of
hardware, you also need the software to run it.
Business
The first applications of ICT within banking were the use of mainframes, and
later minicomputers, to process data such as customer accounts, bank
inventories, personnel records, and accounting packages.
Software: Payment for goods or services by debit and credit cards through the
EFTPOS
Industry
More complex activities such as assembly and welding of parts can be carried
out by robots. In the past, people imagined that robots would be metal men. In
real life, they are simply moving machines that can carry out repetitive tasks
very quickly and precisely, without getting tired.
Science
Accurate readings have to be taken regularly, over long periods of time. Rather
than a laboratory assistant taking readings, conditions can be monitored
directly by computerised sensors.
Medicine
Most specialist systems are used in hospital. Here are some examples:
CT scan – this is short for X-ray Computed Tomography. It uses computer
power to generate a three-dimensional image of the inside of the body by
merging multiple x-ray images.
MRI scan – this is short for Magnetic Resonance Imaging. This uses
magnetism to produce a detailed image of body tissues that cannot be picked
up in X-rays.
Expert systems – these are complex software models that use stored
information to provide answers to problems. In medicine this software is
sometimes used to help with diagnosis of illness.
Law enforcement
The police also make use of technology to monitor traffic. Scanning devices can
be used to read number plates automatically, and to measure the speed of cars.
Music
Music editing systems allows users to record audio tracks and store them in the
computer‟s memory as digital audio. Then they can manipulate the music in
many different ways, such as
edit the start time and duration of any sound
fade into and out of a track
manipulate tracks
apply sound effects or filters
normalise voices to ensure the right notes
Gaming
Games makes use of specialist peripherals to give the player a more realistic
experience of the action of the game. Many recent games have hand-held
remote devices that detect movements in three dimensions [up-and-down, side-
to-side, forward-and-backward]. By holding this device, you can stimulate
action sports such as tennis.
Typical expert systems are used for diagnostics. “Diagnostics” means finding
the cause of a problem.
The purpose of an expert system is to use a system of 'artificial intelligence' to
replace one or more people with the expertise of knowledge in a particular
area.
Expert systems are also used to diagnose problems in car servicing and
computer maintenance.
Robots are used in factories where repetitive tasks must be carried out. Robots
work quickly and accurately. They use sensors to measure their environment
and computer-controlled motors to make actions.
It is much cheaper to test out designs on computer rather than real life. For
example, a new bridge design will be planned and thoroughly tested on the
computer system before the design is approved to build a real bridge.
Teleconferences can save a lot of time and money because people do not have
to travel much.
Cloud computing: In the simplest terms, cloud computing means storing and
accessing data and programs over the Internet instead of your computer's hard
drive. The cloud is just a metaphor for the Internet.
Smart objects: This is any object that can send out wireless signals that can be
picked up by local computer systems. Smart objects also have their own
processors inside them. At present this technology is mainly used to help you
find and track objects.
Most jobs today require that employees use or have access to some sort of
technology. It seems to be the norm that employees have email addresses of the
company in order to send and receive messages among customers and colleagues
alike.
Reports can now be distributed via softcopy with graphs and tables. They can even
be password protected.
Meetings can be conducted online using video, audio, and chat features, including
the option to share documents
5) Movie industry: Until recently, the only way films were distributed to cinemas
all around the world was by physically transporting large film reels to each and
every cinema. Now an alternative is appearing where the films are distributed
as a digital file.
Retraining: Technology drives much of business these days and so most companies
want workers with the basic skills to use it - typing for example or having the ability to
use email. The use of these basic skills in the workplace is as important as reading
and writing.
Many people have found that their job has been changed because of the introduction
of computers.
Sometimes employees can perform the same tasks but by using a computer. Training
has become a major money earner based on the many people who need to keep up to
date with technology to maintain their jobs.
There are online courses that can help people to develop computer skills. Other people
will learn on the job, adapting to new ways of working that involve technology.
Ability to schedule you own Work place can contact you at any
working hours time
Save traveling time and costs It may be difficult to separate
Environmental benefits such as work from home life
saving on gas and air conditioning Employees may work even longer
at work hours
Collaboration is better with an May miss the camaraderie and
Internet connection team spirit at work.
File librarians – Keeps track of the tapes, CDs, disks and other storage devices
that are stored and logged out for use
Software engineers – The software engineer is responsible for the complete life
cycle of a new or modified software package, from research and design to
implementation, training and support.
Software testers – Run tests, using various customer scenarios, stress testing,
and performance testing. The ultimate goal is to iron out any bugs and improve
the quality of the finished product.
Multi-media artists – Uses a wide range of media such as visual art involving
sound, moving images and other media to create an art piece or product.
Information is processed data; information is what you get when data are organised in
a useful way.
When data are processed, they are more useful and helpful.
Data processing – This is the action of turning disorganised data into organised and
useful information.
(A) A shop might note down all the sales during the week, but if the records were
properly organised the shop keeper could tell what goods he needed to re-order,
and how much profit he had made that week.
(B) A collection of cards noting the meaning of words would be data. But if the
words were organised into a single document, in alphabetical order, this makes
a useful dictionary.
Input devices are needed to enter the data into the computer system.
Data are stored in files.
The processor organises the data, and carries out calculations to create
information. This is done electronically.
Output devices are used to produce the results that are usable.
Tasks can be completed faster because data and information can be processed
at amazing speeds.
Computers can process large amounts of data and generate error free results,
provided that data is entered correctly.
Control systems
They are two main types of control systems:
1. Automation systems
2. Process control systems
1. Automation Systems
These systems perform repetitive simple tasks, such as the cycle on a washing
machine, and a microwave warming a meal. This is done repeatedly with
minimal or no human involvement. These automation systems follow a set of
predetermined actions.
Of course, people are still needed, even in automated factories. For example:
These systems rely on feedback from sensors to respond to actions, and are
therefore suitable for more complex operations.
In order to control a process in this way the computer system must have the
following features.
Sensor input – the system must constantly monitor the process that is
being controlled. It cannot reply on human input. Electronic sensors take
measurements and them to the processor.
An example might be a temperature sensor, or a motion detector.
Fast processing – the processing must be very fast. The computer must
react in real time. For example, if a computerised autopilot is flying a
plane, it must make instant adjustments to the controls. There can be no
delay.
Output to control devices – the output from the processor will control
devices or machines. For example, the computer might move a robot arm
or regulate the flow of chemicals into a mixture.
This type of data processing is ideal for manufacturing businesses that use
computers to design products (CAD), or using special software to develop and
test products (CAE or CAM), or even controlling the processes used when
manufacturing products.
This data processing is used in research and development where lots of data is
captured during various tests and experiments.
For example, when you use an ATM sometimes called a „cash point‟ the computer
will find your bank records, and check how much money is in your account. To do
this it must find your account instantly in the records of all the people with
accounts at the bank.
Source document
Turnaround document
Types of error
The user might type the wrong character on the keyboard. This is called a
typographical error.
Spelling mistakes because you are not sure how a word should be
spelled
Typing the key next to the one you meant to press (such as typing “amd”
instead of typing “and”)
Transposition errors, typing two characters in the wrong order (such as
typing “the” instead of “the”)
Pressing the shift key or forgetting to press it (for examples, typing %
instead of 5)
Mixing up numbers and similar looking letters, such as 1 and I, or O and
0.
Verification
To verify means to double check that something is true. For verification check
the data input is carried out twice – for example, a password typed twice. The
computer checks that two versions are exactly the same.
Double Data entry - Double entry involves entering the data twice,
either by the same user entering the data on two separate occasions or
by having two different operators enter the data from the form. The two
entries are then compared against each other and a printout or
softcopy lists those items that do not match. The user then checks
whether the error was made in the first entry or the second, confirm
which is correct from the original paper form and make the change. It
can be expensive and time-consuming to use this method, but it does
ensure very accurate data capture.
Check digits - Check digits are used to uniquely identify products and
is applied to a sequence of numbers only.
The last number of the ISBN is actually the check digit for the previous
nine numbers, for example - the ISBN 0348267124
Validation is the process of determining if the data is correct. It ensures that the
data entered meets all requirements. Note that it only checks that the data is
VALID. It does NOT mean that the data is actually correct.
In other words it is a check that data are valid. Valid means that data are of the
right general type or value. Validation is useful when you do not know exactly
what data are to be entered, but you know of the sort of data expected.
Range check Used on numeric fields to ensure For example, if someone enters
that numbers entered fall within a 9 days in a week, it will not be
specific range; The computer calculated.
checks that data are within a
certain range of numbers. Or if a school pupil enters their
age, you can be sure that the
answer will not a less than 3 or
more than 20.
Reasonableness check Ensures that the data is realistic. If you are entering the weight of
children, this check with ensure
that a child's weight is not say
over 400 pounds.
This uses a special formula to find the position of a record on a direct access
medium such as a hard disk.
An index to the main sequential file containing all the records could be stored
on a hard disk.
The index file holds the address of a position of the records on the disk.
(a) Sequential Access File – In this type of access the computer needs to look
through every record in the database.
(b) Direct Access File – In this case the computer quickly finds one record in a
large database.
PAYROLL
Stock records hold details of the items for sale in the store and
also holds the price of the item and the number in stock.
The stock system then finds the record for the item and sends the
price to the Point of Sale terminal for the casher.
It also updates the stock record to show that the number in stock
has decreased.
LIBRARY
(A) Word-processing
The following are the key operations that we can perform in MS Word:
1. Create a document
2. Save a document
3. Edit a document
4. Format a document
5. Print a document
Creating a Document:
You start your word processor, namely Microsoft Word. With your blank document
opened, type a sentence such as "I will master Information Technology".
Save a Document
You can save your document by using the keyboard combination CTRL+S, or by
pressing the Office Button and selecting Save or Save As.
You should save your document every few minutes while you are typing and
formatting your document.
You can use a word processor (such as Microsoft Word, WordPerfect, or WordPad) to
type many documents such as a text book, a novel, an article, an assignment or a
report. However, you need to be able to use certain keys and options to effectively
create your document.
Words This
Lines This is an example of a line of text
Sentences This is an example of a sentence, which can be more than one line
Paragraphs This is an example of a paragraph. It is made up of more than one
sentence and can take more than one line. Usually, paragraphs are
three or more sentences.
Editing a document involves selecting the text, moving and copying the text and
deleting either the selected text or the entire text in the document window.
You can also erase those letters, spaces, lines, paragraphs, or pages using specific
keys or icons.
The Delete key is used to delete text to the right of the cursor.
The Backspace key is used to delete text to the left of the cursor
If you type characters on the keyboard they will appear where the cursor is.
Move the cursor by using the arrow buttons on the keyboard or positioning the
mouse and clicking the left button. The keyboard shortcuts listed below are also
helpful when moving through the text of a document:
Selecting Text
Before you can move or edit your text, most of the time you need to highlight it first.
You select text by dragging the mouse over the desired text while holding down the left
mouse button, or hold down the SHIFT key on the keyboard while using the arrow
buttons to highlight the text. The following table contains shortcuts for selecting a
portion of the text:
Selection Explanation
Whole word double-click within the word
Whole paragraph triple-click within the paragraph
Several words or lines drag the mouse over the words, or hold down
SHIFT while using the arrow keys
Entire document
press CTRL+A
To remove highlighted text, you can click anywhere outside of the selection of
highlighted text or press an arrow key on the keyboard.
Working with blocks of text – As well as deleting single characters at the cursor, you
can select a block of text, and delete it in one go.
To select a word you double click with the mouse (you must click fairly quickly).
To select a paragraph you click three times.
To select any other clock of text, move the text pointer to start, hold down the
mouse button and drag the pointer to the end of the block of text.
Moving the text around your document can be achieved by selecting and then cutting
(CTRL+X) the selected text from its original location; then pasting it (CTRL+V) at some
new location in the document window. Another option is to drag the selected text to
the new location in the document.
To cut the selected text, you can:
Select the Cut option (or CTRL+X) from the menu,
Select the Cut option from the option box when you right-click on the selected
text.
Select the Edit Cut icon on the menu.
To delete text, you can select your text by highlighting it using your left mouse
button, and press the Delete key.
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_____________________________________________________________________________________
_______________________________________________________________________________
Page Breaks
A page break is a point where you wish your separate your text on one page and push
the rest of text to the next page. When you create a page break, nothing else can be
typed on that page. You can create a page break after one word or line of text, or even
five lines or 50 lines of text. Page breaks are useful if you only want certain amount of
text, like a heading or statement on that page by itself. You do not want other text
getting on that page.
A. Click on the location in your document where you want to create a page break
B. Go to the Insert Tab in the ribbon.
C. Under the Pages options group, locate and click the Page Break button.
Text Alignment
Word-wrap
Word wrap is a useful feature in your word processor that allows text to flow to
the next line as you type a paragraph. This is different from typing a heading
with one or two words where you would press the ENTER key to separate the
heading from the rest of the text on the document.
NB: Word-wrap allows words to automatically move to the next line if the
previous line is full.
Margin
This is the space between the text and the edge of the page. There are four
margins on a page: left, right, top and bottom.
Microsoft Word 2007 makes it easy to set your margins all at once:
OR
Default setting
Default settings are a standard set of features whenever you open a word document.
For example, every time you open a new Word document, the default setting would
be, font Calibri, font size 11, Align left, letter size, etc.
Text in your document may typically be in Times New Roman with size 12.
Other font types are:
Comic Sans
Courier
Ariel
Page break
Page number
Alignment
Align Left Places the text to the left margin
Centre Centres the text within the left and right margins
Align Right Places the text to the right margin
Justify Aligns the text to fit the left and right margin
B. Character formatting
Make text UPPERCASE or lowercase
Select a font style (the style of text) that suits the purpose of
your document
Add emphasis with underlining, bold or italic
Add small characters above or below the main words using subscript and
superscript
To format a block of text, highlight it, and then choose a format option from
the toolbar of your software. Alternatively, you can choose a suitable format
before you being to type.
The default character format is the size and style of text which you begin
with, before you make any changes.
Footnotes and Endnotes are used in the documents to provide references to the
source documents for the document text, to provide more detailed explanations
and definitions that might otherwise distract the reader if left in the main body
of the document.
NB: A footnote appear at the bottom, of a page and an endnote appear at the
end of the whole document.
Method 2
To add multiple documents:
You will notice that you can also use the Clipboard group on
the Ribbon.
Rearranging Blocks of Text
To rearrange text within a document, you can:
With the block of data selected, you can use the BACKSPACE and DELETE keys on
the keyboard to delete the text.
Note the difference between Backspace and Delete:
Undo Changes
To undo changes:
COLUMNS are usually used for easy reading in magazines or newspapers. The
information flows from the first column on the left side of the page down to the bottom
of the page and continues at the top of the next column to the right and down
that column. Sometimes, there are three, four or more columns on a page
To insert columns in a word document:
1. IF you have text in your document that you would like to place in column, first
select that text.
2. Go to the "Page Layout" tab on the
toolbar ribbon.
3. In the 'Page Setup' group, select the
'Columns' option.
4. Choose the number of columns you
wish to have
5. Your selected text will be placed in
columns, or the text you type will be
kept in the column format
Tables
Sometimes you want to arrange your data in a
different way from the usual paragraph.
Creating a Table
You can type data in each cell by selecting the cell and then
typing your information.
Click the table and notice that you have two new tabs on the Ribbon: Design
and Layout. These pertain to the table design and layout.
On the Design Tab, you can choose various borders or different styles for your
table.
To format a table, click the table and then click the Layout Tab on the
Ribbon. This tab allows you to do much more than the Design tab.
Here you can insert or delete rows and/or columns, merge cells into one cell,
and even split a cell into more than one row or column.
You can also access the thesaurus by right-clicking any word and
choosing Synonyms on the menu.
The figure above shows some of the items that you might be able to add to your
document.
Picture: You can insert a picture from a file. This might be graphic you have
created yourself, or one you have found (for example, on the internet).
Clip art: Clip art is a collection image samples provided for free use with word
processing software. Often there is a key word search so you can find the clip
you want.
Shapes, Chart and Smart art: Features like these allow you to create graphic
images, such as simple diagrams, within the word processing system.
Form other software: You can often import items from other software
applications, such as a spreadsheet. If the software is made by the same
company as your word processing software (for example, all Office products
made by Microsoft) then you can use „Cut and Paste‟.
When you have inserted a picture or other item into your document you must
carefully position it. Formatting features allow you to „flow‟ or „wrap‟ text around
the image, so that none of your words are covered up by the picture.
IMPORTING GRAPHICS
Your word processor usually includes a library of clip art images that you can insert
into your document if you do not have your own graphics to include in your
document. Inserting pictures is useful to illustrate what you may have written.
1. Make sure the cursor is at the location in the document where you want to
place the clip art or picture
2. Click on the INSERT tab
3. In the Pictures group, choose Clip Art or Picture
4. Make a selection
Safety features
Some of the documents you create can be very important. When you create a
document it is saved as a file. If something goes wrong and the file is lost, this can be
an issue.
For this reason many word processing applications offer „safety features‟ that make it
less likely you will lose your work.
Auto save:
Sometimes a Microsoft Office program closes before you can save changes to a file
you are working on. Some possible causes include:
1. A power outage occurs.
2. Your system is made unstable by another program.
3. Something goes wrong with the Microsoft Office program itself.
Although you can't always prevent problems such as these from happening, you
can take steps to protect your work when an Office program closes abnormally.
If you turn on „automatic save‟ the computer will save your document periodically
(this depends on how you set it, for instance, you can set it to auto save every 5
minutes or every 10 minutes) while you are working. It saves it in the background –
you wouldn‟t even notice it happening.
Backup:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________
Password protection:
METHOD 1
Sometimes, a report is prepared by more than one user, where several persons can
make changes to that one document. All the changes can then be reviewed and
compared to the original until the final changes are approved. Here is part of a report
that was shared with some users:
Note that you will not notice any marks on the document
until you make you first insertion, deletion or change in the
document.
The document below shows the changes that are noted in a document:
If you can't see a Mark-up Area then click on Show Mark-up from the Tracking panel.
From the Show Mark-up menu, select Balloons then Show Revisions in Balloons:
(B) Presentation
A presentation
In many different jobs people are asked to give presentation. A presentation typically
takes this structure:
A person stands in front of a projections screen or electronic whiteboard.
A series of slides appears on the screen.
The person speaks on the subject of each slide.
Some speakers also prints out the slides and give them to the audience.
The main purpose of using presentation software is to share concepts, images, graphs
and other ideas among small groups or large audiences. They can also be used as
image/video slideshows for advertising or to provide information in waiting rooms, at
airports, or at conferences or fairs.
Presentation software such as Microsoft PowerPoint, use slides that can be projected
on walls or other flat surfaces using a projector. Usually the presentation is
projected on large screens so that those
who are not near to the presentation can
still follow the proceedings.
Here are some short notes to help you when you create your presentation:
B. Fonts
• Arial provides easier reading when used in the body of the slide
• Use 24 point or larger is good for those viewing the presentation from a distance
• Use normal 'Capital and Common Letters' so that your audience can read your
information
• Use words in CAPITAL for emphasis but try not to use more than seven words
Colours can encourage, motivate or cause some emotion or reaction from the viewer of
the presentation. Let's see what the use of colours can create:
YELLOW – is a bright, cheerful and stimulating colour that can start actions and
ideas. It should NEVER use as background colour!
GRAY – represents neutrality, and even a lack of commitment. It can be used when
the audience needs to make a decision
Wizards
When most people think of a wizard, they think of an old man with magical
powers.
Templates
A template is a pre-formatted document that has already been created. It can
be used over and over again.
Slides
A slide is a single page of a presentation
created with software such as PowerPoint
or OpenOffice Impress. A presentation is
composed of several slides.
The slide layout determines what PowerPoint elements will be displayed on the
slide, such as graphics, text boxes, bulleted lists and charts. You can view various
slide layout by choosing Format, Slide Layout... from the menu
Slide layouts positions and formats content that appears on a slide. Again this
content includes:
A title Slide
So what is a template? A template comprises one or more files that offer the option to
include different colour schemes and layouts in your presentation so that the slides
can be consistent and helps your presentation to be professional. That means that:
When you use a template to create new presentations, your slides will generally
have some consistent formatting as well.
You will have access to many templates that have standard colour schemes,
backgrounds and font styles.
So templates tend to give you a starting point and hopefully will make it easier to
complete your presentation quickly. You can even modify a template's content and
design, add a logo, your own images, or delete text or other content from the template.
If you want to change individual aspects of your slide, then the Design tab is the place
to go.
In the Design tab, there are a series of choices that allow you to change the look of
your slide
Page setup: This allows you to adjust margins for your slides
Orientation: You have the option of using landscape or portrait orientation for
your slides
Themes: This gives you various design options for your slides so that they have
a uniform look and feel.
Colours: Pre-formats the colour of different elements of the slide. You can make
your own by choosing Create New Theme Colours... at the bottom of the
dropdown box.
Fonts: This option gives you choices of fonts, but for more features such as font
sizes and text formatting such as bod, or italics, it is best to use those features
in the Home tab / ribbon
Background Styles: Allows you to include a background to your slides, or you
can remove Background Styles (Hide background graphics) by clicking the
checkbox
Bullets:
______________________________________________________________________________
______________________________________________________________________________
______________________________________________________________________________
_________________________________________________________________________
Slide Views
Presentation software gives you several different views of the slides you have made.
The normal view is the main screen that shows the content of one slide, with a
left-hand bar showing small images of all the other slides in the presentation.
You can also view the Slide Master.
Home-work
Find out more about Slide Master.
The Slide Sorter view shows all the slides in the presentation as small pictures.
You can drag the little images about on the screen, to organise them into
whatever sequence is best. You can also cut and paste the slides into new
positions.
You can also choose the Notes Page or the Notes View. This view shows the
slide content at the top of the page, with space underneath to type notes and
reminders about what you want to say as you show each slide.
the date that the presentation was created or to show the current date that the
presentation will be delivered
inclusion of a logo or company name on each slide
the name of the presenter on each slide
to automatically place a slide number on each slide
The slide master allows you to insert content that will appear in every slide of your
presentation.
When you open the slide master view and type text, this text will appears on every
slide.
For instance, you might want every slide to have a header with your name, and
the topic of the presentation. You might wish to include a slide number (similar to
a page number in a document), or special messages such as confidential
information.
While you are preparing your presentation, you may need to make some notes to
remind yourself on certain words or topics to mention during your presentation.
PowerPoint gives you this option to write your notes
while you create your slides. The text box below the
slide in the main window area that says "Click to
add notes" is just to area for your notes.
Slide Transitions
Transitions are effects that allow you to move from one slide to the next during
your presentation.
Slide Animation
This allows you to animate any of the content items on any slide. That includes
text and images. You can make items appear, disappear, or you can change the
emphasis of items.
Categories of Animation:
1) Entrance effects: These are applied to the items as they appear on the slide.
Examples: Appear, Fade in, Fly in, Zoom etc.
3) Exit effects: These effects takes the items off the page; make them disappear.
Examples: Fly Out, Fade, Zoom, Random Bars, Shrink and Turn etc.
When you select the effect(s) you want, you need to choose how you want the
effect to start. It can start automatically or by clicking the mouse.
Inserting a Picture
To insert a picture, you can use a new or current slide. In this example, we will use a
new slide.
Home-work:
Inserting slides
Deleting slides
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
Information Technology Workbook on Section 1-8 Page 199
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
________________________________________________________________________________
_____________________________________________________________________
So you have created a presentation and now you need to review it and tidy it up.
This can be achieved by viewing your presentation in about five ways. Let's look
at each one:
Normal View
In Normal View, you can see the miniature slides on the left, the slide in the centre
and Notes on the bottom for any comments that you wish to make about the
particular slide. When you are in Normal View, you can also switch between your slide
and its outline as the tab are next to each other.
You use the Normal view to view the slide by clicking on the actual slide.
Also in Normal view, you can use various scroll bars, or move through slides
using the scroll bar using the Previous or Next Slide button.
In slide sorter view, you can see your entire presentation so you can easily add, delete,
and move slides. To move to switch to slide sorter view, click the Slide Sorter View
button at the bottom right of the window or choose View, Slide Sorter from the ribbon
or menu.
Hide one or more slides so that they will not be shown during the presentation.
Slide show view is used to display your presentation in its final form. This is where the
contents of your slide show are viewed in sequence. Note:
Click the screen to move through the slides. You can also move from one slide
to the next by the click of a mouse, pressing the spacebar, or by using the left
and right keyboard arrow keys.
To stop the slide show press the ESC key on the keyboard.
In notes page view, you can type notes to use during your presentation (left screen
shot), view or print a copy of your notes for reference (right screen shot). To switch to
notes page view, click the Notes Page View button or go to View and choose Notes Page
from the ribbon or menu.
To add such items as a company logo or formatting you want to appear on every slide,
notes page, or hand-out, make your changes on the appropriate master. To switch to
master view, choose View, Master > Slide Master from the menu.
After you have created your slides for presentation, you can run your slide show
using one or more of the following methods to see how your work.
Once your slide show starts (you should see it on your screen), you can use some
of the following features to advance to the next slide, return to the previous slide
or even to exit the presentation:
End the slide show and return to PowerPoint. Press the Esc key.
To meet your needs, there are several different ways in which to print your
presentation.
A person who wants to share content on the internet will upload the content to a
server.
People using the internet can connect to the web server and download the content.
Upload:
___________________________________________________________________________________
___________________________________________________________________________________
___________________________________________________________________________________
Download:
___________________________________________________________________________________
___________________________________________________________________________________
___________________________________________________________________________________
Web browser: This is the software you use to connect to the internet.
Examples: Internet Explorer, Mozilla Firefox etc.
Web page: A web page is a document that appears in the browser window. It
includes text, images etc. This content is downloaded from a web server.
Every web pages has an address called a Uniform Resource Locator (URL). When
you type the URL into the address bar of the web browser, the software will:
Connect to that URL
Download the content from that URL
Display it on the screen of your computer.
Domain name: The URL is the address of a web page. The first part of a URL is the
letters: http://
This stands for „hypertext transfer protocol‟. This is the communications protocol for
the internet.
The domain name identifies where the web page is hosted and who controls or
owns the website.
The URL of a web page is the domain name, followed by a forward slash and the
name of the page.
For example: The domain name for the International Cricket Council (ICC) is:
http://icc-cricket.yahoo.net/
The address of the ICC web page about women‟s cricket is:
http://icc-cricket.yahoo.net/match_zone/women_cricket/
With the click of a button, customers can forward your website information to others,
or others can send their contacts to your website. Also viewers of the website can
make contact with you when viewing the website.
2. Use a style of language suitable for your audience. Children might prefer simple
language; older people might prefer more formal language.
3. If your audience is familiar with the internet, you can use more complex
interactive facilities.
Pages
A website is made up of pages. All the pages have the same domain name.
When planning website you must plan how many pages it will have and what
content should go on each page.
For instance, if a school sets up a website there might be a page for each class in
the school.
Home page – The home page is the page you see when you first connect to the
website. It is the default page. If you type only the domain name then you will
connect to the home page.
The home page will typically have: Hyperlink
o Introduction to the site or a general This is a connection from one
description website to another.
o Hyperlinks to other pages on the website.
Hyperlinks are sometimes called
There might not be links to every page from the home links and are shown as highlighted
page, if there are a lot of pages on the site. text.
For example, an organization website might have When you click on the hyperlink,
links to a page for each department in the school. On the browser will connect to the
each department page there might be links to the linked web page.
pages for each pupil in the class.
You want your website users to be able to find the content on the site.
Sometimes a website has a page of links to site content. This might be called
an index page or a menu page.
Another option is for the site to have a menu bar with links to the main areas
of the site.
Other sites have a search box. You type in the topic you are interested in, and
the site search engine will link you to the right page.
The design of the website includes considerations such as the colours, fonts and
images that you will use.
The layout of the website includes issues such as menu bar, the use of white space
and the use of images.
HTML
Web pages are written in a computer language called HTML. This stands for
Hypertext Mark-up Language. Hypertext is text that includes link and other
features found on web pages. Web browsers software (such as Internet Explorer)
can read HTML. The HTML tells the web browser what to display on the screen.
HTML used tags which are enclosed in angle-brackets (<>). When the HTML is
read by a web browser the tags do not appear. But they tell the web browser
what to do. HTML can be used to set text features and include images.
However, it is more common nowadays for all the pages on a website to use a
common template or style sheet. A standard layout is chosen, together with the
deign choices such as colours and background.
The people creating each page enter the text and A web authoring package is
other content, and a web page is created which specifically designed to allow
puts the page content into the standard site layout you to create web pages and
and design. web sites.
If you want to include an image on a web page, the file with the image must be
stored on the web server. The page will include HTML commands that instruct
The web authoring software will allow you to specify where the image will appear
and how the text will wrap or flow around it.
Thumbnail
A link to a web page or to a photo or other image can be shown as a tiny picture,
no bigger than a thumbnail.
These „thumbnails‟ work as hyperlinks. Click on the thumbnail image to see the
full size picture, or to go to the web page.
Entering links and thumbnails: As long as you know the URL or file location that
you want to link to, web authoring software provides the facilities to create all
types of hyperlink.
What is a hyperlink?
This is a connection from one website to another. Hyperlinks are sometimes
called links and are shown as highlighted text.
When you click on the hyperlink, the browser will connect to the linked web
page.
4. Linking to user-created files – You can link to images and other files, as long
as they are stored in a location that is accessible by other internet
computers.
You should test the web page at every stage of the process, both before it is
uploaded and after it is published. Make notes about the results of your tests
and make any changes to the web page.
Information Technology Workbook on Section 1-8 Page 211
Your web authoring software will give you the general impression of what the
final web page will look like but it isn‟t until you have published and tested it
that you will know for certain that it looks and functions just as you want it to.
Use of a web browser: There are several different web browsers available. They
handle HTML files slightly differently. You should make sure that the page
displays correctly using all common browsers.
Verify that all the hyperlinks work correctly: Your webpage will include one or
more hyperlink. Test a link by clicking on it and making sure it connects to the
right web page. Also test any other online function such as email and video clips.
Use a test audience: When you begin planning the web page or site you chose
the audience for the site (for example, people with a particular interest,
children). This is the target audience for your site.
Ask people in your target audience to test the site. They should try it out,
looking at the content and using the functions. If they find it difficult or
confusing to use then the site needs to be made simpler.
Domain names are divided into groups called Top Level Domains (TLDs)
according to the final letter of the domain name, such as .com or .net. The final
code tells you the country or the category of the website.
A domain registry keeps a database of all domain names in that TLD group.
Registries charge and annual fee for giving a domain name to a user. People
and organisations can register a domain name directly with the registry, or via a
web hosting service or other computer company.
IP Address
Every website has an IP address (IP stands for Internet Protocol). The IP address
is a long and complex number. A domain name is much easier to remember
than an IP address. When you register a name it is linked to your IP address so
that anyone typing the domain name in their web browser will connect to your
website.
Upload content
When an individual user wishes to publish a web page the HTML files of web
pages, and any other files such as images, documents and other items, must be
When Internet users want to view your website, all they need to do is type your
website address into their browser. Their computer will then connect to your
server and your webpages will be delivered to them through the browser.
Most hosting companies require that you own your domain name in order to
host with them. If you do not have a domain name, the hosting companies will
help you purchase one.
Web hosts are companies that provide space on the web server with internet
connectivity.
The most basic service will give you a simple web page to upload your content.
May Internet Service Providers (ISPs) offer this service free to their subscribers.
Personal website hosting is generally quite inexpensive. Business website
hosting can cost much more because businesses often want larger websites,
with more services.
The web hosting services might also provide help with managing the website
and other services such as email. Some hosts specialise in certain services
(such as e-commerce).
SPREADSHEET
7.1
Purpose of a spreadsheet
A spreadsheet is a table consisting of cells that holds accounting or financial data and
simulates the traditional physical spreadsheet; it captures, displays and manipulates
data.
Well years and years ago, and even still today in some businesses, accountants use a
special paper to 'balance the books'. This was to keep track of who owes the business
money and what money the business owes to others. This information was kept in
books like a ledger, shown below:
What is a spreadsheet?
Spreadsheets can help companies to create and store their financial transactions as
well as help them forecast trends. This has made spreadsheets more useful than for
only for performing calculations. Spreadsheet have therefore become an important
business tool in an organization.
Since the first popular spreadsheet program VisiCalc (compressed form of the phrase
"visible calculator") was introduced in 1981, many spreadsheet software applications
were created, including:
Teachers - Teachers use spreadsheets to store marks for homework and exams.
Sales people - Sales people keep track of the products and services they sell, to see
how well each item is selling
Market researchers - Market researchers collect data from shoppers about their
spending habits and their awareness of different brands. All of this data has to be
collated and analysed in order to provide the company with a detailed report of what
customers think about their products
The best way to learn about an application is to use it - click on different areas and
menus and icons to see what they do. Play with the application. However, since this is
a syllabus, we have some terms and notions commonly used with spreadsheets.
Useful terms
1. Formula bar: the horizontal area beneath the toolbar and to the right, where
formulas are displayed when they are entered and whenever a cell containing a
formula is selected. In the example at right, cell A4 contains the formula
displayed in the formula bar.
2. A formula is an expression that you enter into a cell. This formula performs
some calculation and places the result in the cell.
3. Sheet tabs: the tab-like entities at the bottom of the workbook area, designated
by “Sheet 1”, “Sheet 2”, and so forth, as shown here. Clicking on a tab causes
the named sheet to be displayed. The active sheet tab is the one currently
selected, here Sheet 1. Note the tab scrolling buttons to the left of the tabs;
these cause the currently displayed set of sheet tabs to be rotated to the right or
left.
4. Vertical scroll bar: in the example above, the bar at the right-hand edge of the
Excel window, used for scrolling up and down the sheet; similarly
the horizontal scroll bar is used for right- and left-scrolling.
Values: These are purely numerical data that can be used in calculations. If you
type any number into a spreadsheet cell then it will be treated as a value.
Labels: These are all other types of data, entered as titles and headings. If you type
anything except a number into a spreadsheet cell then this will be treated as a
label.
Formulas
Formulas begin with equal (=) sign before a formula, so that Excel recognizes
what you are entering as a formula. First, select the cell that you want the
Range: A range is a group of connect cells. You can select it by dragging the mouse
pointer from the top left to the bottom right of the selection. The range is identified by
the address of the top-left and the bottom-right cells in the range.
Understanding Ranges
Naming Ranges
Naming a cell or a range of cells is a very useful tool. Let's explain through an
example.
Suppose we have a formula that calculates a Total Income by an Income Tax Rate, and
is shown in a cell as:
=G12*K15
Looking at this formula tells us, that it is, just that, a formula. It however does not tell
us anything about the data in cells G12 or K12 or what they mean. So, we weeks from
now, or three months when you look back at the formula, it would be worst in trying
to remember what it meant.
Now, if we named the values in these cells, it may make a bit more sense. If we named
G12 as Total_Income
and
K15 as Tax_Rate
Then the formula in the cell would be:
Assigning a Name
1. Highlight the Excel range you wish to name. In this example it is cell E1.
2. Go to the NAME Box where you normally see the cell address such as A1. Here in
the example below, you will see E1 in the name box since that is the active cell that is
selected.
You can also find a range of data or a cell that has been named by clicking the drop-
down arrow a little to the right of the NAME box and selecting your range name.
1. Your range name must not contain any spaces. This means CourseWork or
Course_Work is correct, but Course Work will give an error.
2. Your range name must not be a cell address. This means you cannot use E1 or
D2 or H12 as a range name.
3. Names must not be longer than 253 characters. This makes sense as you would
want short meaningful names anyway!
If you want to see all the defined names for an Excel 2007 workbook, you can find a
listing.
You want to save some money to buy a gift for a family member. So you start a small
job to get some extra money. As you count the money for each day of the first week,
this is what you have saved:
Day Amount
Monday $72.56
Tuesday $120.45
Wednesday $187.43
Thursday $143.69
Saturday $87.93
Sunday $92.12
So, let's find out how much you have worked for in the first week and also how much
you worked for, on average.
Now click the Average option. Because the answer is going in cell B9, make sure your
select cell B9 as the active cell. AutoSum option is useful when the data is in the
same row or column. But when it's not, you have to specify the range of cells to
calculate.
Library panel. From the Function Library panel, click on Date & Time:
As you can see, there's quite a lot of Date and Time functions! The Date from the
menu, and you'll get the following dialogue box:
=DATE(2013, 4, 15)
Between the round brackets of DATE, the Year comes first, then the Month, then the
Day.
If you want to format your date as say Monday 15th of April, then you need to click on
the Home tab from the Ribbon at the top of Excel. Locate the Number panel, and
you'll see Date already displayed:
Assignment
Maximum: Finds the largest number in the range.
Example: =MAX(A3:A10)
Minimum: Finds the smallest number in the range.
Example: MIN(A14:A20)
If you are using a spreadsheet with questions such as 'Did the student the English
test?', 'Is the cricket match today?', 'Did I Pass the test?', - or more suitably - 'Is the
mark greater than 50?', then most likely you will be using an IF statement.
The thing to note here is the three items between the round brackets of the word IF.
These are the parts that the IF function needs. So let us look at the example, 'Did the
student the English test?'
(Make sure you have all the commas and double quotes in
the correct place, otherwise Excel will give you an error
message. Remember, greater than operator (>) is known as
a Conditional Operator.)
Suppose you change the number in cell B2 from 62 to 42, look to see that the function
still works to update the response.
=VLOOKUP(code,range,colomn)
Range: Where you see range enter the range of cells that contain the data records.
Column: Enter the number of the column that you want to take the data from – for
example, you might want to extract the student‟s surname. If the surname is stored in
column 2, enter the number 2.
Operator Meaning
+ Addition
- Subtraction
* Multiplication
/ Division
Formulas begin with equal (=) sign before a formula, so that Excel recognizes what you
are entering as a formula. First, select the cell that you want the formula to be
entered. This cell will also be where the result will be seen. The table below shows
some examples of formulas
Excel Formulas
A formula is a set of mathematical instructions that can be used in Excel to perform
calculations. Formulas are started in the formula box with an = sign.
References: The cell or range of cells that you want to use in your calculation
Operators: Symbols (+, -, *, /, etc.) that specify the calculation to be performed
Constants: Numbers or text values that do not change
Functions: Predefined formulas in Excel (Such as SUM, MAX, MIN)
Combining Arithmetic Operators: The basic operators you've just reviewed can
be combined to make more complex calculations. For example, you can add to
cells together, and multiply by a third one. Like this:
= A1 + A2 * A3
Or this:
= A1 + A2 - A3
And even this:
=SUM(A1:A9) * B1
In the last example above, the function and formula adds the numbers in the cells A1
to A9, and then multiplies the answer by B1.
To create a formula
In spreadsheet the symbol ^ is used to stand for „the power of‟. So to calculate for 5 3 you
would enter the formula
=5^3.
Brackets: Brackets can be added to complex formulas. The calculation inside the brackets
is carried out first. This is the same principle that you have learned in Maths.
The square root of a number makes that number, when it is multiplied by itself.
The square root of 4 is 2. That is because 2×2=4.
The square root of 25 is 5. That is because 5×5=25
It can be hard to work out square roots. Spreadsheets make it easy. The function to
calculate a square root looks like this: =SQRT(input)
The function begins with an equal sign, then the label SQRT, then brackets. All
spreadsheet function looks like this. Only the label is different for each different
function.
=SQRT(25)
would give you the square root of whatever number was in C4. If you changed the
number in cell C4 then the result of the function would change.
To include a cell reference in a function you can either type the cell address as letters
and numbers, or click on the cell while you are typing the function.
Copy and Paste: You can use the familiar Copy, Cut and Paste tools when working
with spreadsheets. Spreadsheet software lets you Copy and Paste labels, values and
other items such as formulas and functions.
Fill: As well as Copy and Paste from one cell to another, spreadsheets allow you to
copy contents of a cell to all the cells below it, or to the right, with one simple action.
This is called „Fill down‟ or „Fill right‟.
„Fill‟ is carried out using the „Fill handle‟ at the bottom right of the selected
spreadsheet cell.
Relative Cell Reference: A cell reference that changes as it is copied is called a „relative
cell reference‟. All cell references in all the formulas and functions of a spreadsheet are
relative cell references by default.
Relative cell references are useful when you want to carry out the same calculation
many times, using different data. Adding up a student‟s test results is one example.
Using a spreadsheet you can set out the data. Typically each set of data is entered in a
different spreadsheet row.
First work out the right formula to use in the first row of the data, and then you can
copy the formula down to all the other rows. Because of relative cell references, the
formula will change in every row, to give you the results you want.
Absolute Cell Reference: If you do not want a cell reference to change when a formula
is copied, you can turn it into an absolute cell reference. To do this you put a dollar
sign $ into the cell reference, in front of the column letter or row number. Then it
would not change.
$B$6 Is an absolute cell reference Both the column letter and the row number are
locked, and neither will change if the formula is
coped to another cell.
So, first of all, why is row and column title locking necessary? How can it help us?
When you freeze the Excel columns, it makes scrolling across to the right to view
lots of data in other columns much easier, because you can still see that first column
at the far left.
When you freeze the Excel rows, it makes scrolling down to view lots of data in other
rows much easier, because you can still see that first row at the top.
1. Click the row number just below the area you'd like to freeze. The whole row should
highlight.
2. Click the cell on that highlighted row to the right of the columns you would like to
freeze. The highlighted row will disappear, but then you now have an active cell
selected.
Inserting a row
Deleting a row
You should click on the column heading (A, B, C, etc) at the top edge of the worksheet.
Hold down [CTRL] if you want to select a set of non-adjacent columns (for example,
data in columns C and E)
Inserting a column
Deleting a column
What is displayed?
Type of data What you type into the cell What is displayed in the cell
Text Formatting
The appearance of each of these can be altered using text formatting. Text
formatting in a spreadsheet is very similar to text formatting in a word processing
package. You can change the font, colour, size and alignment of the characters.
To change the text format, select the cell or cells you want to change, and select text
formatting options from the menu bar at the top of the screen.
Number Formatting
All values in the spreadsheet can be displayed using a range of number formats.
For example, if you entered the value 0.28 it can be displayed in many different
ways.
„General‟ number format is the default, and this will be used if you do not specify a
different format.
Percentage 28%
Currency $0.28
Date Formatting
The NOW function enters the current date and time into the spreadsheet. This is a
function that does not take any input values. Type this in any cell:
=NOW()
The current date and time will be shown. The date and time will update every time you
carry out a calculation on the spreadsheet. You can also enter a date by typing it in.
A range of date formats are available which change the way that the date is shown.
Sorting and Filtering allow you to manipulate data in a worksheet based on given set
of criteria.
Basic Sorts
To execute a basic descending or ascending sort based on one column:
Custom Sorts
To sort on the basis of more than one column:
Click the column or columns that contain the data you wish to filter
On the Home tab, click on Sort & Filter
Click Filter button
Click the Arrow at the bottom of the
first cell
Click the Text Filter
Click the Information you wish to
Filter
Often it‟s much easier to understand data when it is presented graphically, and Excel
provides the perfect tools to do this!
Creating a chart
2.
Find
the Charts category on the
Insert ribbon, and select your
preferred chart type.
Create a Chart
To create a chart:
Select the cells that contain the data you want to use in the chart
Click the Insert tab on the Ribbon
Click the type of Chart you want to create
Modify a Chart
Once you have created a chart you can do several things to modify the chart.
Click the Chart and Drag it another location on the same worksheet, or
Click the Move Chart button on the Design tab
Choose the desired location (either a new sheet or a current sheet in the
workbook)
Chart Tools
The Chart Tools appear on the Ribbon when you click on the chart. The tools are
located on three tabs: Design, Layout, and Format.
Within the Design tab you can control the chart type, layout, styles, and location.
Within the Layout tab you can control inserting pictures, shapes and text boxes,
labels, axes, background, and analysis.
Within the Format tab you can modify shape styles, word styles and size of the chart.
Graphics, such as graphs are used to represent large volume of data, and are quite
useful for the following reasons
Title: The title of the graph must be clear and easy to understand.
Legend: The legend must clearly explain what the colours, lines, or bars represent. A
legend can be placed either at the right hand side or below the chart
Axes: The x-axis and y-axis must be labelled with a word or short phase
Line graphs
Bar chart
Pie charts
Bar charts, also called columnar diagrams, represent immediate comparison of data.
Usually when constructing a bar chart:
(b) All the bars are placed a equal distance from each other
(c) Bars are shaded with colours or patterns to make them distinct for comparison.
(d) It is advisable to arrange the given data set in an ascending or descending orderare
drawn using columns.
A spreadsheet file can contain many sheets of data. Each sheet is called a „worksheet‟.
A collection of worksheets is called a „workbook‟.
At the bottom of the spreadsheet you will see tabs linking to the other worksheets that
are available.
A cell address that refers to a cell in another worksheet includes the name of the
worksheets plus an exclamation mark. Like this:
Sheet1!A2
=A4+B4+C4
A formula using data from several worksheets might look like this:
=Sheet1!A4+Sheet2!B4+Sheet3!C4
Multiple worksheets are used when summary results need to be put together from
different collections of data. Each collection is held on a different worksheet.
Just like inserting pictures, SmartArt etc. on Microsoft Office Words, Spreadsheet allows
you to do this also.
Manual Database
Computerized database:
- Hierarchical Database
- Networked database
- Relational database- Microsoft access
Datasheet View: this lets you look at the database as a table, set out in columns
and rows like a spreadsheet
Design View: this lets you look at a list of all fields in the table, with the data
type of each field.
Can be stored
Quickly found(retrieved)
Modified
Deleted
The rows of the table are database records. Each record stores all the
information about a particular item or person(called an „entity‟)
An entity is anything you want to store information about. An item, a place or
even an event can be an entity.
The columns of the table are database fields. Each field stores a single item of
information ( called an „attribute‟).
An entity has attributes. These are the facts you know about the entity.
Record
A record stores all the information about a single entity.
In a typical database table all the information is shown as single row of the
table
Every record in the table has the same fields in the same order
A record is sometimes called a Tuple in computer jargon whereby records may
appear more than once.
Fields
A field stores a single piece of information, also called an attribute. In a typical
database table, a field is shown as a single column of a table, the name of the field will
also appear at the top of the column and every field has its own data type.
Data types
The data type determines what kind of data can be entered as well as what operations
the database can perform with the data.
Main data types of fields:
Properties
Properties determine how a field is stored, works and is displayed. Access
automatically assigns default field properties to each field, depending on the data type.
The following are a list of properties:
Field Size
This property specifies the number of characters you want the field to have. It is
usually applied to text or number fields.
Format
This (optional) property determines the way the field is displayed or printed.
- Text and Memo Format
- Number Format
- Date Format
- Currency Format
Examples:
John Text
http://www.contoso.com. Hyperlink
Caption
This is a label other than the field name that can be used in forms and reports.
Default Value
Validation Rule
This specifies the condition that limits the value that can be entered into the field
or the requirements that must be met. For example, „< > 0‟ the value must not be
equal to 0.
Indexed
The following are principles that must be taken into account when designing a
database:
There must always be a way to identify every record in the database, so that the
user can find information
Data must be stored in a standard way throughout the database
Each item of data should be stored only once.
The Primary key- Most database tables include a primary key field which stores
a unique value. The primary key is often a code number which identifies each
entity in the database. In a school, students might have a „student number
which appears on a card that they carry. The primary key is usually the first
field in the table.
Alternate Key- if there are other field as well as the Primary Key field which
could be used for the same purpose, these are called alternate key fields.
Composite Key- Sometimes database designers decide to do without a primary
Key and use a composite key instead. A composite key is made by taking values
from more than one field, to find a unique way of identifying each record.
Candidate Keys- Together, all these keys: the Primary key, Composite Keys and
alternate keys of the database are called „Candidate Keys‟. There are always
possible ways of identifying the records I the database.
Other types of key- Some key fields are used for other purposes in a database.
Two examples of such keys are:
Secondary key- As well as the Candidate keys, a database designer might
define a secondary key. This is not necessarily unique for each record in the
database, but is very useful when you need to find a record. It might be used to
sort or reorder the database.
Foreign Key- are keys that are used to link together different tables in a
relational database.
Relational Database
A principle of good design is that a table should hold information about any one
type of entity. All the records in one table have exactly the structure and are made
up of the same fields. Each record in the table stores information about another
different entity, but all the entities are of the same type.
Another principle of good database is that each piece of information should be
stored only once in the database. It is easy to see why entering the same piece of
information in several places is a waste of time and there is chance to make a
mistake.
If you put these two principles together then you can see that most databases will
need more than one table.
Example:
Each table has a Key Field: a code that uniquely references each record in the table. It
is the first field in each table for example the field „Transaction code‟.
Relations between tables
Instead of recording all the information about a customer and every time they rent a
car, the clerk only has to record the customer code and the car number. Using the
code is enough, because each code links back to a unique record which has all the
other details you might need.
NB. The customer code and the car number are foreign keys in the transaction, they
are primary keys brought into another table to make a link between the two tables.
One-to-many
Each use of a foreign key makes a link between tables. One-to-many relationship is
the most common way of linking tables together in a database. For example, each car
might be rented many times, so once again there is one to many relationships.
Queries
A query selects records from one or more tables, based on specific criteria. This
resulting set of records can be viewed and analyzed and sorted. Any changes made to
the tables will automatically be updated in these queries.
There are several types of queries:
Select query: which extracts data from tables based on a criterion or specified
value.
- Calculated field
- Summary
Action queries
- Update query
- Append query
- Delete query
- Make table query
Calculated fields
To find the overdue amount then you will have to go on an empty field and type the
new field name- Overdue, then followed by a colon (:) and relevant operators and
expressions
Overdue: [daysoverdue]*[Overduerate]
Forms
A Form is a graphical representation of a table. It allows you to create a more
aesthetically pleasing display for data entry.
You can add, update and delete records in the table from the form. You enter the data
you are looking for into the form and any records that match this are then displayed
on the screen.
Searching
Features such as „query‟, „find‟, „extract‟ or „filter‟ are mostly used but in access to
search for specific information. The Query feature offers many different search
functions to the user.
Searching by Criteria
When searching for data you typically have to specify a search criterion.
Relational Operators
The search criterion will typically specify the name of a field and the content to be
searched for in that field. Search criteria basically make use of relational operators
such as =, <, >, < >. Example to find if a library has a copy of the book smile orange
then the query to be entered is Book Title= „Smile Orange‟
Logical operators
Search criteria can be combined using logical operators such as AND or OR. For
example, the librarian might want to know not only whether the library has a copy of
Smile orange but also whether it is currently out on loan. The search query maybe:
Book Title = „Smile Orange‟ AND On loan= „N‟
When creating a database report, you select which fields you want to include, rather
than just too simply print out a data table. This will help to make your report neater,
simpler and easy to read.
Filtering
When you create a database report you can filter the database, so that only some
records are shown. In many database systems the report feature is combined with the
search feature. The software searches for records that match the search criteria and
only these records are included in the report.
Sorting
To specify a sort, typically you select a field and then specify whether the sort should
be ascending or desending.