CSC 221 MANUAL Assignment
CSC 221 MANUAL Assignment
TABLE OF CONTENT
INDEX NUMBER:
2
3
4
5
6
TOTAL
WORKBOOK
SECTION ONE
a. INPUT: The process of entering data and instructions into the computer system.
b. STORAGE: The computer system stores the data and instructions and makes them
available for processing as and when required.
c. PROCESSING: The computer performs arithmetic or logical operations on data and
converts them into useful information.
d. OUTPUT: This is the process of producing the results of processing to the user, such
as a printed report or a report that can be viewed on the computer monitor.
e. CONTROL: The computer controls the manner and sequence in which all the above
operations are performed.
storage
1.3 CHARACTERISTICS OF COMPUTERS
a. SPEED: It has the ability to process at very fast rate. It can perform millions of
operations in a second.
b. STORAGE: The memory unit has the capacity to store large amount of information
and to release information when needed. The large volume of data can be conveniently
stored, accessed and altered.
c. ACCURACY: Computer accuracy is very high. Due to the fact that it is an error
detecting machine, error in computer are due to human rather than technological
weakness. This brings in the notion of Gabbage In, Gabbage Out (GIGO). That is, if
we feed the computer with wrong data, we will receive wrong result.
d. AUTOMATIC: Computer is more than calculator where you need press the necessary
keys before an operation is performed. Here you just need to write a program into the
computer where instructions are transferred by the control unit for execution. The CPU
follows these instructions one after the other until it meet an instruction that say stop
execution.
e. DILIGENCE: Being a machine, computer does not suffer from human traits of
tiredness. It will still perform the last job with the same speed and accuracy as the first
job.
f. VERSATILITY: The computer can perform four basic operation. It has the ability to
(i) pass information between itself and the external world through I/O devices, (ii)
moves data internally within the CPU, (iii) perform basic arithmetic operation, (iv)
perform operation of comparism.
g. EFFICIENCY: It is known for enhancing efficiency in data processing environments,
offices, home etc. for its has the ability to process data quickly and produce reports
professionally.
(d) Generation
This is generally the way in which data can be represented within computer. The three types
are analog, digital and hybrid computers.
Analog computers
Analog computers are computer that represent information in a continuous form. Examples are
slide rule and speedometer. This type of computers measure physical magnitude such as
temperature, pressure, voltage, speed, density, etc. The results are not always precise. Analog
computers are used for scientific and engineering purposes.
Digital computers
These are computer that represent information in discrete or digital or binary form i.e. by a
coded set of electrical pulses. These computers represent numbers and letters as digits in a
certain code and is the type used in commercial data processing. Digital computers are popular
for both business and scientific data processing.
Hybrid
The computer that combines the features of both the digital and analog computers is called the
hybrid computer. They are mostly used in scientific and technical application.
The digital computer system can further be subdivided into specific-purpose and general-
purpose computer. These express the purpose for which they were designed.
General Purpose
These are computer designed to solved a wide variety of problems and can be used to carry out
different jobs or task. General purpose computer can perform any kind of jobs be it business
application or scientific application with equal efficiency simply by changing the application
programs stored in the main memory.
Specific-Purpose
These are computer developed for a specific task or job and the programs are in-built in the
computer by the manufacturers. They cannot be used for any other jobs apart from the restricted
jobs. Examples are computers designed for air traffic control, weapon guidance systems,
robots, monitoring and control systems, satellite, space research control, etc.
Super computers : are the largest, fastest, most powerful, most expensive computers. They
are special purpose computers manufactured for applications in area like: Defense, space
mission explorations, nuclear physic, weather forecasting, oil exploration. Examples:
CRAY1, CRAY2, CRAY C, and CRAY X-MP.
Mainframe computers: are usually sophisticated and large computer systems with high
powered and high memory capacity of more than 32 megabytes. The disk storage capacity
is usually in Gigabytes and the word size is between 48 and 64 bits. It uses a multi-user
operating system and has no limit to the number of users it serves, as they can serve between
100 and 1000 users; they are very expensive and encourage multi-tasking. It is mostly used
in large establishment such as Banks, Insurance companies, Hospitals, universities and
Commercial establishments. Examples of mainframe computers are IBM- 360/370 system,
NCR V-8800 system.
Mini computer: encourages multi-tasking and multi-user operating system; uses magnetic
tape or disk and they are used by small firms and can accommodate about 100 users. Typical
word size for mini computers is about 32 bits, the RAM memory size was about 2MB.
Examples include HP 1000 and HP 3000, IBM 38, MV 400, PDP 11, VAX
750, VAX 6000, NCR 9300.
Microcomputer: is a computer whose central processing unit (CPU) is based on a
microprocessor. They are the most popular, easy to use and smallest in size. It is a single
user system and single tasking; uses floppy disk and hard disk for storage. Examples are
IBM PC, Apple Macintosh. Microcomputer can be further classified in four as follows: (i)
Desktop computers, (ii) Laptop computers (iii) Notebook computers, (iv) Palmtop
computers.
● 1st Generation computer (1946-1958) : Makes use of vacuum tube or valve. It has very
large size; power consumption was too high and a lot of heat was generated; very expensive
to buy; slow in operation and often unreliable and required constraint maintenance;
operation instruction had to be fed into it manually. Example: ENIAC.
● 2nd Generation computer (1959 – 1964): The development of Transistor in Bell’s
Laboratory in U.S. led to the invention of computers in this generation. These use the
transistor as the basic building block in the logic component. They are smaller, faster and
cheaper; consumes less power and more reliable; have lower running cost and used more
sophisticated English-like computer languages e.g. COBOL, FORTRAN; External storage
on magnetic tape (or magnetic disks). Example: NCR 304.
● 3rd Generation computer (1964 – 1971): They are built with Integrated Circuits (ICs)
consisting of transistors, diode and resistor. It uses disk as storage media; introduce
timesharing, multiprogramming and operating system; more powerful, cheaper and smaller
in size; reduction in heat generation and require lesser power; their internal memory
increased and compatibility was introduced. Examples are IBM S360-S370 series.
● 4th Generation computer (1971 –1983): Uses microprocessor (an IC with Very Large
Scale Integration); very small in size; much more powerful in processing speed and storage
capacity; required minimal maintenance; uses menu-driven.
● 5th Generation computer: makes use of artificial intelligence i.e. ability to process the
natural language. The main attractions over previous computers are the speed and power.
1.6 SOFTWARE
Software can be defined as the sets of instruction and procedures passed to the computer to
perform certain activities or tasks. That is, it is the set of instruction directed to a computer
system to perform a specific task. It is often called computer program. It is the program, which
direct the operations of computer systems. It is the invisible part of the computer system.
Without the software, the computer system is useless.
▪ System software
▪ Application software
(a) SYSTEM SOFTWARE
System software is sets of one or more programs designed to control and supervise the
operation and performance of a computer system. They are the software that acts as interface
between the hardware and the user or computer resources. The overall control of the hardware
operations and the user self-written programs is done by the system software. The computer
manufacturer is responsible for the development of systems software and therefore, they cannot
be modify or edit by the computer users.
▪ Operating systems
▪ Utilities and service programs
▪ Translators
▪ Database Management System
Application software consists of a number of programs designed to perform specific tasks for
users.
OPERATING SYSTEMS
The operating system can be describe as a collection or a set of programs which operates the
computer and allow a number of programs to be run on the computer without human
intervention by an operator. It lies between the application software and the computer
hardware. The operating system has three main functions:
1. Manage the computer’s resources, such as the central processing unit, memory, disk-
drives and printer.
2. Establish a user interface
3. Provide services or applications software.
Single-user Operating System: This is a type of system that allows one user to work in a
computer at a time e.g.
Multi-user Operating System: This is a type of system that allows two or more users to share
the computer resources. i.e. Printer. Examples are:
Network Operating System (NOS): This is an operating system that allows communication
between two or more computer users. It can be describe as a group of computer devices linked
together over transmissions so that information and resources can be shared .e.g. Novel
Netware.
These are programs which enable one to carryout certain standard functions within the system
such as copying files, sorting data, merging files, editing files, file maintenance e.t.c.
TRANSLATORS
These are programs used to convert programs written in other computer language into machine
language. The assembler, compiler or interpreters are all type of translator.
Note: Debugging in programming means detecting, locating and correcting bugs (mistakes)
usually by running the program.
Microsoft Windows
Starting up a Computer
The process of starting up a computer system is listed below:
● Connect all parts of the computer and ensure they are well connected
● Remove all secondary storage disks from the disk drives
● Switch on the power socket on the wall followed by the ON switch button on the
computer and the monitor
● Wait for few seconds for the computer to complete the booting process.
PRACTICAL QUESTIONS
1. List the steps involved in starting up a computer
Connect all parts of the computer and ensure they are well connected
Remove all secondary storage disks from the disk drives
Switch on the power socket on the wall followed by the ON switch button on the computer
and
the monitor
Wait for few seconds for the computer to complete the booting process
3. What are the features you can see on the screen above?
The screen below shows “My Documents,” “Favorites” (browser bookmarks), etc. Windows XP's
Start Menu was expanded to encompass various My Documents folders (including My Music and
My Pictures), and transplanted other items like My Computer and My Network Places from the
Windows desktop.
Speed
A computer works with much higher speed and accuracy compared to humans while performing
mathematical calculations. Computers can process millions (1,000,000) of instructions per second.
The time taken by computers for their operations is microseconds and nanoseconds.
Accuracy
Computers perform calculations with 100% accuracy. Errors may occur due to data inconsistency
or inaccuracy.
Diligence
A computer can perform millions of tasks or calculations with the same consistency and accuracy.
It doesn’t feel any fatigue or lack of concentration. Its memory also makes it superior to that of
human beings.
Versatility
Versatility refers to the capability of a computer to perform different kinds of works with same
accuracy and efficiency.
Reliability
A computer is reliable as it gives consistent result for similar set of data i.e., if we give same set of
input any number of times, we will get the same result.
Automation
Computer performs all the tasks automatically i.e. it performs tasks without manual intervention.
Memory
A computer has built-in memory called primary memory where it stores data. Secondary storage
are removable devices such as CDs, pen drives, etc., which are also used to store data.
6. Mention the two basic types of operating systems and give three examples of each.
. Single-user Operating System: This is a type of system that allows one user to work in a
computer at a time e.g.
i. MS-DOS: Micro Soft Disk Operating system
ii. CP/M: Control Program for micro computer
iii. OS/2: Operating system 2
iv. PC/DOS: Personal Computer Disk Operating System
Multi-user Operating System: This is a type of system that allows two or more users to share the
computer resources. i.e. Printer. Examples are:
i. PC/MOS: Personal Computer Multi-user Operating System
ii. AOS/DVS: Advance Operating System with Distributed Visual Storage
iii. XENIX: A Multi-user Multitasking Operating system developed by UNIX.
Section 2 question A-F
SECTION TWO
Application software or program is a computer program designed to help and users perform a
certain kind of activity. Depending on the task(s) for which it was designed, an application
program can manipulate text, numbers, graphics or a combination of these elements.
Application software consists of a number of programs designed to perform specific tasks for
users.
▪ Application specific / special – purpose packages: These are packages designed for
a specific task such as a company payroll program used to store employee details and
generates details of pay for each individual employee.
▪ Generalized packages / General – purpose packages: which may be used for a wide
variety of purposes. An example of a general-purpose package is a word processor, a
program which allows the computer to be used somewhat like an electronic typewriter
and is therefore appropriate to numerous text processing tasks. Other examples are
spreadsheets, databases, graphics package including desktop publishing (DTP), etc.
What characterizes this software type as belonging to the category of general-purpose
packages is that they have been designed to be very flexible and applicable to a wide
range of different tasks. For instance, a spreadsheet can be used easily for simple
accountancy procedures as for stock control; a database can be used with equal facility
to store information on technical papers from journals, stock item details and personnel
details for payroll purposes.
Microsoft word
Let us consider an office scene. Many letters are typed in the office. The officer dictates a letter.
The typist first types a draft copy of the letter. The officer goes through it to check mistakes
regarding spelling errors, missing words, etc. and suggests corrections. The typist changes the
letter as suggested by the officer. This is a simple example of word processing. First let us
define Word processing and Word processor.
Word Processor:this is a software package that enables a computer user to create, edit, print
and save documents for future retrieval and reference.
Word Processing: this is an act of using the computer or other electronic equipment for the
manipulation of text which involves creation, editing, storage and printing.
There are several Word processor packages that can be used in Windows operating systems.
They are:
✔ Microsoft Office Word (MS Word)
✔ WordPerfect
✔ OpenOffice.org Writer
✔ Ability Write
✔ WordPad
Most Word Processor available today allows more than just creating and editing documents.
They have wide range of other tools and functions, which are used in formatting the documents.
The following are the main features of a Word Processor:
The MS-Word 2007 environment has a very user-friendly environment. Its features are clearly
named, organized and easily assessable. Microsoft Office 2007 also introduces a feature called
"Live Preview", which temporarily applies formatting on the focused text or object when you
place your mouse cursor over any formatting button. The temporary formatting is removed
when the mouse pointer is moved from the button. This allows users to have a preview of how
the option would affect the appearance of the object, without actually applying it.
Help
Ribbon
The description of each of the feature of the MS-Word environment is explained below:
1. Office Button: it contains a menu of file-related commands. When you click the Office
Button you will see the available commands such as New, Open, Save, Save As etc. To
select a command, click on it.
2. Quick Access Tool Bar: it provides a set of frequently used commands. The default options
are to save a file, to undo the last action, and to repeat your most recent action. You can
add other options by clicking on the drop down menu of beside the Quick Access Tool Bar.
More options
3. Ribbon: it is a panel that houses a fixed arrangement of command buttons and icons. It
organizes the commands as a set of tabs; each grouping into relevant commands.
4. Ribbon Tabs: it provide you with a set of tools that are relevant to what you are currently
doing. In the example above, the Hometab contains formatting and editing options.
5. Title Bar: it displays the name of the program and the name of the current document. If
you haven’t named the document yet, then it will be called something like Document1.
6. Window Controls: they areused to minimize, resize or close a window. This feature is in
every program that you open in windows. To minimize means to reduce the window unto
the task bar. Resize changes the size of the window to fill the screen or to appear as part of
the screen. You click close to end the program.
Resize
Mini
Close
7. Vertical Scroll Bar: thisis used to scroll up and down the page. You can also click on the
little down arrow below the scrollbar to move down the page. If your page is wider than
the screen display, then you will also see a Horizontal scrollbar across the bottom of the
window.
8. Status and Information Bar: it displays useful information about your document, such as
the page count and number of words. You can right-click the status bar to show u more
options of more information you will like to view on the status bar. Check the items you
want to see; uncheck those you don’t want to see on the status bar.
9. Help: at the top right corner of your MS Word screen, you’ll see a small blue circle
containing a question mark. Just click on the question mark to open the MS Word Help
window. You can also access the Help window by pressing the [F1] key on your keyboard.
To get help on a specific topic, type a word or phrase in the blank area at the top of the
window and then click the Search button; alternatively, you can click on any of the Help
topics listed in the window. Click the X in the top right corner to close the Help window.
10. Text Area: Just below the ruler is a large area called the text area. You type your document
in the text area. The blinking vertical line in the upper-left corner of the text area is the
cursor. It marks the insertion point. As you type, your text displays at the cursor location.
Text Ar e
Cu
In this section you are going to learn how to use the MS-Word 2007 processor to perform the
some tasks, as follows:
Start Button
Note that the illustration above was done in Windows 7. The Start button for other
Windows Operating Systems like Windows XP and Windows Vista are located in the
same place. So you can still follow the steps – they follow the same path.
ii. In the Start Menu, as shown below, click the entry for All Programs
All Programs
iii. In the displayed list of all the programs in the computer, scroll down to Microsoft
Office folder. Click it; and it will show you the list of all Microsoft packages installed
in your system.
All Programs
iv. Then click Microsoft Office Word 2007;and then, the program opens.
2. Create a Document
To create a new document in MS-Word 2007, follow these steps:
i. Click the office button.
ii. In the left pane of the displayed menu, click Open.
iii. A dialog box pops up. From the middle pane, choose Blank document from the
two options: Blank document and New blog post.
iv. Now, click Create in the bottom of the right pane in the dialog box, and the new
document opens.
3. Edit a Document:
In the newly opened document, type the following text.
The Office button, located on in the top-left of the window, replaces the File menu and
provides access to functionality common across all Office applications, plus including
opening, saving, grinding, printing, and sharing a file. It can also close the application.
Using the Office Button in MS-Word 2007:
i. Click in front of the word “Office” on the first line to insert the cursor.
ii. Press the space bar on the keyboard, and type “2007”.
iii. Insert the cursor in front of the word “in”on the first line and press Backspace, on
the keyboard three times to remove the word and the space after it.
iv. On the third line, as seen above, click in after “applications,” and press Delete five
times to remove the word “plus”.
v. Double click the word “grinding” on the third line. The word is selected. Then
press Delete on the keyboard.
vi. Afterwards, press together, the CTRL key and Z key on the keyboard i.e CTRL+Z
to undo the action just performed. Alternatively click the blue arrow inside the
Quick Access Tool Bar that turns backwards. To redo the action, i.e. in order for
the word “grinding” to be deleted again, click the blue arrow turning upwards in
the Quick Access Tool Bar. The keyboard shortcut for redo is CTRL+Y.
vii. Click in front of “Using the Office Button in MS-Word 2007:” hold the SHIFT
button on the keyboard and press the forward arrow button till you reach the “2007:”
Right-click on the selected word. In the displayed menu, chose cut. Right-click in
the beginning of the paragraph i.e. before “The Office Button...” and chose Paste.
Note that Cut will delete the selected word; while copy will still leave the selected
word in place.
viii. To select the whole paragraph, triple click any word in the paragraph.
ix. To select a body of text containing several paragraphs, press CTRL+A on the
keyboard.
4. Format Document
You may want to change the appearance of the text in the Word document to your taste.
Formatting is the term used to describe this phenomenon. Carry out the following steps
to learn formatting:
i. Select the text you wish to format.
ii. In the Ribbon, make sure that the Home tab is selected. Move your mouse
pointer to the menu for changing the font style. Note that Font Style is the same
as Font face.
Font face
iii. In the dropdown menu, move your mouse pointer over the different font faces,
and the live preview feature of MS-Word 2007 will show you how each look.
Pick any font of choice.
iv. In the same way you can change the size of your text when you click in the
menu for font size, located just before the font face.
v. You can Bolden the selected text, italicize or underline when you click on B, I
and U respectively. Also to draw a line across your text, click abc. These
buttons are located just below the menu for font face.
5. Save a Document
After you have finish editing and formatting your work in MS-Word, it will be very
appropriate to save it in your computer or some external storage device; so that you can
access it later. To do this:
i. Click the Office Button.
ii. In the displayed menu select Save As. Note that you will use Save option when you
are working on a document that had been previously saved in your computer. On
the other hand, you will use Save As either when you saving a new document that
have been saved before or you want to save a copy of the document in another
location.
iii. Once you click Save As, the Save As dialog box pops up as shown below:
Location
to save
file
File
name
text
box
iv. In the file name text box, type the name you want to use to save the document and
in the left pane of the dialog box, you can choose the location to save you file.
v. Then click save.
6. Retrieve a Document
In a situation whereby you need to open an existing word document that you have created
before or that you collected from somebody, you can open such a document in MS-Word
2007 by following these steps:
i. Click the office button.
ii. In the displayed menu, Click Open. In the Open dialog box, click the location of the
file from the file location section in the left pane. You may need to scroll down to
see other locations.
iii. Once you have located the file, click on the file and then click Open in the right
bottom section of the Open dialog box.
iv. Then the file opens.
7. Print a Document
After you have finished working on your document, you may want to have the document
as a hardcopy. Printing involves the following steps:
i. Click the Office Button.
ii. In the displayed menu, click print.
iii. In the Print dialog box that pops up, choose the available printer from the Printer
name text box as labeled below:
Printer name
🔾🔾 Advantages of a Spreadsheet
🔾🔾 Introduction to Excel
Nam
e
CBo
x ell
Ro
w
H Vertic al
S Scroll bar Sta
or
h tus
iz
e Bar
o
e
nt
t
al
T
S
a
cr
b
oll
b
ar
● Cell: A cell is an intersection of a row and a column. Cells can contain various
types of data. A cell is referenced by the name of the column and row. For
example, the first cell A1 is in column A and row 1.
● Menu bar: A menu bar consists of various menus, such as File, Edit, and
View.
● Toolbar: A toolbar contains buttons that provide easy access to the commands
and functions of Excel.
● Formula bar: A formula bar contains tools for creating and editing formulas.
● Name box: A name box displays the name of a selected cell and a range of
cells.
● Horizontal scroll bar: A horizontal scroll bar serves as a tool to view the left
or right part of the worksheet that is not displayed on the screen.
● Vertical scroll bar: A vertical scroll bar serves as a tool to view the top or
bottom part of the worksheet that is not displayed on the screen.
Starting Excel
🔾🔾 To start Excel, we perform the following
Click Start � Programs � Microsoft Excel
● Before you decide the type of data to be inserted in the worksheet you should
know about the methods of representing information in a worksheet
⮚ Financial
To Create a Workbook
🔾🔾 To create a workbook, perform the following steps:
1. Select the File � New command (New Workbook task pane is displayed on
the right-hand side of the screen)
The New
Workbook
task pane
displays
the
following
sections:
Open
a
2. Select the Blank Workbook option from the New section. This opens a new
workbook, as shown:
🔾🔾 Alternatively, you can hold down the Ctrl key and press the N key to create a
workbook.
By default, the first cell A1 in a new worksheet is active when you create a new workbook.
Opening a Workbook
🔾🔾 When you start Excel, it opens a blank workbook
1. Select the File � Open command from Microsoft Excel Window to display
the Open dialog box
2. From the Look in drop-down list, select the folder that contains the file you
want to open
An alternative way to browse to the required location of the file is to click the Up one
level icon ()
3. Select the required file(s) from the list of files displayed in the dialog box
To open multiple adjacent files, select the first file in the block from the Open dialog box,
press the Shift key, and select the last file
🔾🔾 After adding data to a workbook, you need to save it for future use
1. Select the File � Save command from the Microsoft Excel Window (Save As
dialog box is displayed)
2. From the Save in list, select the folder in which you want to save the
workbook
3. Enter a file name in the File name text box of the Save As dialog box
4. Select the type of file that has to be saved from the Save as type drop-down
list
Alternatively, you can hold down the Ctrl key and press the S key to save a workbook
Closing the Workbook
🔾🔾 You need to close a workbook after you finish working on it
2. Click the Yes button to save the changes before closing the workbook. Click
the No button to close the workbook without saving the changes. Click the
Cancel button to return to the active worksheet without saving the workbook.
● Entering data
● Deleting data
🔾🔾 You can enter text, numbers, and date and time entries in a worksheet
⬥ As you type in the cell, the contents of the cell also appear in
the Formula bar
1. Select the cell where the date and time is to be entered and type the
required date and time.
2. There are many formats to enter the date, the most common are date
with hyphen or slashes, for example, 08-10-2006 or 08/10/2006
● To enter the current date, select the required cell and hold down the Ctrl key
and press the ; key.
To enter the current time, select the required cell and hold down the combination of Ctrl and
Shift keys and then press the : key.
● You can move data from one location to another. You can move data by using
the Edit menu or by using the shortcut key
● Alternatively, select the required cells, and drag the border of the selected cells
to the desired location in the current worksheet
● When you want the same data to be present at several locations, it is best to
copy this data rather than type it at each location
● You can copy data within a worksheet, across worksheets, across workbooks,
or even to and from other applications
● You can copy a part of the cell’s content or the entire cell. To copy the content
you can use menu command or by using the shortcut key.
● The steps to copy data to another location in the same worksheet are:
Alternatively, select the required cells, hold down the Ctrl key, and drag the selected cells to
the desired location in the current worksheet
🔾🔾 E.g., =A1+A2+A3 is a formula to add the contents of cells A1, A2, and A3
The Formula bar is a bar at the top of the Excel window that displays the formula of the
active cell
E
E nter
nter For
Formul
a
🔾🔾 The Formula bar is displayed by default. You can choose not to view the Formula Bar
To stop viewing the Formula Bar, select View � Formula Bar command. You can later
view the Formula Bar by selecting the same option.
● The formula specified must be preceded by an equal to (=) sign otherwise the
calculation will not be performed
⮚ =35 * 44
⮚ =23 ^ 2
⮚ =C5 -C3
⮚ =C1+C2+C3+C4+C5
⮚ =S3 - D6 * 44 / 3
🔾🔾 An important and useful feature of Excel is that it automatically recalculates the value
of the cell that contains a formula if the values of the cells to which the formula refers
to change. For example, the formula =C3+C4 in cell C5 is recalculated if the values of
cells C3 or C4 change.
Functions
🔾🔾 Excel provides many functions - mathematical, statistical, logical, etc.
🔾🔾 Mathematical functions
● Sum(), Product()
🔾🔾 Statistical functions
● Eg., =TIME(9,0,0) returns 9:00 A.M and =TIME(20,15,30) returns 8:15 P.M.
🔾🔾 Logical functions
● If(), Not()
E.g., For the formula =If(B2>70, “A”, “B”), a grade A is displayed if marks are above 70
and a grade B is displayed if marks are below or equal to 70.
C6 =
Practical Exercises on
Excel N180.00
A4 = FOOD ITEM C8 =
A5 = PORTION N170.50
CHIPS A6 = SADZA
& CHICKEN A8 =
HAMBURGER
A9 = SOFT
DRINKS C10 =
SUB TOTAL
COST
B4 =
QUANTITY B5
=3
B6 = 1
B7 = 1
B8 = 2
B9 = 3
C4 = UNIT
COST C5 =
N135.00
C9 = N65.00
D4 = COST
PERFORM THE FOLLOWING:
c) Input the formulae for the calculated amounts for subtotals, sales tax and total costin D10 –
D12 respectively.
Viruses, Trojan horses & worms are human-made software programs created
specifically to wreak havoc on personal computers and networks. The chance of
contracting one of these computer viruses over the Internet has increased dramatically.
In fact, unless you run anti-virus software, your computer will almost certainly become
infected. Typically, you get a virus by opening infected e-mail attachments.
Questions
1. Change the font type of the whole document to Courier or Courier new
2. Center the heading, underline it, increase the font size to 20 & change the font
type to Tahoma.
3. Perform a word count and type the number of words at the bottom of the
passage.
4. Double-space the paragraph.
5. Replace every occurrence of the word computer with the word PC & every
occurrence of the word viruses with the word WORMS.
6. Make the word worms bold & italic.
7. Save it as virus2 & produce a printout.
1. What does each of the following screen shots indicate in MS-word 2007
.
.INTERNET EXLORER
WINDOW MEDIA PLAYER
FILE EXPLORER
Internet explorer: Internet Explorer is a series of graphical web browsers developed by Microsoft and included in the
Microsoft Windows line of operating systems, starting in 1995. It was first released as part of the add-on package Plus! for
Windows 95 that year
Window media layer: is a media player and media library application developed by Microsoft that is used for playing audio,
video and viewing images on personal computers running the Microsoft Windows operating system, as well as on Pocket PC
and Windows Mobile-based devices.
File explorer: previously known as Windows Explorer, is a file manager application that is included with releases of the
Microsoft Windows operating system from Windows 95 onwards. It provides a graphical user interface for accessing the file
systems.
B.
----------------Text Area
To start the MS-Word 2007 program, follow these steps:
i. At the left corner of the task bar in the Windows Desktop, click the Windows Start Button.
Start Button
Note that the illustration above was done in Windows 7. The Start button for other Windows
Operating Systems like Windows XP and Windows Vista are located in the same place. So you
can still follow the steps – they follow the same path.
ii. In the Start Menu, as shown below, click the entry for All Programs
All Programs
iii. In the displayed list of all the programs in the computer, scroll down to Microsoft Office
folder. Click it; and it will show you the list of all Microsoft packages installed in your system.
iv. Then click Microsoft Office Word 2007;and then, the program opens.
---------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------
All Programs
C.
C.
Create a Document To create a new document in MS-Word 2007, follow these steps:
i. Click the office button.
ii. In the left pane of the displayed menu, click Open.
iii. A dialog box pops up. From the middle pane, choose Blank document from the two options: Blank document and New blog post
D.
D.. All Programs
i. Click the office button.
ii. In the left pane of the displayed menu, click Open.
iii. A dialog box pops up. From the middle pane, choose Blank document from the two options: Blank document and New
blog post.
iv. Now, click Create in the bottom of the right pane in the dialog box, and the new document opens.
E.
You may want to change the appearance of the text in the Word document to your taste. Formatting is the term used to describe this phenomenon. Carry
out the following steps to learn formatting:
ii. In the Ribbon, make sure that the Home tab is selected. Move your mouse pointer to the menu for changing the font style. Note that Font Style is the
same as Font face.
iii. In the dropdown menu, move your mouse pointer over the different font faces, and the live preview feature of MS-Word 2007 will show you how each
look. Pick any font of choice.
iv. In the same way you can change the size of your text when you click in the menu for font size, located just before the font face.
v. You can Bolden the selected text, italicize or underline when you click on B, I and U respectively. Also to draw a line across your text, click abc. These
buttons are located just below the menu for font face.
Name
F.
After you have finish editing and formatting your work in MS-Word, it will be very appropriate to
save it in your computer or some external storage device; so that you can access it later. To do
this:
i. Click the Office Button.
ii. In the displayed menu select Save As. Note that you will use Save option when you are working
on a document that had been previously saved in your computer. On the other hand, you will use
Save As either when you saving a new document that have been saved before or you want to save a
copy of the document in another location.
iii. Once you click Save As, the Save As dialog box pops up as shown below:
iv. In the file name text box, type the name you want to use to save the document and in the left
pane of the dialog box, you can choose the location to save you file.
H.
Row
1. What does each of the following screen implies in MS Excel
A.
B.
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
---------------------------------------------------------------------------
Sheet
Horizontal
C.
D.
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------
E.
F.
S
Vertical Scrollba r t
a
t
u
s
B
a
r
SEC
TION THREE
MANAGEME
NT SYSTEM
● A database can consist of a single data file (flat file database) or multiple files that can
be linked or related to each other (relational database).
● Within each file, data for a particular subject or entry is known as a record. A record
is typically displayed as a row in a tabular display of data.
● Each item of information within each record is known as a field or variable. A field is
typically displayed as a column in a tabular display of data.
● It can be used to create databases with multiple linked files; specialized forms for data entry
and viewing of data; computation of new variables; creation of new files from combinations
of merging and subsetting of other files; development of summary reports.
● MS ACCESS is designed to link with MS Excel and MS Word for easy sharing of files and
creation of reports across formats.
● Additionally MS ACCESS permits the creation of forms for web-acquisition of data, as
well as reports in html format that can be readily posted on the web.
● As a user of Access, you first define – by naming – a database or project.
▪ This will create a file with an .mdb (microsoft data base) extension, in the directory
you select.
▪ Tables: flat files for storing data, where columns represent fields or variables, and rows
contain data on a particular subject.
▪ Queries: sets of criteria for subsetting, merging or computing with data from your tables
to create new tables with summary results, or for use in creating reports.
▪ Forms: formats for entering and displaying data on the screen. Forms can be used to
access and enter or display data in more than 1 table as you move through a
questionnaire.
▪ Reports: are used to display summary results from data in tables or queries.
▪ Pages: web-pages for accessing / entering data through the internet.
▪ Macros: sets of actions that are stored as a unit, and can be applied within forms, queries
or reports.
▪ Modules: sets of programming statements (visual basic) that are stored together to
perform a set of actions. Can be used to run routine sets of pre-written queries and
reports.
● In this course we will focus on the development of TABLES and FORMS.
How to Create a Table
Step 1: Launch MS Access and open a new project
In this little example, the “key” or “linking” variable is not so relevant because we will be
creating just one table (meaning that, actually, there are not multiple tables to link).
Nevertheless, this step should be followed anyway.
● FIELD NAME - Type in your variable name here. Remember to choose variable names
that are meaningful and short.
▪ DATA TYPE - Click on the little drop down menu to the right of the field name. Once
this is selected, look at the bottom of your screen. A set of additional choices is available
under “field properties”.
▪ Field size (affects storage requirements -- # bytes) for both character and numeric data.
▪ Default value – a value automatically entered, unless you overtype it. Tip – A zero is
sometimes displayed as default for numeric data, and typically you will not want this.
Use the backspace to have a field left empty as a default.
▪ Required – use with care – place a requirement on all essential data, such as ID fields.
Overuse is a problem – you will not be allowed to save and exit data if you have left
required fields empty.
▪ DESCRIPTION - This where you type in your variable label.
● While you can enter data directly into the table you have created, you can gain much
more control of data entry by creating a form.
● Forms give you the option of creating a data entry page that looks something like the
data collection form itself.
● This can be a great aid in keeping your place on the form as you enter data from a long
and complex form. It allows the option of displaying additional text or instructions on-
screen as you enter data.
Forms also allow you to enter data into more than one table or data file, from a single form.
Step 1: Start your form by selecting “forms” from the panel at left. Then choose “create form
by using wizard”
Step 2: From the drop down list of tables/queries, choose the table that corresponds to the
form you are now creating
● You can then open the form in design view and add text, and move fields around, create
separate pages to group display on the screen, and other features.
● Design view gives you a toolbox with special features such as check boxes, and other
features that allow mouse actions for entry of data, in addition to entering text or
numbers.
Step 4: Choose the variables (“fields”) that you want to include on your form.
The form wizard then “walks” you through some design choices, specifically form layout,
background appearance, naming, etc.
Practical Questions
1. Create a database called STAFF SALARIES
2. Create a table within the database called HIGH GRADE SALARIES with the
following details (i.e. surname, firstname, ministry, department, personnel number,
gender and salary), ten (10) records & produce a print out.
3. Insert a column AGES after gender.
4. Change FIRST NAME to CHRISTIAN NAME.
5. Delete one record
6. Sort in ascending order by salaries.
7. Save as new salaries and produce another printout.
8. Design a columnar & tabular report extracting the following; Surname, Christian
name, Ministry, Department, Salary. Save as salaries & produce a print out.
1. Given the following fields, Name, ID Number, Age, Salary, Address. What are the
data types as it appears in MS Access.
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
----------------------------------------------------------------------------------------------------------------
SECTION FOUR
STATISTICAL PACKAGE
In 1968 at Stanford University, Norman H. Nie, a social scientist and doctoral candidate, C.
Hadlai (Tex) Hull, who has just completed master of business administration, and Dale H.
Bent, a doctoral candidate in operations research, developed a software system based on the
idea of using statistics to turn raw data into information that is essential for decision-making.
This statistical software system was called SPSS, the Statistical Package for the Social
Sciences. This software is the root of present day PASW, the Predictive Analytics Software.
Nie, Hull and Bent developed SPSS because they need to quickly analyse volumes of social
science data gathered through various methods of research. Nie represented the target
audience and set the requirements, Bent had the analysis expertise and designed the SPSS
system file structure; and Hull wrote the programmes. The initial work on SPSS was done at
Stanford University with the intention that it would only be used within the university. With
the launch of the SPSS user’s manual in 1970, however, the demand for SPSS software
expanded. The original SPSS user’s manual has been described as “Sociology’s most
influential book”. Because of its growing demand and popularity, a commercial entity, SPSS
Inc. was formed in 1975. Up to the mid-1980s SPSS was only available for mainframe
computers.
With advances of personal computers in the early 1980s, the SPSS/PC was introduced in
1984 as the first statistical package for PC that worked on the MS-DOS platform. Similarly,
SPSS was the first statistical product for the Microsoft Windows (version 3.1) operating
system when a version for Windows 3.1 was launched in 1992.
Since then SPSS has been regularly updated to fit in and exploit the advance features of new
operating systems, and to fulfil the growing needs among users.
SPSS has a base system with additional optional components or modules. Most of the
optional components are add-ons to the base system. However, some optional components,
such as the Data Entry component, works independently.
The base system, main component for running SPS, has the following functions:
Data handling and manipulation: importing from and exporting to the other data
file formats, such as Excel, dBase, SQL and Access; and allowing sampling, sorting,
ranking, subsetting, merging, and aggregating the data sets.
Basic statistics and summarisation: Codebook, Frequencies, Descriptive statistics,
Explore, Crosstabs, Ratio statistics, Tables.
Significance testing: Means, t-test, ANOVA, Correlation (bivariate, partial,
distances) and Nonparametric tests.
Inferential statistics: Linear and non-linear regression, Factor, Cluster and
Discriminant analysis.
DATA HANDLING
Before conducting any statistical or graphical analysis, one must have the data in a formamenable to a
reliable and organised analysis.
Reading (opening) the data set
Data can be obtained in several formats:
SPSS files
Spreadsheet - Excel, Lotus
Database - dbase, paradox
Files from other statistical programs
ASCII text
Complex database formats - Oracle, Access
Variable Type
Choose the Type of data that the variable should be stored as. The most common choice is“numeric,”
which means the variable has a numeric value. The other common choice is“string,” which means the
variable is in text format. Below is a table showing the data types:
TYPE EXAMPLE
Numeric 1000.05
Comma 1,000.005
Scientific 1 * e3(the number means 1 multiplied by 10raised to the power 3, i.e. (1)*(103)
Dollar $1,000.00
String Alabama
SPSS usually picks up the format automatically. As a result, you typically need not worry aboutsetting
or changing the data type. However, you may wish to change the data type if:
1. Too many or too few decimal points are displayed.
2. The number is too large. If the number is 12323786592, for example, it is difficult toimmediately
determine its size. Instead, if the data type were made “comma,” then thenumber would read as
“12,323,786,592.” If the data type was made scientific, then the number would read as “12.32*E9,”
which can be quickly read as 12 billion. ("E3" is thousands, "E6" is millions, "E9" is billions.)
3. Currency formats are to be displayed.
4. Error messages about variable types are produced when you request that SPSS conduct a
procedure7. Such a message indicates that the variable may be incorrectly defined.
To change the data "Type," click on the relevant variable. Go to DATA/ DEFINE VARIABLE.
Sorting of Data
Sorting defines the order in which data are arranged in the data file and displayed on your screen.
When you sort by a variable, X, then you are arranging all observations in the file by the values of X,
in either increasing or decreasing values of X. If X is text variable, then the order is alphabetical. If it
is numerical, then the order is by magnitude of the value. Sorting a data set is a prerequisite for
several procedures, including split file, replacing missing values, etc.
Go to DATA
Filtering data
It will often be the case that you will want to select a Sub-set of the data according to certain criteria.
In effect, you want to temporarily “hide” some data based on some criteria run your analysis, then
have those cases back in your data set. Such data manipulation is refered to as data filtering. It allows
a more pointed analysis in which sections of the sample (and thereby of the population they represent)
can be studied while disregarding the other sections of the sample.
If your analysis, indicates the need to study such sub-set separately, then use DATA/ SELECT CASE
to create such sub-sets.
UNIVARIATE ANALYSIS
A proper analysis of data must begin with an analysis of the statistical attributes of each variable
in isolation - univariate analysis. From such an analysis we can learn:
how the values of a variable are distributed - normal, binomial, etc.
the central tendency of the values of a variable (mean, median, and mode)
dispersion of the values (standard deviation, variance, range, and quartiles)
presence of outliers (extreme values)
if a statistical attribute (e.g. - mean) of a variable equals a hypothesized value
Select the variable of your choice. Place it intothe box “Category Axis.” Thisdefines the X-axis.
On the top of the dialog box you will see the options for the information on the variable of your
choicethat can be shown in the bar graph. Select the option “N of Cases.” Click on “OK."
The same procedure is followed for other types of graph.
PRACTICAL QUESTIONS
1. The table below shows the number of kilo of cassava produces on the UNAAB farm
during 1995 and 2005. With reference to this table use SPSS to determine the year(s)
which
Year (t) Number of kilo of yam (P) Number of kilo of maize (S)
1995 200 75
1996 185 80
1997 225 100
1998 250 85
1999 240 80
2000 195 100
2001 210 110
2002 225 105
2003 250 95
2004 230 110
2005 235 100
2. Let P and S denote respectively the number of kilo of yams and maize produced
during the year t and on the UNAAB farm. It is clear that P and S are both functions
of t. Using SPSS package to do the following
a. Find P when t = 2004
AGRICULTURAL INFORMATION
SYSTEMS
Agriculture is the mainstay of the economy of many countries in the Asia-Pacific region as
nearly 60 percent of its population derives livelihood from agriculture. The region has several
hot spots of rural poverty, as most farmers in the region are smallholders with diverse farming
systems, which are highly risk prone. In addition, these farmers have poor access to support
services such as extension and the agricultural markets, knowledge, technology and financial
credit. Obviously, a revolution is needed not only to produce more food in the region, but also
to enable participation of its farmers more equitably in innovations and markets to reduce rural
poverty, generate better rural livelihoods and maintain quality of life and environment. This
revolution could be termed as knowledge revolution and there are already some visible signs
that Asia-Pacific rural agriculture is in midst of it. The new Information and Communication
Technologies (ICT) are bringing about and sustaining this revolution by empowering the
resource-poor farmers with up-to-date knowledge and information about agricultural
technologies, best practices, markets, price trends, consumer preferences, sources of finance,
weather, soil-moisture conditions and the environment. AIS can also be used to monitor the
daily financial transactions of the farming activities. An example of this is the use of
Spreadsheet application for the purpose of keeping financial records.
Expert system can be defined as a tool for information generation from knowledge. Information
is either found in various forms or generated from data and/or knowledge. Text, images, video,
audio are forms of media on which information can be found, and the role of information
technology is to invent, and devise tools to store and retrieve this information. Statistical
information is a good example of information generated from data while advises generated by
an expert system is a good example of information generated from knowledge.
In other words, an expert system is a computer program that simulates the judgement and
behavior of a human or an organization that has expert knowledge and experience in a particular
field. Typically, such a system contains a knowledge base containing accumulated experience
and a set of rules for applying the knowledge base to each particular situation that
is described to the program. Sophisticated expert systems can be enhanced with additions to
the knowledge base or to the set of rules. Among the best-known expert systems have been
those that play chess and that assist in medical diagnosis.
ES is considered as artificial intelligence based system that converts the knowledge of an expert
in a specific subject into a softwarecode. This code can be merged with other such codes (based
on the knowledge of other experts) and used for answering questions (queries) submitted
through a computer.
ii. An Inferenceengine that interprets the submitted problem against the rules and logic of
information stored in the knowledge base; and
iii. An Interface that allows the user to express the problem in a human language such as
English. Despite its earlier high hopes, expert systems technology has found application
only in areas where information can be reduced to a set of computational rules, such as
insuranceunderwriting or some aspects of securitiestrading. Also called rule based system.
Many copies of an expert system can be made, but training new human experts is time-
consuming and expensive. It can increase throughput and decrease personnel costs. Although
expert systems are expensive to build and maintain, they are inexpensiveto operate.
Development and maintenance costs can be spread over many users. The overall cost can be
quite reasonable when compared to expensive and scarce human experts. With expert systems
similar transactions handled in the same way. The system will make comparable
recommendations for like situations. Humans are influenced by recency effects (most recent
information having a disproportionate impact on judgment) primacy effects (early information
dominates the judgment).
The need of expert systems for technical information transfer in agriculture can be identified
by recognizing the problems in using the traditional system for technical information transfer,
and by proving that expert systems can help to overcome the problems addressed, and are
feasible to be developed.
Static Information: Examining the information stored and available in the agriculture domain
revealed that this information is static and may not respond to the growers need. All extension
documentations give general recommendations because there are many factors, if taken into
consideration, so many different recommendations should be included in the document.
Specialties Integration: Most of the extension documents handle problems related to certain
specialty: plant pathology, entomology, nutrition, or any other specialty. In real situations the
problem may be due to more than one cause, and may need the integration of the knowledge
behind the information included in the different extension documents and books.
Combination of more than one information source: Images may need sometimes an
expert to combine other factors to reach an accurate diagnosis, and even if a diagnosis is
reached, the treatment of the diagnosed disorder should be provided through extension
document.
Updating: Changes in chemicals, their doses, and their effect on the environment should be
considered. Updating this information in documents and distribute them takes long time. The
same arguments can be made for audio tapes that are another form of extension documents but
in voice instead of written words. Video tapes are more stable than other media as the
information provided through the tape describes usually well-established agricultural
operations. However, if the tape includes information as what is
commonly included in documents and audio
tapes, this information should be updated.
Information unavailability: Information may not be available in any form of media. It is only
available from human experts, extensionists, and/or experienced growers. In addition, the
information transfer from specialists & scientists to extensionist and farmers, represents a bottle
neck for the development of agriculture on the national level. The current era is witnessing a
vast development in all
fields of agriculture. Therefore there is a need to transfer the information of experts in certain
domain to the general public of farmers, especially that the number of experts in new
technologies is lesser than their demand.
QUESTIONS
1. Briefly enumerate the benefits of ICT to agriculture.
What difference is there between an algorithm and a program? The firstthing to underline is
that an algorithm is meant in general to be performedby a human while the computer
performs a program. Also, a programis a sequence of instructions, each of which causes an
action. But does asequence of instructions cause a sequence of actions? The answer is not
onlynegative but we can point out that each sequence of actions causes dynamic
sequences which are not only unknown beforehand but are in fact infinitethe algorithm for a
phone call is an example, assembly of an applianceanother).In a program the static sequence
(lexicographical sequence) describesmultiple dynamic sequences (possible different
executions). In short, associatedwith the instructions that cause the actions we need phrases
orlinguistic mechanisms that, according to whether a certain event is verifiedor not, drives the
performer to carry out one sequence of actions ratherthan another. These instructions are
called control instructions.
Control Structures
What kinds of control instructions are necessary in order to describethe algorithms? The
definition of the dynamic sequences happens throughlinguistic mechanisms that implement
three fundamental operations:
(a) Sequence: the instructions are performed in "sequence" that is in theorder in which they
were written.
(b) Selection: the instructions to be executed are selected according towhether a logical event
is verified or not.
(c) Iteration: a block of instructions must be repeated; the execution andthe repetition of the
block are stopped when a logical event is verifiedor not.
Properties ofAlgorithm
Input
Objects
A
output
Objects
Performer
Algorithmic Tools:
• A pseudocode is a procedure of the operations for accomplishing a task without
details of any programming language syntax. It is another tool commonly used to
represent an algorithm. Pseudocode presents an artificial and informal way for
programmers to develop algorithms. It is a "text-based" detail (algorithmic) design
tool. It must be noted that all statements like while, do, for, if, switch that show
dependency are to be indented.
Pseudocode is anEnglish language constructs modelled to looklike statements available in
most programminglanguages. It has some basic and peculiar attributes. They are:
⮚ Steps are presented in a structured manner (numbered, indented, and so on)
⮚ No fixed syntax for most operations is required
⮚ Less ambiguous and more readable than natural language
⮚ Emphasis is on process, not notation
⮚ Well-understood forms which allow logical reasoning about algorithm behaviour
• It can be easily translated into a programming language.
Pseudocode-Example
Example 1: To display information in terms of Age
If Customer Age is greater than or equal to 40
Print “Adult“
Else
Print “Youth"
The shapes we will use are the circle, the rectangle, the parallelogram, the diamond, and the
arrows that interconnect them.
Circle - Entry/Exit Point
The circle indicates the entry and exit point for the program - or for the current segment of
the program. The entry point has exactly one arrow leaving it and the exit point has exactly
one arrow entering it. Execution of the program - or of that segment of the program - always
starts at the entry point and finishes at the exit point.
Rectangle - Task
The rectangle represents a task that is to be performed. That task might be as simple as
incrementing the value of a single variable or as complex as you can imagine. The key point
is that it also has a single entry point and a single exit point.
Parallelogram - Input/Output
The parallelogram is used to indicate that some form in input/output operation is occurring.
They must also obey the single entry single exit point rule which makes sense given that they
are a task-block except with a slightly different shape for the symbol. We could easily
eliminate this symbol and use the basic rectangle but the points at which I/O occur within our
programs are extremely important and being able to easily and quickly identify them is
valuable enough to warrant dealing with a special symbol.
Since a Task block can be arbitrarily complex, it can also contain I/O elements. Whether to
use a rectangle or a parallelogram is therefore a judgment call. One way to handle this is to
decide whether a task's primary purpose is to perform I/O. Again, that is a judgment call.
Another option is to use a symbol that is rectangular on one side and slanted on the other
indicating that it is performing both I/O and non-I/O tasks.
The diamond represents a decision point within our program. A question is asked and
depending on the resulting answer, different paths are taken. Therefore a diamond has a
single entry point but more than one exit point. Usually, there are two exit points - one that is
taken if the answer to the question is "true" and another that is taken if the answer to the
question is "false". This is sufficient to represent any type of branching logic including both
the typical selection statements and the typical repetition statements. However, most
languages support some type of "switch" or "case" statement that allows the program to select
one from among a potentially large set of possible paths. The basic two-exit-point diamond is
fully capable of representing this construct, but it is generally cleaner and more useful to
represent it using a as many exit points from the diamond as there are paths.
Arrow - Interblock Flow
The arrows simply show which symbol gets executed next. The rule is that once an arrow
leaves a symbol, it must lead directly to exactly one other symbol - arrows can never fork and
diverge. They can, however, converge and join arrows coming from other blocks.
Examples
I. Compute the average of 3 grades (valid input: 1-9); if anyone is 0 or negative, a message
Bad data is printed
Solution:
Get values for x, y, z
If x < 1 or y < 1 or z < 1 then
Print message, .Bad data.
Else
Set Average to (x + y + z) / 3
Print the value of Average
Stop
2. Write some pseudo code to solve some specific Agricultural related problems in your field
of study.
3. Draw the flowchart for the problem solved in question 2.