Palphlrt Form 3 Only -Computer Studies
Palphlrt Form 3 Only -Computer Studies
R. MALEMBA
ST. PATRICK’S SECONDARY SCHOOL
2024 EDITION
Page 1 of 165
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
TABLE OF CONTENTS
Page 2 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 3 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
COMPONENTS OF SPREADSHEETS
i. Worksheets
ii. Database
iii. Graphs
i Worksheet
➢ A worksheet is a work area that is made up of rows and columns where data is entered
➢ Each row is labelled with numbers (1,2,3,…) while columns are labelled with letters
(A,B,C,…) as shown below:
Page 4 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ii. DATABASE
➢ A spreadsheet database is a collection of related data items or records.
➢ A record is made up of distinct data elements called fields that together form an entity.
➢ An entity is something of interest such as a person, a place or item.
➢ For example, a student is an entity of which can create a record containing first name, last
name, gender and date of birth fields.
➢ Assuming that the worksheet holds these details for many students, row after row, the
worksheet can be considered as a database consisting of records that may be organized by
sorting, searching or querying
iii. GRAPHS
➢ A graph is a pictorial representation of the relationship between two or more values on a
worksheet.
➢ In most spreadsheet, graphs are referred to as charts.
➢ A chart enables the user to present complex values from a worksheet in a simple, easy to
understand format.
➢ Examples of charts include: pie chart, line carts, column chart and bar chart
USES OF A SPREADSHEET
➢ Some of the uses of a spreadsheet include
i. Arranging information: since worksheets are made up of rows and columns, data can
be entered and organized automatically into printable tabular layout
Page 5 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ii. Preparation of budget: a spreadsheet is used to prepare budgets and other accounting
documents like cash flows and expenditure statements
iii. Interest calculation: spreadsheet is used to compute both simple and compound
interest
iv. Statistical analysis: spreadsheet has tools that enable scientists and other users to
perform simple and complex statistical analysis. Simple analysis includes: computation
of mean, mode, deviation, sum and product. Complex analysis includes computation of
variance, cumulative distribution, regression analysis etc.
BENEFITS OF ELECTRONIC SPREADSHEET
➢ Electronic spreadsheet offers various benefits over manual spreadsheets. These include:
i. Electronic spreadsheets enable computations to be done fast, accurate and efficiently
ii. Electronic spreadsheet offers a large virtual sheet for data entry and manipulation. A
manual spreadsheet has only 30 columns and 51 rows where as electronic spreadsheet
has at least 255 columns and 255 rows.
iii. It is easy to enter data in the worksheet because most spreadsheet provide autocomplete
and autocorrect features.
iv. Electronic spreadsheet utilizes the storage space on storage media to save and retrieve
documents.
v. Electronic spreadsheets enable the user to produce neat work because all the work is
edited on the screen and clean copy is produced.
vi. Electronic spreadsheets have better editing and formatting features.
vii. Electronic spreadsheets have inbuilt formula called function that enable the user to
quickly analyse numeric data.
viii. Electronic spreadsheets automatically adjust the result of a formula if the value in a
worksheet are changed. This is called automatic recalculation.
ix. Graphs let the user provide visual representation of data from a worksheet for easy of
interpretation.
DISADVANTAGES OF ELECTRONIC SPREADSHEETS
i. Startup cost including computer and software purchase may be high
ii. Learning how to use electronic spreadsheet requires considerable effort and is mostly at a
cost
Page 6 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iii. Electronic spreadsheet files require to be protected against unauthorized access and
malware like viruses.
GETTING STARTED WITH MICROSOFT EXCEL
➢ Microsoft Excel 2013 simply referred to as Excel is a member of Microsoft Office suite.
➢ Earlier versions of Excel include Excel 97, Excel 2000, Excel XP/2002, Excel 2007 and
Excel 2010.
➢ There are a number of ways used to start Excel. To launch Excel 2013 from the Start menu,
proceed as follows:
Page 7 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 8 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
LABEL
➢ A label is a text or alphanumeric characters entered in a cell.
➢ By default, a label is aligned to the left of the cell and cannot be computed mathematically
➢ A label is usually used to describe a row or column heading
➢ Sometimes, numbers can be formatted so that they can be used as a label by adding an
apostrophe before the number e.g. ‘1990.
VALUES
➢ A value is a numerical number that can be manipulated mathematically
➢ By default, values are aligned to the right of the cell.
FORMULA
➢ A formula a mathematical expression used to perform calculations
➢ A formula starts with = sign followed by cell addresses and operator eg =B3 + D4, add
contents of B3 and D4 and return the sum.
FUNCTION
➢ These are predefined or inbuilt formula
➢ Example of function is =SUM (B3:D4) which add contents of cells B3 to D4
NAVIGATING THE WORKSHEET
➢ The cell pointer in the worksheet shows the position of the current cell
➢ The process of moving the cell pointer around the worksheet is called navigating the
worksheet and can be achieved in several ways:
i. Arrow keys let the user move one cell to the next direction of the arrow key
ii. Tab key moves the cell pointer on a cell to the right
iii. You can directly move a particular cell by clicking the desired cell.
iv. Ctrl + Home keys move the cell pointer to the cell A1
USING ARROW KEYS ON THE KEYBOARD
➢ The up-arrow key moves the cell pointer one row up
➢ The down arrow key moves the cell pointer one row down
➢ The right arrow key moves the cell pointer one column to the right
➢ The left arrow key moves the cell pointer one column to the left
Page 9 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ Pressing shift + tab moves the cell pointer one column to the left
PAGE DOWN and PAGE UP keys move the worksheet one page down and one page up
respectively
BLOCK OPERATIONS
➢ Performing calculations on a worksheet data involves block operations
➢ A block of selected cells in a worksheet is referred to as a range
➢ A range is specified by the address of its top left and bottom right cells or using a name.
CELL REFERENCING
➢ Using cell addresses also called referencing enables Microsoft Excel calculations accurate
and automatically recalculates results of a formula in case the value in the cell change. This
is referred to as automatic recalculation.
➢ There are three types of cell referencing used when creating formula and manipulating cell
contents and these are:
1. RELATIVE REFERENCING
➢ A relative referencing is one that changes depending on its position of reference in the
worksheet.
➢ When you copy the cell that contents relative reference says A3 the reference adjusts to
reflect the new location
➢ For example, =A1+B1 is in cell C1 and is copied to C2, the formula reference change to
=A2+B2
Page 10 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
2. ABSOLUTE REFERENCING
➢ In absolute referencing, the reference is made to a specific address and does not change
even if the formula is copied to another cell.
➢ In excel, absolute referencing is made by placing dollar sign before reference ($A$2)
3. MIXED REFERENCE
➢ This is a combination of relative and absolute referencing on a specific cell address to
make the row or column relative or absolute
➢ For example, in A$3, the row is relative while the column is absolute
CREATING A WORKBOOK AND WORKSHEET
➢ Creating a workbook involves starting the spreadsheet program and entering data in the
cells of the current worksheet.
➢ However, the user can choose to create a worksheet either using the general format or from
a preformatted worksheet called a template.
USING A BLANK WORKSHEET
➢ When a spreadsheet application is launched, it presents the user with a new blank template.
➢ If you wish to create another workbook while the application is still running:
i. Click the File tab, and select New from the drop-down menu
ii. In the New Workbook dialog box, double click Blank Workbook icon.
SAVING A WORKBOOK
➢ The procedure for saving a workbook is similar to that of saving a Word document.
i. Click the File tab the select Save As command. The Save As dialog box is displayed
Page 11 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ii. Select the location in which your workbook will be saved in the Save in box then type
a unique name for the workbook in the File name box. Make sure that the option
Microsoft Excel Workbook is selected under the save as type box. Excel saves the
workbook with .xlsx extension.
iii. Click Save button to save and close the dialog box.
RETRIEVING A WORKBOOK
➢ To retrieve an existing workbook, use the procedure below:
i. On the File tab, click Open from the drop-down menu
ii. Select the location, drive or folder where the workbook was saved
iii. Double click the icon of the workbook you wish to open
CLOSING A WORKBOOK AND EXITING EXCEL
➢ Closing a workbook is the process of closing the current spreadsheet workbook without
exiting the spreadsheet application
➢ On the other hand, exiting Excel is the process of closing all open workbooks and exiting
the spreadsheet application.
➢ To close a workbook and exit Excel, proceed as follows:
i. On the File tab, click Close. Alternatively press Ctrl + F4
ii. To exit from Excel,
iii. On the File menu, click Exit. Alternatively press Alt + F4 on the keyboard.
EDITING WORKSHEET AND WORKBOOK
➢ Editing refers to making necessary modification to a worksheet that has already been
created.
➢ It involves deleting entries, copying, moving, find and replace as well as spell checking
EDITING CELL ENTRIES
➢ There are two methods of editing a cell entry:
1. Using the formula bar: click the cell to display its content and make the changes in the
formula bar.
2. Double clicking: this places the insertion pointer in the cell and then type or modify the
cell.
Page 12 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
i. Position the pointer where the new row or column will appear
i. On the Insert menu, click Worksheet. A new worksheet is added into your workbook
➢ To delete a worksheet:
iii. In the Find What box, type the word or phrase to find
Page 13 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iv. Click the Replace tab and in the Replace With, type the word or phrase to replace the
found word or phrase
iii. On the spelling dialog box, replace or ignore the misspelt words
FORMATTING WORKSHEETS
➢ Worksheet formatting refers to enhancing the appearance of the worksheet to make it
more attractive and appealing to the reader
➢ It essentially consists of resizing column width and row height, changing text colour,
typeface (font), size, style and alignment
ii. Notice that the mouse pointer changes from a cross to a double arrow
iii. Click the mouse button and hold it down so that you can now resize the width of the column
by dragging it to the size you wish. After dragging to the required point release the mouse
button. The column will have a new size
ii. Type a width in the column width dialog box, and then click OK button to apply
Page 14 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ii. Drag the line until the height of the row is as required, then stop and release the mouse
button
ii. In the format cells dialog box, make the formatting specifications that you wish, then click
OK button to apply.
iii. If it is a range of cells, they must be highlighted first before formatting them as a block of
cells
FORMATTING LABELS
i. Highlight the cells that have the text to be formatted
iv. Select the font type e.g. Times New Roman. Other font formatting features like style, size,
underline and colour are available and can be selected
➢ NB: Alternatively, use the formatting toolbar to accomplish all your text formatting needs.
FORMATTING NUMBERS
i. Highlight the cells that have the numbers to be formatted
Page 15 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
NUMBER MEANING
General Cells have no specific number format
Number Used for general display of numbers
Currency For displaying monetary values e.g. $100, MK12
Accounting Lines up the currency symbols and decimal points
Date Displays date in specified format
Time Displays time in specified format
Percentage Multiply the value in the cell with 100 and display it as a percentage %
Text Format text to be treated as a text even when numbers are entered
Custom For number format not predefined in Microsoft Excel
FORMATTING BORDERS
➢ You may need to put a printable border around the worksheet or range of cells to make it
more appealing.
➢ To put a border, proceed as follows:
i. Highlight the range you wish to insert borders. Click Format Cell command to
display the dialog box
ii. Click the Borders tab to specify border option
iii. Click OK button
FORMATTING ROWS AND COLUMNS
➢ Sometimes, data entered in a worksheet may not fit in a cell
➢ Therefore, it becomes necessary to adjust the height of a row or the width of a column.
➢ The default width of a column in Microsoft excel is 8.11 but can be adjusted to any size
between 0 and 255.
➢ This can be done in two ways:
i. Move the pointer to the top heading until the mouse pointer turns a cross, then click and
drag to the required size.
Page 16 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ii. Move the mouse pointer to the row headings of column headings and right click the
click row width or column height.
GLOBAL WORKSHEET FORMATTING
➢ The word global in this context refers to the entire worksheet. To format the entire
worksheet, select the whole worksheet using these two methods:
i. Clicking the triangular symbol at the intersection of column A and row 1
ii. Pressing Ctrl + A on the keyboard
➢ Once the entire worksheet is selected, use the Format Cells dialog box to format the content
USING AUTOFORMAT
➢ It allows the user to apply one of the 16 sets of formatting to a selected range on the
worksheet. This quickly creates tables that are easy to read and that are attractive to look at.
➢ Select a range to make it attractive.
ii. Click Format then select the Autoformat command on the menu that appears. Select a
format from the autoformat dialog box
Page 17 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ There are several techniques for protecting workbook in excel and these are
1. Making a workbook read only: These allows a user to just view the document but not
edit, copy or print the workbook
2. Encrypt using password
3. Restricting access by adding digital signature
➢ To perform all these three:
i. Click File tab, then Info
ii. Click Protect Workbook
iii. Select Mark as read to make the workbook read only, click encrypt with password
to put a password or click Add digital signature to restrict access
Page 18 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
KEYBOARD SHORTCUT
➢ Excel has keyboard shortcut for performing tasks. The following are some of the keyboard
shortcut
Page 19 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ Therefore, to prevent scrolling, you need to freeze or lock the first row or column from
scrolling.
➢ The main reason for freezing the pane is to make certain column or row that contains
headings to be seen when scrolling on large document.
Page 20 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 21 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
2. RELATIONAL OPERATORS
➢ A relational operator returns either true of false depending on the absolute value of the
operand being evaluated
SYMBOL DESCRIPTION EXAMPLE
= Equal to =A2=B2
> Greater than =A2>B2
< Less than =A2<B2
<> Not equal to =A2<>B2
<= Less than or equal to =A2<=B2
>= Greater than or equal to =A2>=B2
OPERATOR PRECEDENCE
➢ If several operators are used in a formula, Microsoft Excel performs the operations in order
shown in the table below
➢ If the formula has operators of the same precedence like multiplication and division, the
expression is evaluated from left to right.
➢ Enclosing part of the parenthesis alters the order of operation by making that part to be
evaluated for.
OPERATORS NAME PRECEDENCE
1. – Negation as -1 1
2. % Percent 2
3. ˄ Exponential 3
4. * and / Multiplication and division 4
5. + and – Addition and subtraction 5
6. =,<>,>,<,<=,>= Relational 6
Page 22 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
i On the Insert menu, click Function. Alternatively, click the fx button on the standard
toolbar.
ii In the function dialog box displayed, select the category
iii In the function list box, select a function.
iv Specify the function argument then click OK.
Page 23 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 24 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
2. STATISTICAL FUNCTIONS
➢ The following are some of the commonly used statistical functions:
1. AVERAGE(): return the arithmetic mean of its arguments. For example
=AVERAGE(A1:C1) will return arithmetic mean of values in a cell from A1 to C1
2. COUNT(): counts the number of cells that contains numeric value within a range. For
example =COUNT(A2:F2) will return number of cell from A2 to F2 that contains
numeric value
3. MAX(): return the largest number from a range of cells
4. MIN(): return the smallest number from the range of cells
3. LOGICAL FUNCTIONS
➢ Logical functions return true or false from an expression.
➢ Examples of logical functions are IF, COUNTIF, AND, OR, and NOT
1. IF(): return a value or a label if a condition you specify evaluate to TRUE and another if
it evaluates to FALSE
e.g. If C5 holds mean score and display PASS if the mean is greater than 50 and
FAIL if the mean is less than 50 or FAIL if otherwise then we can use
=IF(C5>50,”PASS”,IF(C5<50,”FAIL”)) OR IF(C5>50,”PASS”,”FAIL”)
5. OR(): return TRUE if one of the expression returns to true e.g. OR(3-1=2, 4+2=5) will
return to TRUE
6. NOT(): this is a unary operator the reverses the value of a Boolean expression from true
to false and vice versa. For example =NOT(2+2=1) will return TRUE
4. DATE AND TIME
1. TODAY(): Return the number that represent today’s date
2. NOW(): returns current date and time
3. DATE(): Return a serial number that represents a particular date Ms. Excel uses year
1900 as a serial number 1. For example =DATE(107,1,4) returns January 4, 2007.
Year(1900+1070), month =1 and day=4
4. HOUR(), MINUTE() or SECOND(): returns the current hour as number 0 to 23, minutes
0 to 59 and seconds from 0 to 59 respectively.
ERRORS COMMON IN MICROSOFT EXCEL AND WAYS OF FIXING THEM.
i. =ROUND(SUM(A1:C10,0))
➢ The inner bracket on the right should be moved to be just before the comma in order
to match all the opening and closing parenthesis pairs as follows:
=ROUND(SUM(A1:C10),0)
ii. AVERAGE(G:H4)
➢ G alone is not a cell reference. Make sure all the arguments of a formula are entered.
Also make sure you do not enter too many arguments. In this case, we need like
=AVERAGE(G2:H4)
iii. =MAX(D12;H25)
➢ The semi-colon cannot specify a range. Always use a full colon like:
=MAX(D12:H25)
v. Enter numbers in formulas without formatting. For example, do not enter $30 but rather
30 in the cell.
Page 26 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ This occurs when a number is divided by zero (0). The formula may be referencing an
empty cell that does not contain a value or one that has a zero.
➢ To correct this condition, click the cell that has the faulty formula. The ! Button appears
next to the cell.
➢ Click it and select the Show Calculation Steps command in the content sensitive menu
that appears.
➢ This will display the arguments of the formula and their values, allowing you to correct.
ii. #N/A
➢ This error occurs when a value is not available to a function or formula and #N/A or
N/A() has been entered in the cell as placeholder text.
➢ To resolve this, click the cell that has the formula, click the ! icon and select the Show
Calculation Step option.
iii. #NAME?
➢ It occurs when certain text in the formula cannot be recognised as being valid. Mistakes
may include referring to a named cell or range that does not exist, misspelling a function
name, omitting a colon in a range reference etc.
i. Click the cell or select the range referred to by the formula then,
ii. Click the Name box and type a name for the cell or range then press enter key
to effect the new name.
Page 27 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iv. #NUM!
➢ The error indicates that there are invalid numeric entries in a cell.
➢ This may also be caused by using a function that returns a number that is too large or
too small to be represented in Excel.
v. #REF!
vi. #VALUE!
vii. #####
➢ This means that the column width is not wide enough to display a value. The same
occurs when a negative time or date is entered in a cell
vii. Circular references
➢ This occurs when the cell reference in which the formula is entered is also included as
part of the formula arguments. i.e. the formula refers back to its own cell either directly
or indirectly.
➢ Remove circular references to solve this problem.
Page 28 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 29 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ To install a fresh copy of windows, the computer should be setup to boot from a DVD then
proceed as follows:
1. Insert the disk in optical drive and start the computer. After the Power On Self-Test
(POST) process, the computer initializes the boot process. After a few minutes,
Windows 7 installation screen shown in figure below is displayed. Set the language and
time zone and click Next. In our case, choose Central Africa Time (CAT) zone.
2. After clicking Install Now, read the Microsoft User-license agreement terms and click
the box against “I Accept the License Terms” as shown below.
Page 30 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
4. Next, partition the drive into two or more drives (volumes) using NTF file system and
then click Format.
5. Windows 7 automatically format the first drive usually labelled Drive C as the primary
drive and copies the installation files onto the partition as shown below.
Page 31 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
6. After the copy process is complete, it prompts you to enter username, password and the
license key. You must enter the license key that came with the product to install a
genuine copy of Windows 7.
7. Follow the windows installation process and provide all the necessary information. This
process is generally wizard driven and only requires minimal interactions where
necessary.
8. Once installation is successfully done, connect to the Internet to install importance
updates or skip the update procedure and enter the password to login to the desktop as
shown below.
Page 32 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
CONFIGURING WINDOWS
➢ A part from working with files, folders and drivers, windows provide the user with tools
that can be used to customize the desktop.
➢ Windows 7 lets the user change desktop appearance and display properties such as icons,
themes and wallpaper.
➢ Such features include:
1. Arranging multiple application windows on the desktop
2. Changing the desktop appearance
3. Setting resolution
4. Hiding the taskbar
5. Setting screen saver e.t.c.
➢ All these features can be set by Right-clicking the desktop then click Personalized.
➢ The control panel shown in figure below is displayed:
Page 33 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 34 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 35 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
INSTALLING UBUNTU
➢ The word Ubuntu comes from an ancient African word meaning ‘humanity to others’
➢ Ubuntu is an open source operating system that brings the spirit of humanity to the world
of computing.
➢ It is linux-based distribution available freely and can be installed in computers and phones.
➢ Before installing Ubuntu, read the guide that comes with the software to see whether the
computer meets the specification e.g. processor type, memory capacity and hard disk space
➢ To install Ubuntu, proceed as follows:
1. Switch on your computer and insert the disk that contains Ubuntu installation files. You
will see a welcome screen prompting you to choose preferred language and the option
to install Ubuntu or try it from the CD as shown in the figure below.
Page 36 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
NB: If the computer does not automatically display this screen, press F12 key to display
the boot menu, but be careful not to hold it down.
2. If the Internet is available, connect to the internet so that Ubuntu gets the latest updates
while installing. Figure below shows the installation screen from which you can choose
the type of internet connection such as wireless LAN. If you do not want to setup
internet connectivity, press the Continue button.
Page 37 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
3. On the displayed dialog box, select the type of installation i.e. Install Ubuntu alongside
Windows 7 or replace Windows 7 with Ubuntu operating system. This means that
Ubuntu will be installed as a duo-boot option in Windows.
4. Depending on the type of installation selected, verify the type of installation chosen,
and then click Continue button.
5. Click Install Now and installation process will start automatically. Note that Ubuntu 14
requires about 4.8 GB to install, so add a few extra storage to allow extra files. The rest
of the process is automated.
Page 38 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
6. Select the location so that Ubuntu set the correct date and time. For example, Malawi
uses Central Africa Time Zone that is (UTC +02:00). UTC stands for Universal Time
Zone that replaced the GMT (Greenwich Meridian Time). Click Continue to go to the
next screen.
Page 39 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
7. Then select preferred keyboard layout. In Malawi, the default layout is English UK but
you can also choose any other layout. Click Continue to proceed.
8. Then setup the login. Enter your names, preferred computer name, username and
password.
Page 40 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
10. Once the installation is complete, click Start Now to restart your computer. During
startup, a startup screen is displayed that lets a user boot from Windows or Ubuntu. Boot
from Ubuntu to start enjoying Ubuntu-The True African Spirit of Humanity to All!
INSTALLING DEVICE DRIVER
➢ During installation of these software, a computer is tested whether it has required hardware,
operating system and device drivers.
INSTALLING DEVICE DRIVERS
➢ Once you installed operating system, you can proceed by installing device drivers and other
utility programs like antivirus.
➢ A device driver is a utility program that controls a device installed in a computer
➢ For devices such as printer, a keyboard, a flash, a mouse and/or a scanner to work, its drivers
must be installed first
➢ A device driver acts as a translator between a device and the program that use the device.
➢ Common devices such as mouse, keyboard, monitor and flash disks are automatically
recognized by most operating system through a process called plug and play (PnP)
Page 41 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ There are many ways of installing device drives but the most common is through installation
wizard.
➢ For example, to install printer drivers, proceed as follows:
1. If the printer drivers are not in Windows, insert the disk that came with the device
printer. Figure below shows examples of printer drivers that are pre-loaded in Windows
7.
2. After verifying that the drivers are in windows device drivers profile, click Devices and
Printers from a Start menu
3. In the Devices and Printers window displayed, Click Add Printer and then choose Add
local printer. Click Next to proceed.
4. Under choose printer port, specify the port into which the printer will be connected to
e.g. USB as shown below. This is very important because specifying a wrong port e.g.
LPTI instead of USB means the printer will not work.
Page 42 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
5. Then specify the manufacturer and printer type, then click Next to proceed
6. In the dialog box that appears, type the name of the printer and click Next to start
installation process.
7. Once installation finishes, a test page print dialog box appears as shown below. It is
important to print a test page to be sure the drivers are successfully installed.
Page 43 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
8. Read and agree with the user license agreements and click Next
9. Follow the instructions as directed by the wizard
10. Click Restart if the installation requires computer to restart to finish the configuration.
➢ NB: For device driver installation process to be completed, you may be required to restart
the computer. Make sure you save any important task before you click the restart button
or alert.
INSTALLING APPLICATION SOFTWARE
➢ Most application software available in the market include: word processor, spreadsheet,
database management system, desktop publishing software, education software etc.
➢ In this section, we will learn how to select and install application software such as Microsoft
Office 2010.
➢ Factors which determine kind of application software to install are:
1. Cost of the software
2. Authenticity
3. User documentation
4. Reliability
5. User-friendliness
6. Compatibility
7. System configuration
8. User need
9. Purpose
➢ According to purpose, application software can be categorized into two:
1. General purpose application software: such as word, spreadsheet, database and
presentation that are packed and made available for general use.
2. Special purpose application software: these are application software designed
purposely to handle specialized tasks e.g. desktop publishing software (DTPs), graphic
editing software and anti-virus software.
Page 44 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
2. Once you agree to the terms, installation dialog box is displayed to choose whether to
Upgrade an existing version or fresh installation called Customize.
Page 45 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
3. Once you choose Customize, the Microsoft deletes the previous office
4. After choosing the installation option, click Upgrade or install Now to proceed. The
rest of the process is wizard driven.
5. Installation process starts and it takes several minutes depending on the options selected
and the computer hardware configuration. Once the installation is completed, you may
be required to check for updates. If connected to Internet, ensure that the “check web
for updates” check box is enabled otherwise click Close.
Page 46 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
6. To confirm that Office 2010 has been installed, display the Start menu and then point
to All Programs/Programs. The list of applications including newly installed is
displayed on the start menu.
➢ After the installation completes the first time to open the software to use will ask you to enter
product key.
➢ It is important for each software to have a product key because it helps you to install original
copy of the software not trial versions
NB: The steps outlined are specific to Microsoft Office 2010 and may vary depending on the
version of Microsoft Office and type of user license.
Page 47 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 48 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
OBJECT CODE
➢ This is a source code that has been converted into machine readable form.
➢ To convert source code to object code, language translator such as interpreter, assembler
and compiler are used.
ASSEMBLER
➢ An assembler converts assembly language program into machine readable form that
computer can understand and execute.
INTERPRETER
➢ An interpreter converts the source code into machine code statement-by-statement allowing
the CPU to execute one line at a time.
➢ The interpreted line is not stored in the computer
➢ This means that every time the program is needed for execution, each line has to be
interpreted.
➢ This method of interpreting program was common in early computers that did not have
enough memory to store the object code.
COMPILER
➢ A compiler converts the entire source code into object code.
➢ The object code is made into an executable file by carrying out a process called linking
which combine object code with library files required for execution of the program.
➢ After linking process, an executable file is generated and is stored in storage media with
file extension as .exe file in Windows operating system environment.
➢ The figure below illustrates how a compiler converts source code to executable file.
preprocess
Compile
libraries Link(linker) Load to RAM
Page 49 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
INTERPRETER COMPILER
Translates the source program Translates the entire source code at once before
one statement at a time. execution.
Translates the program each Compiled program (object code) can be saved on a
time it is run hence slower storage media and run as required, hence executes faster
than compiling. than interpreted programs
Interpreted object code takes Compiled programs require more memory as the object
less memory compared to files are larger.
compiled program
Page 50 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ Machine languages are hard for a person to understand what the program is all about
unless they have knowledge of machine level programming.
➢ Furthermore, different CPU’s understand different machine language e.g. code for intel
Pentium processors may differ from Motorola processor.
➢ Therefore, before writing the machine code, the programmer has to know for which CPU
the program is written.
➢ Such programs are hard to write and debug from programmer’s point of view, but are easy
to execute from the computer’s perspective.
ADVANTAGES OF 1 GL
i. Fast and efficient as statements are directly written in binary code
ii. No translator is required
DISADVANTAGES OF 1 GL
i. Difficult to use and learn binary codes
ii. Difficult to understand -both programs and correcting errors
iii. Machine dependent-they are not portable from one computer to another
iv. Require highly trained programmers both to develop and maintain
ii. ASSEMBLY LANGUAGE (SECOND GENERATION LANGUAGES)
➢ Assembly language was developed to overcome the difficulties of understanding and
using machine language.
➢ This language allows the programmer to write the programs as set of symbolic operation
codes called mnemonics.
Page 51 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 52 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iv. Low level programs are machine dependent i.e. they are not portable from one computer
to another.
2. HIGH LEVEL LANGUAGES
➢ High level languages are close to human language hence they can be read and understood
even by people who are not experts in programming.
➢ High level languages are machine independent meaning that a program developed for one
computer can run in any computer.
➢ Therefore, a programmer concentrates on a problem solving instead of understanding the
architecture of the machine.
➢ High-level language can be classified into five categories:
i. Third generation languages (3Gls)
ii. Fourth generation languages (4Gls)
iii. Fifth generation languages (5Gls)
iv. Object Oriented Language (OOPs)
v. Web scripting languages
THIRD GENERATION LANGUAGES (3 GLs)
➢ Third generation languages are also called structured or procedural languages.
➢ A procedural language makes it possible to break down a program into components called
modules, each performing a particular task.
➢ The process of breaking down a program into modules or sub-program is referred to as
structured programming.
➢ Structured programming emphasizes the following:
i. Large programs should be broken down into smaller sub-program each performing a
single task.
ii. Use control structure in problem solving.
➢ Structured programming offers many benefits because
1. It is flexible
2. Easier to read
3. Easy to modify
Page 53 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ However, unlike the 3GLs, most 4GL have advanced programming tools for:
i. Integrating the program with database
ii. Generating reports
iii. Creating graphical user interface (GUI) applications.
iv. Uses application generators that automatically generate program code easy to write.
➢ Some examples of 4GLs are: PowerBuilder, FoxPro, Python, Progress 4GLs, Microsoft
Visual Basic and Delphi Pascal.
ADVANTAGES OF 4GL
i. Easy to understand and learn
ii. Less time required for application creation
iii. Its less prone to errors
DISADVANTAGES OF 4GL
i. Memory consumption is high
ii. Has poor control over hardware
iii. Less flexible
FIFTH GENERATION LANGUAGES (5GLs)
➢ The fifth generation languages also called natural languages are used to develop systems
that solve problem using artificial intelligence.
➢ Artificial intelligence refers to a computer system that mimic human-like intelligence
➢ Such intelligence includes:
1. Visual (seeing) perception
2. Speech recognition.
3. Decision making
4. Movement
➢ In 5GLs, the programmer only worries about constraints required for the program to be
solved but not algorithm.
➢ Examples of 5GLs are: PROLOG Mercury, LISP and OPS5
Page 55 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ADVANTAGES OF 5GL
i. Machines can make decisions
ii. Programmer effort reduces to solve a problem
iii. Easier to learn and use than 3GL or 4GL
DISADVANTAGES OF 5GL
i. Complex and long code
ii. More resources are required and they are expensive too
OBJECT-ORIENTED PROGRAMMING (OOP)
➢ Currently, there is shift from structured programming championed in 1970s using 3GLs to
object-oriented programming (OOP).
➢ In OOP, program may consist of several objects that interact by sending messages to each
other.
➢ This is similar to the way a person considered as an object sends a message to another
person requesting for something to be done.
➢ Several objects are linked together through a method known as association to create a
complete program.
➢ It is important to note that OOP is not classified as a separate generation because it is a shift
in program development methodology.
➢ Most programming languages that supported structured programming like C are enhanced
to support Object-oriented programming.
➢ Examples of OOP are: Java, Microsoft Visual Basic. Net, Objective-C, C++, C#, python,
Perl, Ruby, Delphi Pascal and Smalltalk.
WEB DEVELOPMENT AND SCRIPTING LANGUAGES
➢ Web scripting languages are used to develop or add functionality on web pages.
➢ Web pages are hypertext documents created using Hypertext Markup Language (HTML)
➢ HTML contains tags that are interpreted by the web browser software to display contents
when the file is opened on the browser.
➢ A tag is a symbolic, word or character enclosed in angle bracket <> that a browser can
interpret it as a command.
➢ Other languages such as Extended HTML (XML) works also like HTML only that XML
allows the users to define their on tags instead of using standard HTML tags.
Page 56 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ HTML is not considered as programming language because it does not have declaration
part and control structures.
➢ To add functionality to HTML, scripting languages are used such as JavaScript, VBScript
and Hypertext Preprocessor (PHP).
➢ A script is a small program code written using scripting language then appended into HTML
program to add functionality like sliding calendar and form validation.
➢ HTML has an opening tag <> and closing tag </>
EXAMPLES OF HTML TAGS
TAG MEANING
<html> </html> Marks the beginning and end of an HTML document. All other tags
and text fall between these two tags.
<head> </head> Marks the header part of the document.
<title> </title> Gives the title of the web page. Text between this tag appears in the
title bar when the page is browsed
<body> </body> Marks the content part of the web page.
Page 57 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 58 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iii. New directive given by the management or government requiring change in the status
quo.
➢ For example, consider a mathematical problem such as calculating the area of a circle.
➢ In this case the problem is finding the area of a circle.
➢ For such a problem, a programmer must conceptualize the solution by first understanding
the problem, then identify input, processing logic and the expected output.
➢ INPUT: 1. Pie 𝝅 which is a constant
2. The radius of the circle
➢ PROCESS: The formula for calculating area of a circle (𝝅 × radius × radius )
➢ OUTPUT: Area of the circle (A)
➢ A problem definition stage ends with documenting hardware and software requirements
necessary for solving the problem.
➢ It is this document that enable a programmer to develop an algorithm for implementing
the solution.
2. ALGORITHM DESIGN
➢ After the programmer identifies a problem, the next step is to design the solution for
solving the problem called algorithm.
➢ An algorithm is a well-defined step for performing a task or solving problem.
➢ The algorithm is designed using the following:
i. Flowcharts
ii. Pseudocode
iii. Structured English statements
➢ For example, to calculate area of a circle, a programmer may use the pseudocode below
to outline steps the programmer will follow to calculate the area
Program: Calculate area of a circle.
BEGIN
SET as constant PI= 3.142
PRINT “enter radius”
READ radius
Area = PI × radius
Page 59 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
PRINT area
END
➢ The above algorithm starts with a declaration on the task to be performed by the program.
➢ The statement SET indicates that 3.142 is a constant represented using a symbolic name
PI.
➢ The phrases within the BEGIN and END denotes the executed statements for input, i.e.
PRINT radius; process (area = PI × radius); and output, i.e., PRINT area.
➢ Before coding, the algorithm should be tested for logical error
3. PROGRAM CODING
➢ This is the stage of writing the program code using programming languages e.g. C, C++,
e.t.c.
➢ The source code written by the programmer need to be converted to object code using
language translators like compiler, interpreter or assembler.
➢ Most programming languages have common elements and the following are some of
them:
1. Reserved words: Also referred to as keywords have special meaning and can only be
used for intended purpose. Some examples are: for, if, else, while and do
2. Identifiers: Identifiers are programmer defined symbolic names used to identify
elements like variables and constants.
3. Operators: Are used to perform arithmetic operations e.g. +, *, /, =, and –
4. Variable: Is a named location in computer’s memory for holding data. The contents
in variables may change during execution unlike constants whose contents do not
change.
➢ Unlike other programming languages like Pascal, other programming languages are case
sensitive so when writing need to be careful with spellings and use of capital letters and
small letters. This means that the word “cout” is different from the word “COUT”.
4. PROGRAM TESTING AND DEBUGGING
➢ Testing is the process of tracing or checking whether the program has errors (bugs) while
debugging is the process of correcting identified program errors.
➢ Types of errors (bugs) that may be encountered when testing the program:
i. Syntax errors
Page 60 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 61 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
DEBUGGING
➢ Once a program is written in the program editor, the programmer debugs the code.
➢ The programmer uses debugging utilities to detect and correct syntax errors before
compiling the source code into object code.
TEST DATA
➢ After the program compiles successfully, the programmer carries out trial run using test
data to check for logical and run-time errors.
➢ The programmer tries to enter valid and invalid data to check whether the program produces
desired output.
5. PROGRAM REVIEW AND MAINTENANCE
➢ Review and maintenance refers to continuous update and fixing of program errors after
installation.
➢ You may continue fixing and updating the program until it reaches a point where the
program has to be replaced.
➢ At this point, maintenance stops and the program development life cycle starts all over
again.
CHARACTERISTICS OF A GOOD PROGRAM
1. Simplicity: a program should be kept as simple and easy to understand.
2. Integrity: this refers to reliability and accuracy of data. Therefore, mathematical statements
should be tested for the accuracy of output.
3. Efficiency: Good program design should aim at optimizing execution speed and memory
utilization to enhance performance.
4. Clarity: The statements and comments should be clearly written for it to be readable.
5. Modularity: Complex programs should be broken down into components known as
modules or procedures or sub-programs.
PROGRAMMING IN VISUAL BASIC
➢ BASIC is an acronym for Beginner’s All-purpose Symbolic Instruction Code.
➢ BASIC has many dialects such as Microsoft Visual Basic (VB), GW-BASIC, Q-BASIC
and Turbo Basic.
➢ Microsoft Visual Basic is a member of Microsoft software development suite known as
Microsoft Visual Studio.
Page 62 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
OBJECT
➢ An object is an instance of a class that has state (data) and behaviour functions
➢ For example, a particular student in Form 3 is an object who has state or data such as
surname, marks, and grade
➢ The student object belongs to a class that has behaviour or functions such as walking and
speaking that is not in plants class
METHODS
➢ A method defines the behaviour or function to be performed by an object to manipulate data
➢ For example, we can define a method to add, delete or modify student details in a class
➢ The class must define methods that are common to all the objects that belong to the class
➢ Therefore, it is in methods where the program statements that manipulate data are written
VARIABLES
➢ Each object has its unique set of variables that are used to hold data
➢ Data values received by methods are assigned to these variables
COMMENTS
➢ These are set of statements used in the code to explain what a program or statement does
➢ The comments are ignored by the compiler during execution
➢ In Visual Basic, a comment starts with a single apostrophe (‘) followed by the statement
STRUCTURE OF VB PROGRAM
➢ VB program has:
i. Namespace declaration
ii. A class or module
iii. Variables
iv. Executable statements
v. Comments
GETTING STARTED WITH VB.NET 2010
➢ You can start Visual Basic.Net from the programs menu by pointing to Microsoft Visual
Studio and then selecting Microsoft Visual Basic 2010 Professional or Express. Here we
are going to use Professional.
➢ Depending on the way the application has been setup, you may see the New Project window
as shown below:
Page 64 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ This window lets the programmer create a new project or open an existing Visual Basic
application.
➢ In VB, an application is referred to as a project because it comprises of several files.
CREATING A NEW PROJECT
1. Start Ms visual studio and then select Visual Basic.
2. On the Start page window, click New Project icon on the top left-hand side to display
several types of projects identified by different icons as shown below:
➢ Note that, two environment components used to develop Visual Basic application are
the Windows Form and Console Applications.
➢ While Form Application are GUI-based programs, Console Applications are command
line-based applications.
➢ In this unit we will learn programming using Form Application.
Page 65 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
3. Select the Windows Form Application and type the name at the bottom of the dialog box,
type the name of the application that will replace the default name “WindowsApplication
1” e.g. hello world.
4. Then click OK button, the Visual Basic Integrated Development Environment (IDE) is
displayed.
➢ The term IDE refers to programming environment that provides programmers with
several programming features such as source code editor, debugger and compiler.
Page 66 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 67 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
i. Label
➢ Label tool is used to place controls that explain the content of other controls on the form
➢ For example, if a textbox contains surnames, a label against it indicates that surname
should be provided.
ii. TextBox
➢ Textbox tool is one of those frequently used tools to draw text boxes in which the user
provide input
iii. Button
➢ This tool is used to place command instances on the form.
➢ Such commands include OK, SAVE, EXIT, CLOSE etc
➢ This tool is used to interact with an application
iv. CheckBox
➢ Checkbox control provides a way of choosing multiple values by clicking on the check
boxes
v. DateTimePicker
➢ This control is used to place a control on the form that a user can click to display a
dropdown calendar from which to choose DAY, MONTH or YEAR
vi. HScrolLBar
➢ This tool is used to place horizontal scroll bar.
Page 68 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
vii. ListBox
➢ The listbox tool is used to draw controls that display list of items the user can select from.
viii. ComboBox
➢ A combobox is a type of list box that combines the capabilities of a text box and a list
box.
➢ A combo box displays a list of items to select from during program execution.
➢ Items can also be added into the combo box
SOLUTION EXPLORER
➢ The solution explorer is shown on the top right of the IDE window
➢ It displays a list of objects associated with the open project such as forms and modules
CODE WINDOW
➢ The code window is displayed once you double click an object
➢ This is where we write the source code that instructs the program what to do.
PROPERTIES
➢ The properties window is used to define properties of each object in an application
➢ After you place an instance of an object, you must define its properties such as name, colour.
EXAMPLE
QUESTION: Create a program that calculates area of a circle given that PI = 22/7.
SOLUTION
1. Start Visual Basic and choose New project on the Start Page. Then Visual Basic then
Windows Application Form
2. From the toolbox, use the label, textbox and button tools to design the form
3. Change the name and text (caption) properties of the control to look as shown below;
Page 69 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
4. Double click the button and insert the code below between the Private Sub and End Sub
Dim Radius As Integer
Dim Area As Double
Const PI As Double = 22/7
Radius = Val(txtRadius.Text)
Area = PI*Radius*radius
txtCircleArea.Text = Str(Area)
5. Run the program, enter 7 into Radius textbox and then click the calculate button. The result
of the calculation is displayed in the Area text box as shown below;
Page 70 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
PROGRAM DESCRIPTION
DECLARATION
➢ In programming, declaration is an instruction to the compiler to reserve memory enough
to store input or output from a computer program.
➢ For a computer to reserve enough memory, you have to specify the type of data to be held
in specific memory address
e.g. Dim Radius As Integer
➢ In this case the variable Radius has been declared to receive integer values.
VARIABLES
➢ A variable is a name or identifier that is used to represent a memory location whose content
may change during program execution
➢ When a variable is declared, the computer sets aside memory space to hold a value in the
variable.
➢ From the example above, Area and Radius are variables.
➢ In VB, a variable is declared using the reserved word DIM, a short form for dimension.
➢ It is used to associate a variable with specific data type.
RULES FOLLOWED WHEN DECLARING VARIABLES IN VB
➢ The variable name must not have more than 255 characters
➢ The variable name must start with a letter
➢ The variable may be declared using mixed, lower or upper case because VB is not a case
sensitive.
➢ A variable name must not be a reserved word. e.g. Case, Else, Dim
➢ Variable names should not have spaces. If two or more words are to be used to create a
variable, use underscore or combine them with each word starting in upper case
➢ In VB, a variable is declared using the reserved word Dim
➢ Dim is short form of the word dimension
➢ So, the first line instructs the compiler to reserve memory location named Radius that stores
an integer.
Page 71 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
VB DATA TYPES
Integer A whole number with no fraction part. Integers range from -32768 to
32768
Long integer Numbers which are integers but have a bigger value and range. From -
2,147,483,648 to 2,147,483,647
Single Real constant that includes a fractional part. The largest value is
3.4 × 1038
Double It includes a fractional part but has far much larger range than single real
numbers. However, it cannot be larger than 1.2 × 10308
Boolean Data types that have only two logical states i.e true or false
VARIANTS
➢ In VB, if a variable type is not explicitly declared, the compiler uses variant as data type.
➢ A variant is a special type used if the programmer does not declare a variable data type to
be integer, string or the other types discussed above.
➢ In this case, the actual data type is determined by the value held by the variable.
CONSTANTS
➢ A constant is a value such as PI (3.14) that does not change during execution of a program
➢ In VB the key word Const that comes before PI is used to declare the value as a constant
➢ e.g. Const PI As Double = 22/7
STRING CONSTANTS
➢ A string is a sequence of characters enclosed in double quotation marks.
➢ Strings are used to write alphanumeric values that cannot be manipulated mathematically
such as phone numbers, addresses and names.
➢ Examples include; “Holiday season”, “345678”, “MW7 200”
Page 72 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
NUMERIC CONSTANTS
➢ Numbers that can be manipulated mathematically are referred to as numeric constants.
➢ Numeric constants do not include letters and should not be enclosed in quotation marks.
➢ They can only be of integer, double or scientific type as shown bellow
e.g. 0, 3, +70, 1.4E+2, -0.70456
NAMED CONSTANTS
➢ A named constant is a value given a symbolic name rather than its actual value.
22
➢ For example, PI is a named constant used to represent the quotient of .
7
SCOPE DECLARATION
➢ Scope refers to the portion of the program that a variable or a constant is accessible by the
program
➢ The following terms are used to specify the scope of a variable or constant:
i. Local variables or constants
ii. Global variables or constants
LOCAL VARIABLES OR CONSTANTS
➢ A variable or a constant that is declared within a function is said to be local
➢ This means that the variable can only be accessed within that function
GLOBAL VARIABLES OR CONSTANTS
➢ A variable or constant that is declared outside the function or module but within the same
application is said to be global
➢ Such variables can be accessed by other methods within the project
➢ In visual basic, variables can also be declared as either private (local) or public (global)
e.g. Private Dim X As Integer
Public Dim Y As String
➢ In the first declaration, the private variable X can only be accessed in the module within it
is declared.
➢ In the second example, the variable Y is public hence it can be accessed by other methods
or modules in the application.
Page 73 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ASSIGNMENT
➢ In VB, assignment is done using an assignment operator (=).
e.g Radius = Val(txtRadius.Text)
X=X+1
➢ In the first example, whatever is in the right side is assigned to the left side as (Radius)
➢ In the second example, X=X+1 does not make mathematical sense but this is the beauty of
assignment statement in programming.
➢ The statement can be interpreted as: Add 1 to the original value of X and assign the new
value to X. in other words, increment the value of X by 1.
USER-DEFINED DATA TYPES
➢ Sometimes, a programmer may want to have a single variable that can store several
variables of the same or different data type.
➢ Such data type made up of multiple variable components are referred to as user-defined
data types.
➢ Some examples of user defined data types are records, arrays, enumerated types and lists.
DECLARATION USING SUFFIXES
➢ Suffixes are special symbols added at the end of a variable or constant in order to associate
it with a particular data type. This makes programming easier and faster.
SOME COMMON SUFFIXES
SUFFIX DATA TYPE LONG DECLARATION SHORT DECLARATION
% Integer Dim A As Integer A%
! Single Dim X As Single X!
$ String Dim Q As String Q$
& Long integer Dim C As Long integer C&
# Double Dim P As Double P#
Page 74 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
i. On the Project menu, click Add Windows Form. A dialog box is displayed
ii. In the dialog box, click Windows Form icon and then click the Add button to insert
the new form in design view and save it with your preferred file name.
iii. Save the new form with your preferred file name and VB extension.
iv. To make the new form executed after running the program, click Project Properties
on the Project menu.
v. Set the new form as the Startup form as shown in the figure below, and Close the
properties window.
Page 76 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
ARITHMETIC OPERATORS
➢ Are special symbols that are used to write arithmetic expressions
* Asterisk Multiplication
/ Slash Division
➢ NB: In an integer division using \ operator, each of the numbers being divided is first
rounded to become an integer then the quotient is truncated to an integer
𝟐.𝟒 𝟐
e.g, 𝟑.𝟓 will result in 𝟒 being evaluated
1 ^ Performed first
Page 77 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
RELATIONAL OPERATORS
➢ A relation operator is used in an expression that returns a true or false value when evaluated
➢ The operators can compare numeric variables, constants or expressions
OPERATOR NAME
= Equal to
OPERATOR OPERATION
Xor Results in a condition that is true if one of the conditions is true and the
other is false
Page 78 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ The following are examples of compound expressions that demonstrates the use of logical
operators:
i. (X = 30) And (student = “John”): returns true only if value of X = 30 and student’s
name is John.
ii. (X = 20) And (Y = 30): returns true if value of X = 20 and Y is 30.
iii. (X=20) Or (Y<10): returns true if X is 20 and the value of Y is less than 10.
LIBRARY FUNCTIONS
➢ Library functions also known as in-built functions are methods that have been pre-defined
and included in Visual Basic.
➢ A library function performs a task such as calculating a mathematical expression and returns
a single value.
➢ A function will usually have a name that can be called when needed to perform a particular
task.
➢ A library function is accessed by its name followed by the information that must be supplied
to the function enclosed in parenthesis.
➢ This process is called calling a function.
➢ The variables held in the parenthesis are called arguments.
➢ When the function is called, it uses the arguments to perform an operation and return a
value.
➢ For example, to perform a mathematical operation, VB has library functions that starts with
Math, followed by the function name after the period. e.g. Math.Sqr ().
FUNCTION FUNCTION CALL DESCRIPTION
Round Z= Math.Round () Returns the current date
Exp Z= Math.Exp (w) Returns the exponential value of 𝑒 𝑤
Sqr Z= Math.Sqr (w) Returns the square root of w
Log Z= Math.Log(w) Returns the natural logarithm of w
Cos Z= Math.Cos(w) Returns the cosine of w
Abs Z= Math.Abs(w) Returns absolute value of w, e.g Abs(-8)=8
PI Z= Math.PI 22
Returns constant PI as = 3.142 …
7
Page 79 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
NB: The dollar sign may be used with the format function depending on the type of output
required. In the last low of the table above, the formatted output is displayed on a label.
CONVERTING NUMERIC STRING TO VALUE
➢ If you enter a number in a text box it is treated as a string in VB.
➢ The best way to convert it from string into numeric value is to use the val function.
➢ The val function operates on the string and returns a numerical value.
➢ For example, if the name property of a textbook is set to txtLength, then the input typed in
it can be read converted into a numeric value and assigned to variable X as follows:
X = Val(txtLength.Text)
CONVERTING NUMERIC VALUE TO STRING
➢ To convert a number to a string (text) format, use Str(). If a particular variable has a numeric
value and you wish to display the value in a text box, you have to convert it to a string first.
➢ Suppose that the name of the textbox is txtArea and the numeric value is X as follows:
TxtArea.Text = Str(X) ‘convert X to string and display it in txtArea.
CONTROL STRUCTURES
➢ In programming, control structures are constructs that determine the logical flow of
execution of program statements.
➢ There are three types of control structures supported by most programming languages such
as VB, Pascal and C++.
i. Sequence
ii. Selection
iii. Iteration (looping)
Page 80 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
SEQUENCE
➢ In sequence control structure, the computer reads instructions from a program file starting
from the first statement sequentially moving down to the last statement.
e.g.
Begin
Statement 1
Statement 2
.
.
.
Statement n
End
SELECTION
➢ Most programs that solve real world problems gives a computer ability to make a decision
or execute statement(s) given a certain condition is satisfied.
➢ In programming, making decision is referred to as selection. They use logical operators.
➢ For example, consider a program to test if X is greater than 20, (X>20).
➢ In this case, if a user enters a value of X, it is compared against 20 and the program returns
true or false depending on the outcome.
➢ This is known as conditional evaluation where the output is a Boolean value (true or false)
TYPES OF SELECTION STATEMENTS USED IN VB
i. IF … THEN
ii. IF … ELSE
iii. NESTED IF
iv. SELECT … CASE
Page 81 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
IF … THEN SELECTION
➢ IF … THEN selection evaluates the statement within the selection body if the Boolean value
returned is true.
➢ In this case, if the Boolean value is false, the statements are ignored.
➢ For example, in school, the administration may decide to reward only those students who
attain a mean mark of 80% and above, he or she is rewarded while the rest are ignored.
➢ The general structure of IF … THEN selection is:
IF <condition> THEN
<statements if true>
END IF
EXAMPLE
Write a program that prompts a user to enter a score in Computer Studies exam. If the score is
at least 50%, the program should display “PASS”.
SOLUTION
Dim Score As Integer
Score = Val(txtScore.Text)
Dim Comment As String
Comment = "PASS"
If Score >= 50 Then
txtRemarks.Text = Comment
End If
IF … ELSE SELECTION
➢ IF … ELSE selection is suitable when there are two alternatives to choose from.
➢ For example, in a football match, if a player does a mistake which is considered serious by
the rules of the game, he/she is given a red card. Otherwise, he/she is given a yellow card.
➢ The general structure of IF … ELSE selection is:
IF <condition> THEN
<statements if true>
ELSE
<statements if false>
Page 82 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
END IF
EXAMPLE
Write a program that prompts a user to enter a score in Computer Studies exam. If the score is at
least 50%, the program should display “PASS”, and if it is below 50% the program should display
“FAIL”.
SOLUTION
Dim Score As Integer
Score = Val(txtScore.Text)
Dim Comment As String
Comment = "PASS"
If Score >= 50 Then
txtRemarks.Text = Comment
Else
txtRemarks.Text = "FAIL“
End If
NESTED IF SELECTION
➢ Nested IF or the IF … ELSE …IF selection is used where two or more options have to be
considered to make a selection.
➢ The general structure is:
IF <condition> THEN
<statements>
ELSE IF <condition> THEN
<statements>
ELSE IF <condition> THEN
<statements>
ELSE <condition> THEN
<statements>
END IF
Page 83 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
EXAMPLE
Write a program that prompts a user to enter a score in Computer Studies exam. If the score is at
least 75%, the program should display “DISTINCTION”, if it is at least 60%, the program should
display “CREDIT”, if it is at least 50%, the program should display “PASS”, and if it is below
50% the program should display “FAIL”.
SOLUTION
Dim Score As Integer
Score = Val(txtScore.Text)
If Score >= 101 Then
txtRemarks.Text = "INVALID INPUT"
ElseIf Score >= 75 Then
txtRemarks.Text = "DISTINCTION"
ElseIf Score >= 60 Then
txtRemarks.Text = "CREDIT"
ElseIf Score >= 50 Then
txtRemarks.Text = "PASS"
Else
txtRemarks.Text = "FAIL"
End If
SELECT … CASE
➢ Similar to nested IF, the select case control is used in case there are several alternatives to
choose from.
➢ However, unlike nested IF, select case uses ordinal values only
➢ An ordinal value is one that has predecessor and successor such as integers and alphabetic
characters
➢ For example, the predecessor of 3 is 2 and its successor is 4.
➢ The general structure of Select … Case is:
Page 84 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 85 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Case Else
Comment = “Invalid grade”
End Select
‘displays the remark to pass or fail
txtRemark. Text = comment
LOOPING (ITERATION)
➢ A loop is a control structure that causes program statement(s) to be executed several times.
➢ For example, assume you are writing a program that calculates cumulative sum of five
subjects for five students. To calculate the total score for each student, the program
repeatedly reads each student marks in five subjects and then calculates the total.
➢ Visual Basic language has five types of looping control structures
TYPES OF LOOPING CONTROL STRUCTURE
i. Do While...... Loop
ii. While..... Wend
iii. Do..... Loop While
iv. Do Until....... Loop
v. For.... Next
Do While..... Loop
➢ The Do While..... Loop is used if a condition has to be met before the statements within the
loop body are executed.
➢ This type of loop uses a pre-test condition to determine if statements are to be executed zero
or more times.
➢ For example, in banking, to repeatedly withdraw money on automated teller machine
(ATM) a customer must have sufficient balance in his/her account.
➢ This can be represented as follows:
Do WHILE balance > 0
Withdraw cash
Update balance
Loop
Page 86 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
EXPLANATION
i. The condition balance > 0 is first tested.
ii. If it is true, the account holder is allowed to withdraw cash.
iii. The program exits the loop only when the balance falls to zero.
Do While.....Loop Syntax
Do While <condition>
<statements>
Loop
EXAMPLE
Write a VB program that displays the sum of the first 4 numbers.
SOLUTION
Dim ControlNum As Integer
Dim sum As Integer
ControlNum = 0
sum = 0
Do While ControlNum <= 4
sum = sum + ControlNum
ControlNum = ControlNum + 1
Loop
txtSum.text = Str(sum)
Page 87 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
EXAMPLE
Dim ControlNum As Integer
Dim sum As Integer
ControlNum = 0
sum = 0
While ControlNum <= 4
sum = sum + ControlNum
ControlNum = ControlNum + 1
Wend
txtSum.text = Str(sum)
Do Until.... Loop
➢ Just like the previous loops, Do Until.... Loop execute the statements in the body of the
loop if the condition is true.
EXAMPLE
Dim ControlNum As Integer
Dim sum As Integer
ControlNum = 0
sum = 0
Do Until ControlNum > 4
sum = sum + ControlNum
ControlNum = ControlNum + 1
Loop
txtSum.text = Str(sum)
Page 88 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 89 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ For example, to calculate the sum of 10 numbers, the For…Next loop is appropriate because
the number of looping is predefined as 10. The loop executes the statements within the loop
ten times before the total sum is displayed.
Page 90 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
COMMUNICATION
➢ Communication is the process of using sound, words, symbols, signs, pictures or signals to
pass message or information from one person to another.
➢ The message origin is called a sender or a source while the target recipient is a receiver.
➢ The message is usually targeted for sending to the receiver.
DATA COMMUNICATION
➢ Data communication refers to the process of transmitting data signals from one point to
another through communication channels.
TELECOMMUNICATION
➢ This is the use of technology to enable exchange of messages in a form of data and
information over a wired or wireless communication media.
➢ Telecommunication technology involves use of telegraph, telephone, radio television and
computer.
TELECOMMUNICATION NETWORK
➢ A telecommunication network is an interconnection of telecommunication equipment like
telephone, mobile, radio, television and computers using transmission media or links.
➢ The network enables flow of data or information from the source to destination.
COMPUTER NETWORK
➢ A computer network is an interconnection of computers using transmission media and
networking devices to enable exchange of data and information.
INFORMATION AND COMMUNICATION TECHNOLOGY
➢ Information and communication technology (ICT) refers to the convergence of computer
networks with telecommunication networks like telephone, mobile, radio, television to
provide communication platform through which people can share information.
➢ Today, ICT provide electronic communication such as mobile internet, electronic
commerce, instant messaging, email, internet radio and digital television broadcasts.
Page 91 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 92 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
MOBILE PHONES
HISTORY OF MOBILE PHONES
➢ Mobile phone was first demonstrated by Dr. Cooper in 1973
➢ Mobile phones are portable i.e. they are small and light and therefore can fit in a pocket.
➢ Mobile phones communicate using cellular wireless network that is set up by the
government or mobile service provider.
➢ Each mobile phone has a special component called Subscriber Identification Module (SIM)
card which identifies each subscriber on the network.
FOUR MAIN CATEGORIES OF MOBILE PHONES
i. Basic/conventional mobile phones
ii. Touch screen feature phones
iii. Smartphones
iv. Tablets
Page 93 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 94 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
3. SMARTPHONE
➢ They have advanced features that make them to operate as computer
➢ They are characterized by:
• Powerful processor and touch screen
• Powerful operating system (Android, iOS, windows) which makes the phone operate
like a computer
• It has high memory capacity ad has ability to access high speed internet and stream
online video.
• High resolution camera with ability to make high definition pictures and videos
4. TABLETS
➢ These phones fall between smartphones and computers in terms of size and processing
power.
➢ Tablet differs with computer because it has a slot where SIM card can be inserted in order
to support voice calls, text messaging and internet access over mobile networks.
➢ Characteristics of tablets are:
i. A large touch screen, bigger than smartphone
ii. Large internal memory capacity
iii. Powerful processing, more powerful than that of smartphones
Page 95 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iv. Ability to run several applications and connect to high speed internet
v. High resolution screen and camera capable of taking high quality pictures and videos.
HISTORY OF INTERNET
➢ The idea of the internet started in the 1960's among a few visionaries at the Massachusets
Institute of Technology (MIT) and University of California, Los Angeles (UCLA)
➢ The first message was sent over the ARPANET (Advanced Research Project
Administration Network), which evolved into the internet from computer science Professor
Leonard Kleinrock's laboratory at UCLA.
USES OF NETWORKS
➢ Computer networks support many services and applications in the modern society.
➢ Some of the uses of networks include:
i. Electronic banking (e-banking)
ii. Internet access at homes and work
iii. E-commerce
iv. Point of Sale (POS) applications
v. Mobile communications
vi. Electronic government etc.
1. ELECTRONIC BANKING
➢ This is the use of networked computers to offer banking services like cash withdraw,
deposits, transfers and electronic payments.
➢ Electronic banking encompasses the following services and technologies.
i. Automated Teller Machines (ATM)
➢ ATM machine enables people to withdraw and deposit money in their bank
accounts as long as they can positively be authenticated for true identity.
Page 96 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ The authentication is done by means of a plastic card that is inserted in the terminal
and the user is required to provide Personal Identification Number (PIN)
➢ Figure below is an example of an ATM:
Page 97 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
Page 99 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
iv. Cost-effectiveness
➢ Networks are cost effective in the organization.
➢ This is so because resources like printers are shared on the network.
➢ An organization may have one printer or fax machine which can be connected to all
computers of the organization and allow all users access it using network.
➢ The same applies to other resources like fax machines, optical drives, files and
applications
➢ Users can send electronic messages and mail to each other instead of having to bear the
cost of stamp duty or physical delivery charges.
➢ On the same note, company executives may not need to travel across continents to hold
meetings.
➢ Companies also hold video conferencing instead of conducting meetings and therefore
save travelling expenses.
v. Reliability
➢ A computer network is reliable in two ways:
i. Data is transferred with minimal or no error from source to destination
ii. In case one computer breaks down, the other can still access data and information
from other computers using other devices
LIMITATIONS OF NETWORKS
➢ The following are disadvantages of computer networks:
i. Security issues
ii. High cost of installation cost
iii. Moral and cultural effects
iv. Spread of terrorism and drug trafficking
v. Over reliance on networks
i. Security issues
➢ Data and information transmitted over a computer network is prone to illegal access than
if the computer was not on the network.
➢ It can be tapped by unauthorized user as it travels from source to destination
➢ One of the common methods of data protection in a networked environment is encryption
➢ Encrypted data cannot be understood by people who illegally access it unless they have
the decryption key
ii. High initial cost
➢ The initial cost of buying hardware and software may be very high.
iii. Social-cultural effects
➢ The internet has chatrooms and messaging services that enable under age children to meet
peers and adults on the internet some of whom may be morally spoiled.
➢ Access to pornographic and other negative materials has also made the fight against social
problems such as HIV and AIDS, pre-marital sex as well as drug and substances abuse
more complicated.
iv. Spread of terrorism and drug trafficking
➢ The easy flow of information from one place to another make even those who are on the
wrong side of the law communicate easily
➢ Terrorists and drug traffickers use information networks for their business
communications.
➢ However, many countries have come up with methods of policing the Internet to try and
break such syndicates.
v. Over-reliance on network
➢ Most organizations today have stopped using manual operations.
➢ This means that their business processes depend on computer networks.
➢ Therefore, the disadvantage is that if the network fails or goes down, all system in the
organization are brought to halt.
ELEMENTS OF COMMUNICATION SYSTEM
➢ A communication system consists of terminal device, communication channels and
transmission media that enable exchange of message between users of the system.
➢ A communication system has the following elements:
i. Message source
ii. Transmitter
iii. Communication channel
iv. Receiver
v. Message user
Page 102 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
MESSAGE SOURCE
➢ This is the person who wants to send the message across the communication system
➢ The message source may want to make telephone call, send email, chart etc.
TRANSMITTER
➢ This is the terminal equipment that receives a message from the source and coverts it to a
format that can be transmitted on the channel.
➢ A transmitter can be a computer, radio, TV transmitter station in broadcasting stations.
COMMUNICATION CHANNELS
➢ A communication channel is a transmission media through which data and information
flows.
➢ A channel carries the coded message from the transmitter to the receiver using signal that
can flow through it.
➢ The channel could be made of one or more transmission media especially if the message is
travelling over a long distance.
RECEIVER
➢ A receiver is a terminal equipment that get the transmitted message from the channel and
decodes it before presenting it to the user.
➢ It could be computer, mobile phones, radio tuner etc.
➢ Terminal equipment is the device that is found on the sending and receiving end points,
excluding all the devices that are available on the way like routers and repeaters.
MESSAGE USER
➢ This is a person who is the target recipient of the message.
Nodes
Figure: Communication system
iii. HUBS
➢ A hub also called concentrator is a component that connects computers on Local Area
Network and relay signals from one computer to another.
➢ A hub usually connects networks that have common architecture i.e. one that has the same
set of communication software called PROTOCOLS.
➢ Protocols refer to set of rules that govern communication between devices on a network.
➢ A hub transmits signals by broadcasting them to all computers on the network.
➢ After the signal is broadcasted, the computer whose address is on the message picks the
message from the network.
➢ The increase in broadcast range can lead to what is called broadcast storm on the
network
➢ Broadcast storms refers to a condition where network is overwhelmed with messages
making communication impossible.
➢ Some hubs called INTELLIGENT HUBS are able to monitor the way computers are
communicating on the network and keep the information in a small database of their own
called Management Information Base (MIB).
➢ Several hubs can be connected together one another to expand the network.
A HUB
iv. BRIDGE
➢ A bridge is a network device that determine the appropriate network segment for which
a message is meant for delivery through address filtering.
➢ A bridge can divide a busy network into segments to reduce network traffic.
➢ A bridge makes sure that packets that are not meant for a particular segment are not
broadcasted in that segment.
Page 106 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
A BRIDGE
v. REPEATERS
➢ A repeater receives data from one segment of a network, cleans it to remove any
distortion, boosts it and then sends it to another segment.
➢ Using repeaters is the simplest way to expand a network because they broadcast the same
message to other network segments.
➢ Repeater broadcasts to all segments which may lead to broadcast storm.
➢ Nevertheless, use of repeaters enable the network to eliminate the problem of attenuation.
vi. ROUTER
➢ A router interconnects different networks and directs the transfer of data packets from
one source to destination.
➢ Routing depends on network address.
➢ Each network has a unique identifier or address called the NETWORK ADDRESS.
➢ All the computers from the same network have same network address but different host
number.
➢ The router receives the packet from a computer on the network and checks the
destination’s network address and passes it to that network which then passes to the host
address.
➢ Some routers combine the function of bridge and routers called BROUTER.
vii. GATEWAYS
➢ A gateway is a device that is configured to provide access to devices on wide area
network (WAN) or internet.
➢ One such device is the router in which gateway software is installed.
➢ Because of this reason, most people confuse a gateway with a router but a gateway
may not be necessarily be a router.
➢ A gateway is the most powerful internetwork device because of its ability to
convert data across different network architectures and protocols
viii. SWITCH
➢ A switch is a device that forwards packets directly to addressed node without
broadcasting.
➢ A node is an equipment on the network.
➢ A switch transmit data by connecting two nodes point-to-point.
➢ Because data is not broadcasted as hub, it reduces the problem of broadcast storm.
➢ Note that some hubs are configured to function as switch and are called intelligent hubs
or switching hubs.
➢ Switches are more expensive than hubs.
WAP
WIRELESS ANTENNAE
➢ This is a device mounted indoors or outdoors to extend wireless network to the surrounding
buildings
➢ It is used to propagate radiowave, microwave or infrared waves that carry data to be
received by access point in the surrounding.
PCMCIA CARD
➢ A Personal Computer Memory Card International Association (PCMCIA) adapter is an
addon card inserted into a device such as PDA or laptops in order to enable wireless
communication between the device and the wired network server.
DATA SIGNAL
➢ Data signal refers to as a voltage level in the circuit which represents the flow of data.
DATA SIGNAL TRANSMISSION
➢ Some terms used in data communication include: data signal, signal modulation and
demodulation, multiplexing, bandwidth, baseband, broadcast transmission and
attenuation.
➢ Data signals can either be ANALOG or DIGITAL.
➢ ANALOG data is made up of continuous waveform while DIGITAL data is made up of
non-continuous discrete signal
➢ Analog is made up of continuous wave form while digital data is made up of a non-
continuous discrete signal
+1 +1
-1
-1
➢ From figure (a), digital signal rises suddenly to a peak amplitude of +1, holds for some time
then suddenly drops to -1 level.
➢ On the other hand, an analog signal rises to +1 and falls to -1 in a continuous manner
➢ Although the two graphs look different, they repeat themselves at equal time interval.
➢ Electrical signals of this nature are said to be periodic. Generally, a periodic wave
representing a signal can be described using he following parameters:
1. Amplitude (A)
2. Frequency (f)
3. Periodic time (T)
➢ Amplitude (A): Amplitude is the maximum displacement that the waveform of an electrical
signal can attain. For example, the amplitude of the electrical signals is 1.
➢ Frequency (f): Frequency is the number of cycles made by signal in one second. It is
measured in units called hertz (Hz). 1 Hz is equivalent to 1 cycle/second.
➢ Periodic time(T): The time taken by a signal to complete one cycle is called periodic time
(T). periodic time is given by T= 1/f, where f is frequency of the wave.
SIGNAL MODULATION AND DEMODULATION
➢ This is the process of converting data signals to and from a form that is suitable for
transmission over a transmission medium.
➢ A modem (Modulation-Demodulation) converts a digital signal to analog signal to be
transmitted over analog telephone line a process called modulation.
➢ At the receive end, another modem converts back analog signal to digital form a process
known as demodulation.
A MODEM
MULTIPLEXING
➢ Multiplexing is the process of sending multiple data signal over the same medium.
➢ A channel can be made to carry several data signals either simultaneously or at different
times.
➢ Demultiplexing is the process of separating the multiplexed signal at the receiving end.
➢ Imagine a situation where 100 computers in town A want to communicate with 100
computers in town B, if multiplexing is used, each of the computers in town A will need a
direct cable linking it to another in town B. however, with multiplexing, the computers can
be made to share a single cable lied between two towns hence save cost.
BANDWIDTH
➢ Bandwidth is the maximum amount of data that a transmission channel can carry at any one
time.
➢ For example, a certain cable transmitting 100mbps (megabits per second) is said to have
100 Mbps bandwidth.
BASEBAND SIGNAL
➢ Baseband signal is a digital signal that is generated and fed into a transmission medium
without modulation.
➢ The signal takes forms of voltage of different magnitudes applied to the medium.
➢ A baseband signal ultilises the full capacity of the transmission medium, hence at any one
time, only one signal can be sent at a time.
BROADBAND TRANSMISSION
➢ In broadband transmission, analog signals are transmitted over the transmission medium
using different frequencies (multiplexing).
➢ This means that several data signals can simultaneously be sent through the same medium
at different frequencies.
➢ Frequency bands between these data signals prevent them from overlapping.
ATTENUATION
➢ This is decrease in magnitude and energy of a signal as it progressively moves along
transmission medium.
➢ If the signal is not boosted, it is totally lost along the way and may never reach the
destination.
➢ Attenuation is minimized by placing a repeater station along the medium at appropriate
distance.
CLASSIFICATION OF COMMUNICATION NETWORKS
➢ Communication networks can be classified as either:
i. Circuit switched
ii. Packet switched
iii. Message switched
➢ The electrical signal is propagated through the cable from source to destination
TYPES OF PHYSICAL TRANSMISSION MEDIA
➢ There are several types of physical transmission media but the most common ones
are:
i. Two wire open line cables
ii. Twisted pair cables
iii. Coaxial cables
iv. Fibre optic cables
TWO-WIRE OPEN LINE
➢ Two-wire open cable is made up of two parallel copper wires separated by a plastic
insulator.
➢ They are most used in telecommunication network to transmit voice signals
➢ Although the plastic insulator is meant to reduce interference called crosstalk, their linear
nature allows an electromagnetic field to build around them during heavy data transmission
which may cause interference to the signal.
➢ The wire also captures environmental frequencies e.g. radiowave hence causing noise in
transmission channel.
➢ In data communication, the word NOISE refers to unwanted signals picked up by the
channel.
TWISTED PAIR CABLES
➢ A twisted pair cable is made up of two solid copper wire twisted around each other in a
double helix manner.
➢ The winding of the wire is meant to reduce the build-up of electromagnetic field around the
two wires as they transmit data.
➢ Twisted wire cables are used to transmit both voice and data signals.
➢ The two common twisted pair cables are:
i. Unshielded twisted pair (UTP)
ii. Shielded twisted pair cable (STP)
➢ Notice that unlike STP, UTP cables do not have a shield that prevents electromagnetic
interference (EMI) from the environment
➢ The cable is therefore susceptible to noise and signal interference.
➢ The noise may come from lightening sparks, radio frequencies or radiation from spark plugs
in motor vehicle.
➢ Therefore, UTP is not suitable in the environment that are electrically “noisy”, the
alternative is to use STP that has cable pairs.
Page 118 of 165
R. MALEMBA
COMPUTER STUDIES ST. PATRICK’S SECONDARY SCHOOL
➢ Shielded Twisted Pair (STP) is similar to Unshielded Twisted Pair (UTP) except that a
wrapped around the wires protect them from noise.
➢ Twisted pair cables are categorized into groups according to the data transmitted and
maximum rate of transmission as shown in the table below:
➢ Most organizations today use Cat 5 and Cat 6 twisted pair cables to set up Local Area
Networks (LAN).
➢ Although twisted pair cables support high data rates of up to 200 Mbps, they suffer from
attenuation
➢ For every cable length of 90 meters, a device for amplifying the signal called REPEATER
must be installed.
EXAMPLE
❖ A student typed an e-mail to send over the internet at a speed of 100 Mbps. Calculate the
maximum number of characters that can be sent per second if each character consists of 8
bits.
SOLUTION
1 Mb = 1,000,000 bit
Therefore 100 Mb = 100,000,000 bits
If 8 bits = 1 character
Then 100,000,000 = (more characters)
(100,000,000 bits / 8 bits) * 1 character
=12, 500, 000 Characters per second
A COAXIAL
➢ Together with the insulation and any foil shield, the shield protects the core from radio
frequency interference (RFI) and electromagnetic interference (EMI).
➢ Although the cable has better protection against magnetic interference than twisted pair
cables, it has a moderate protection against magnetic interference.
➢ The diameter of the centre core determine attenuation rate.
➢ The thinner the core, the higher the attenuation rate. Data is carried on coax in a form of
direct current (D.C).
➢ Coaxial cable has a bandwidth of up to 1 Gbps (Gigabits per second) hence it is used as a
network backbone.
➢ A good example is a cable that is used to connect different networks between building and
routing trunk calls in telecommunication.
TWO TYPES OF COAXIAL CABLES
i. Thin coaxial cable also called thinnet: has one dielectric insulator
ii. Thick coaxial cable also called thicknet: has two dielectric insulators around the core and
is thicker than thinnet
➢ When light travels from optically dense medium, it is refracted away from the normal to a
point that the ray deviates so far away from normal making it reflected rather than refracted.
➢ Therefore, when light signal is fed into fibre optic cable, it tries to cross from the core to
the cladding but it is bent back into the core hence propagates along the length of the cable.
➢ Figure below shows how a fibre based network transmit data from source to destination.
iii. Radiowaves
iv. Infrared transmission
➢ They all use different frequencies of the electromagnetic spectrum.
➢ The diagrams below show an electromagnetic spectrum
SATELLITE COMMUNICATION
➢ A satellite is a relay station. It has a parabolic dish with an antenna fixed on them to focus
on a narrow beam towards a satellite in space.
➢ The satellite earth stations are microwave dishes with antenna used for relaying data using
microwaves to the satellite in the space.
➢ A satellite has three main components:
i. Transmitter earth station: that set uplink to the satellite in order to transmit data.
ii. A satellite: it receives, amplify and transmit the signal to a receiving earth station via a
downlink frequency that is different from the uplink frequency.
iii. Receiving earth station: that would receive and send signal on the other side of the
globe
➢ The new trend in microwaves uses Very Small Aperture Terminal (VSAT) technology
which uses a very small satellite dish used to transmit both data, radio and TV
communication.
➢ The VSAT is mounted on a roof enables direct access to satellite communication instead of
having to go through a state owned by the gateways.
➢ Figure below shows how VSAT is used to connect two locations to communicate network
set up to enable two laptops in geographically desperate locations to communicate.
➢ In VSAT setup, the satellite produces a strong signal that can be received by a satellite dish
antenna of only 2 meters in diameter.
➢ The signals are decoded using a decoder which is plugged directly to television set or
computer.
RADIO COMMUNICATION
➢ Radio waves travel just like surface water waves, i.e. they are OMNIDIRECTIONAL.
➢ This means that radiowaves start from a central point and spread outwards in all directions.
➢ The waves are radiated into the atmosphere by a radio frequency antenna at constant
velocity
➢ Radio waves are not visible by human eye.
INFRARED TRANSMISSION
➢ Infrared waves are not visible to the human eye
➢ Communication through infrared is achieved by having transmitters and receivers
(transceivers) within a line of sight because infrared rays do not penetrate obstacles like
walls
➢ However, the signal can be reflected by surfaces like walls and ceiling before they are
received
➢ An example of an infrared device is the transceiver installed on some mobile phones
➢ Once activated, two people in the same room can send messages to each other using infrared
without going through the mobile service provider hence saving network charges
ADVANTAGES OF WIRELESS COMMUNICATION
i. Wireless medium is flexible in operation as compared to wired i.e. devices can be moved
around without losing access to the network
ii. Wireless networks can span a large geographical area
iii. Wireless communication can take place via satellite even in very remote areas that do not
have physical infrastructure such as telephone lines.
SIMPLEX TRANSMISSION
➢ In this mode, there is one-way transmission of data.
➢ The sender sends the data and the recipient receives it and cannot send the response back
to the sender over the link
➢ Examples of simplex are
i. Radio tuner at home
ii. Television transmission
Simplex
Transmitt Receiv
transmission
er er
Half Duplex
Transceive transmission Transceive
r r
Full Duplex
Transceive Transceiver
transmission
r
ii. Discharge static electricity that might have built up on your body using a wrist member
iii. Check whether the memory modules are firmly plugged into the slots. If they are, connect
the computer to power and restart
iv. If the problem persists, you need to replace the RAM modules with new ones. The memory
modules may be damaged.
POWER SUPPLY UNIT FAILURE
➢ The function of power unit is to convert the electrical power (AC) comes from wall socket
to a suitable type and voltage (DC) so that each component of a computer works properly.
➢ Luck of proper supply of power will damage a computer system.
➢ Power supply unit as shown in the figure below may fail due to power surge or failure of
the cooling fan inside it.
➢ If he problem is serious, the computer may display a blue screen with a message such as
“Fatal exception error has occurred” before shutting down or restarting.
➢ To resolve the problem, do the following:
i. Confirm that all hardware devices and drivers are properly installed or configured using
device manager shown in the figure below
ii. If the problem is related to operating system, follow the following procedure:
a) Press combination of keys (Ctr+Alt+Del) to restart the computer
b) During the reboot process, and before Windows is loaded, press F8 to display the
Safe mode start-up screen as shown in the figure bellow:
c) Choose safe mode to load Windows with minimal settings. Scan the drives or check
for any hardware or software related problem in device manager
iii. If the problem persists, the OS may be corrupted by a malware. In such a case, you may
need to use up-to-date antivirus software to scan the boot sector for viruses
iv. If all above fails, you have to re-install or repair the operating system using the recovery
disk created during installation or installing OS afresh
REMOVABLE MEDIA READ ERROR
➢ One of the symptoms of a floppy drive problem is a message stating that there is an error
reading from or writing to a disk, an error message “Error writing to disk”.
➢ This type of a message indicates that storage media may be corrupted or malfunctioning
tape or disk drive.
➢ On the other hand, flickering may be caused by poor refresh rate settings o failing
monitor.
➢ The refresh rate determines how often the display gets redrawn.
HOW TO RESOLVE DISPLAY PROBLEMS
i. Make sure the monitor is properly plugged into the power outlet and turned on and also
that brightness is set at adequate level
ii. If this step does no solve the problem, check whether the monitor is properly attached
to the VGA port
iii. If the problem is not related or the power or VGA, test the monitor using another
computer before declare it dead!
iv. Replace the monitor with a new one
3. REPEATED DISPLAY ELEMENTS ON SCREEN
➢ Repeated display elements is due to use of an improper resolution setting.
➢ This setting result in multiple copies of the same image
➢ To resolve this problem, use display setting properties to change the colour resolution
settings
KEYBOARD AND MOUSE FAILURE
➢ Common keyboard and mouse settings are due to improper connection on the PS/2 port or
damaged pins.
➢ However, with USB interface, failure may be due to mechanical failure of the device itself.
➢ Irregular movement of the mouse pointer across the screen suggest dirty mouse rollers or
ball.
➢ Most mice have replaced mechanical mouse with optical mouse
i. These types of mice need to be cleaned but they are much more reliable than older
mechanical mouse. For a keyboard that has failed completely or other keys fails, replace
it with a new one.
ii. USB controller failure. USB device’s operation depends on the function of the USB
controller. USB failure result from:
❖ lack of enough power
❖ excessively long or faulty USB cables
➢ By refilling used cartridge, make sure it is tested to avoid possibility of using faulty
cartridge
SMUDGED PRINTOUT
➢ If a dot matrix printer produces smudged printouts, check on the printer head
➢ Stuck pins may cause printouts to have a smudged appearance as they drag across the page
➢ In laser printers, smudged printouts may be as a result of the drum failure to fuse the toner
onto the paper
➢ From inkjet printers, smudges are mostly due to touching the printout before the ink dries
up
HOW TO TROUBLESHOOT THE PROBLEM
➢ To troubleshoot this problem, do one of the following:
i. In case of a dot matrix printer, replace the print head.
ii. If this doesn't solve the problem, it could indicate worn-out printer head or poor ink
ribbon. Simply replace the head or ribbon
iii. For laser printers, consult the user guide that may be helpful in locating the problem
especially relating to the fuser
iv. Because the fuser is a sensitive component that gets very hot, it is advisable for it to be
handled by an experienced technician.
3. Frames containing text or graphics need not to flow in logical sequence. For example,
a story on page 1 may be continued on page 8
4. DTPs provide maser pages used to set commonly layout which may be repeated on
several pages.
5. In DTPs, publications can be printed in form suitable for commercial digital or offset
printing using colour separations
6. Most DTPs have predefined templates such as brochure, booklets, posters and business
cards available
7. Multiple stories from different authors can be handled with ease
8. DTPs enhance visual communication to different audience
9. DTP ensures file print properly in their true colour, fonts and measurements
TYPES OF DTP SOFTWARE
➢ Generally, DTP software can be classified into two broad categories namely
1. GRAPHIC-BASED DTPS
➢ These DTPs are specifically used to edit and format graphic objects such as pictures and
vector drawings.
➢ Vector drawings are free hand drawing such as those drawn by fine artist
➢ Examples of Graphic-based DTPs include adobe Photoshop, adobe illustrator and
CorelDraw.
➢ These softwares have superior graphic handling capabilities such as setting resolution,
brightness, contrast, cropping and filling images with colour.
➢ Some graphic-based softwares like CorelDraw and Adobe Illustrator may be also used
for page layout
2. LAYOUT-BASED DTPs
➢ These types of DTPs are specifically used to design page layout for text and graphics.
Have you ever wondered how the complicated front page of a newspaper is developed?
It is difficult to achieve such without a good layout-based DTP software.
➢ Examples of layout-based DTP softwares include Adobe PageMaker, Microsoft
Publisher and Adobe InDesign
1. Decide the type of publication. Is it a newspaper? How many columns per page? Is it a
book? What paper size will be used?
2. Decide the layout of the publication. This will enable you to select appropriate template
or to use master pages to create common layout
3. Decide on about the colour scheme, fonts, margins, orientation, graphics e.t.c. and make
sure the page is properly setup.
FEATURES OF DTP SOFTWARE
➢ Most DTPs provide the user a variety of tools for designing, manipulating and editing a
publication. The following tools are common in most DTPs:
❖ Select tool: used to select, move and resize images and texts
❖ Text tool: Used to draw text frames, insert and manipulate text
❖ Shape tools: for drawing basic shapes like rectangle and for importing objects
❖ Zoom tool: used for magnifying publication
❖ Rotate tool: used for rotating text or graphics
GETTING STARTED WITH MICROSOFT PUBLISHER
➢ To launch Publisher 2013 from start menu, proceed as follows:
i. On the Start menu, click Microsoft Office, then Publisher 2013.
ii. Click Built-in to choose a template or click BLANK to design from a blank page. The
Publisher 2013 application window shown in figure below is displayed.
CREATING PUBLICATIONS
➢ Once Publisher starts, the Startup screen is displayed.
➢ It is on this startup window that you can select the type of publication you wish to create
such as Thank you Cards shown in the figure below:
➢ Master page settings apply to all pages in the publication until you specify otherwise and
they cannot be renamed or deleted from the publication.
➢ To switch to master pages view click the mater page icon(s).
i. On View ribbon, click Master Page button
ii. Use Master Page tools or menu tabs shown in figure below to edit or define Master
Page(s) layout
iii. Click the Close Master page button to switch back to other pages of the publication
SAVING A PUBLICATION
i. From File tab, click Save As
ii. In the Save as dialog box, select the drive or folder to save in, enter the file name and select
the file type
iii. Click the OK button
CLOSING A PUBLICATION
➢ Click Close window button at the top-right corner of the window
➢ Alternatively, click the Office button, then select the Close command.
OPENING A PUBLICATION
➢ To open a saved publication, proceed as follows:
i. From File tab, click Open
ii. In the Open dialog box, select the drive or folder where the publication was saved
iii. Click the OK button
INSERTING TEXT INTO PUBLICATION
➢ To add text using text or frame tool in PageMaker or Publisher, proceed as follows:
i. Click Text toll from the tool box
ii. On the empty area on the pasteboard or printable area, drag to define the text box
iii. Type the text
➢ Note: you can create artistic text using the WordArt frame tool
➢ Once you insert the shape, you can Right click it and select Format Autoshape and make
the formatting.
➢ On the Format Autoshape dialog box, you can apply the following formats:
INSERTING PICTURES
i. On the Insert tab, click Picture button to display insert picture box
ii. In the dialog box, select the drive or folder where the picture file is located
iii. Double Click the file or click the File then Insert
OBJECT LINKING
➢ In desktop publishing, Object Linking and Embedding (OLE) refers to importing an
object or existing file into a publication.
➢ An OLE can be manipulated as part of the publication or as a shared image between the
source and current document
➢ If an object is linked to the source publication, ay change applied to the source object are
reflected in lined image within a publication. This is because the destination file stores an
image or a copy of the source file
➢ On the other hand, if the object is embedded, no direct ink exists. The embedded object
becomes part of the publications and updates on the source file do not affect the embedded
object
➢ To embed or link a file:
i. On the Insert tab, click Object in the text group
ii. In the Insert object dialog box that appears, click Create from file option
iii. Click the Browse button to select the file you want to link or embed
iv. To create link, make sure the checkbox labelled link, is checked as shown in the diagram
below. For embedding, leave the checkbox unchecked
v. Click ok to insert the object.
INSERTING TABLES
➢ A table is used to organize text into rows and columns. When dealing with a table, the
following terms are used:
1. Row: a horizontal arrangement of a cell
2. Column: a vertical arrangement of a cell
3. Cell: the intersection between a row and a column
➢ Rows and columns belonging to one table behave like one even when the table overflows
to other pages.
➢ To insert table in publication,
i. On the Insert tab, click Table button in the table group
ii. On the dropdown menu that appear, drag the mouse pointer to select the number of rows
and columns
iii. To draw table larger than 10 × 8, click Insert table in the create table dialog box and
specify number of rows and columns
EDITING PUBLICATION
➢ Editing a publication involves making changes to text and graphical objects.
➢ The procedure for editing publications is similar to that for editing word document
discussed earlier
DELETING TEXT AND OBJECTS
➢ Select or highlight the text or object then press Delete button or Backspace button
COPYING AND MOVING TEXT
➢ Select the text to copy or move, right click and then click copy or cut then paste where you
want it to be.
SPELL CHECKING IN A PUBLICATION
➢ To check spelling mistakes, proceed as follows:
i. Click Review button
ii. Click the Spelling button
iii. In the dialog box, make sure Check all stories checkbox is selected
iv. Replace or ignore the misspelt words
v. Click OK to close the button
ROTATING OBJECTS
To rotate object in publisher:
i. Select the object
ii. Hold down the Ctrl key and drag the rotational handle that appear above the object
iii. Rotate the handle in clockwise or anticlockwise
To arrange objects in publisher
i. Select the object while pressing Shift + Tab
ii. On the Format ribbon, click Bring forward or Send Backward to select arrange option
from the list
PRINTING PUBLICATIONS
➢ Unlike other application programs discussed earlier e.g. word processing, printing in
DTPs is a much more technical. This is because you may prefer to prefer to print a
picture in a separate colours referred to as colour separation.
➢ You can also insert crop marks and other details required for commercial printing
➢ To print publication, proceed as follows:
i. On the File tab, click Print
ii. Under printer option, click Printer properties hyperlink to set print option in the dialog
box
iii. To specify advanced print properties such as inserting crop marks, click the arrow on
the right of the printer, then click Advanced option settings
iv. In the dialog box that appear, use tabs such as Marks and breeds to specify advance
option.
THE END !
Page 165 of 165
R. MALEMBA