I.C.T 11TH Grade Second Term Note Edited
I.C.T 11TH Grade Second Term Note Edited
I.C.T 11TH Grade Second Term Note Edited
Subject: ICT
CLASS: 11TH GRADE
INSTRUCTOR: Mr. PRINCE EZEALI
NAME: …………………………………………………………………………………..
CLASS: ……………………………………………………………………………………
DATE: …………………………………………………………………………………….
1
11TH GRADE SCHEME OF WORK FOR ICT
5-6 Algorithm, pseudo code and a) Define algorithm, pseudo code and flowchart.
flowchart b) State and describe the characteristics of an
algorithm.
c) Understand the methods of developing an
algorithm.
d) Differentiate between a detailed algorithm
and pseudo code with an example.
e) List flowchart symbols.
f) State what each symbol stands for.
g) Write an algorithm for solving a problem.
h) Draw a flowchart for solving a given problem.
11 Revision
12 Examination
3
LESSON NOTE 2-3
Learning objectives: at the end of the lesson you should be able to:
NOTE
Examples:
A computer system is made up of hardware and software which function together to achieve a
result.
Human system is made up many organs like the hands legs, eyes, etc, that are interrelated and
form human being.
INFORMATION SYSTEM
Information system is an integrated set of components for collecting, storing and processing data and
provides information needed to complete a task.
a) Hardware
b) Software
c) Data
d) Procedures
e) People
f) Communication/connectivity
Activity 1:
4
A SYSTEM DEVELOPMENT LIFE CYCLE(SDLC) is the overall process of developing information system. It is
a series of steps that a project team works through in order to analyze, design, construct and implement
a new information technology system that can support the business needs of an organization.
SDLC makes use of waterfall model in developing an information system. The waterfall SDLC is a
sequence of stages that must be followed one after the other. Stage two can only begin when stage one
is completed. Therefore the output of each stage becomes the input for the next stage.
3) SYSTEM ANALYSIS STAGE: this stage starts with a more detailed investigation into the existing
system. This involves studying the business processes, gathering operational data; understand
the information flow, finding out bottlenecks and how to improve the system.It is more of a
thinking process and involves the creative skills of the System Analyst. The output of this stage is
the user’s requirement.
4) SYSTEM DESIGN STAGE: at this stage the proposed system is designed. It involves layout plans
for the physical construction, hardware requirements, screen layouts, process diagrams,
flowcharts, trainings, workload and limitation of the system are decided in this stage, it is the
most crucial stage. The system design produces the system specification.
5
5) DEVELOPMENT/CODING: The system design needs to be implemented to make it a workable
system. This is also called the programming phase in which the programmer converts the system
specifications into computer instructions, which we refer to as programs using a specified
programming language.
6) INTEGRATION/TESTING: all parts of the system is integrated together and tested for bugs
(error) and how they operate.
7) IMPLEMENTATION: once the system is fully tested, the next stage is to fully implement it. Some
of the stages in this process are shown below.
Software
Installation
Hardware
6
SKILLS OF A SYSTEM ANALYST
Activity 3:
1. If you are to be a system analyst, describe the steps you will take to solve a problem.
EVALUATION:
7
LESSON NOTE 4
Learning objectives: at the end of the lesson you should be able to:
1. Define a program.
2. Mention the characteristics of a good program.
3. State the precautions to be taken when writing a program.
4. List the steps involved in program development.
5. Describe each of the steps involved.
6. Mention the function of compliers and interpreters.
7. Draw a flow diagram on how:
a) Complier
b) Interpreter works.
NOTE
Computer Program
When you create a program, you write it using some kind of computer language. Your language
statements are called the source program. You then “compile or interprets” the source program (with a
special program called a language compiler or interpreter) and the result is called an object program.
The object program contains the strings of 0s and 1s called machine language that the logic processor
works with.
Characteristics of a good program
Maintainable: a good program should be very easy to amend and maintain if need be.
Accurate: every good program must be free from bug.
Readable: a program should be easy for other programmers to read and understand.
Reliable: a good program should be depended at all time.
Efficient: ability to solve a problem without waste resource.
Before a good program developed, there must be proper planning and steps on how the problem or
program will be solved. The chat below illustrates the steps involved:
8
Description of each stage
3) ALGORITHM AND FLOWCHART DEVELOPMENT: During this phase, the programmer develops
astep by step procedure and a diagrammatical representation to solve the problem using the
specification given in the previous phase.
5) TESTING AND DEBUGGING: The written program is tested and errors corrected to check if
theprogram is able to solve the problems it is expected to solve. This is similar to proof
reading.
6) MAINTENANCE: This phase involves the updating and amending the program which is
activelyused by the users.
9
Object code/machine code: this is the machine code obtained by converting source code. The
computer can read and execute the machine code directly. It can also be called binary code.
What is a translator? A translator accepts source code (written in high-level language) and translates it
to equivalent machine code (0s and 1s).
High level language makes use of two translators, which are:
1. Compliers
2. Interpreters.
Activity 1:
1. Give the characteristics of a complier and interpreter.
2. Explain the flow diagram on hoe complier and interpreter works.
10
LESSON NOTE 5-6
Learning objectives: at the end of the lesson you should be able to:
NOTE
Characteristics of an algorithm
PSEUDO CODE is an informal language that helps programmers develop algorithm. It omits detailed
language-specific syntax.
EXAMPLE
11
Pseudo code
Detailed algorithm
Activity 1:
FLOWCHART is the diagrammatical representation of an algorithm. it are used to indicate how data
flows from top to bottom. Flow chart symbols are specific shapes used to create a visual representation
of a program.
All symbols of the flowchart are connected by flow lines (note: arrows not lines).
12
Flow lines enter the top of the symbol and exit out the bottom, except for decision symbol,
which can have flow lines exiting from the bottom or the sides.
The beginning and the end of the flowchart is indicated using the terminator symbol.
Assignment 1:
Draw 10 flowchart symbols, stating their:
Name and function.
(Note: exclude the once in your note.)
Example 1: Pseudo code
Draw a flowchart to calculate the total and Input the width (W) and length (L) of a
average of 4 numbers. rectangle.
Calculate the area (A) by multiplying L
start with W.
Print A.
Algorithm
Input N1, N2,
N3, N4 Step 1: input width (W), length (L).
Step 4: end.
Flowchart
Average=(N1+N2+N3+N
4)/4 start
Print AREA
End
Example 2:
END
Write an algorithm and draw a flowchart that
will read the two sides of a rectangle and
calculate its area.
13
Activity 2:
A. Write an algorithm and draw a flowchart that will read the radius of a circle and calculate its
area.
B. Write an algorithm and draw a flowchart to convert centigrade to Fahrenheit.
C. Write an algorithm and draw a flowchart to calculate the multiple of 4 numbers and their
average.
D. Write an algorithm and draw a flowchart to calculate the area of a triangle with base B and
height H.
Decision Structures
Start
Input A, B
Is A>B
Print A Print B
Stop
14
Activity 3:
1. Write an algorithm that reads two values, determines the maximum value and prints the
largest value with an identifying message.
2. Use the table to answer the question.
wage
Hours worked payment
≥ 14 $100
≤ 13 $50
1. Write an algorithm and draw a flowchart to read an employee name, hours worked and
determine the payment.
EVALUATION:
15
LESSON NOTE 7-9
Learning objectives: at the end of the lesson you should be able to:
NOTE
Beginners All-purposeSymbolic Instruction Code is a high level programming language for beginners
because it is easy to use and understand. BASIC is available in both complier and interpreter.
Activity 1:
1. BASIC language was developed by whom?
Versions of BASIC
QBASIC
Visual BASIC
Tiny BASIC
Microsoft BASIC
Apple soft BASIC
CBASIC (compiled BASIC)
Character sets
1. Alphabet
2. Numeric
3. Special characters.
Activity 2:
1. Which character set includes 0-9
2. What are character set?
3. Fill the box with special characters you know (name and symbol)
Operators
These are symbols used to perform arithmetical and logical operations.
a) Mathematical operators: makes use of BEDMAS instead of BODMAS in its operation.
16
Fill the box with mathematical operator you know (name and symbol)
Activity 3:
Write the following mathematical equation in BASIC notation.
𝑷𝑹𝑻
(a) I = (b) Y=AX2+BX+C (c) Z=Y=MX2+ C
𝟏𝟎𝟎
Data Types
Data types are categorized into two parts:
1. Constants: constant is a fixed value that does not change at the time of execution of the
program.
Numeric constants
Alphanumeric/string constants: this is a sequence of letters/characters in double quotes.
E.g. “I love computers” and “1st January 2018”.
2. Variables: this is a value that changes at the time of execution. Variables are used to hold string
and numeric in a memory.
String variable name ends with a dollar sign $.
Numeric variable name ends with a percentage sign%.
Rules for naming variables
a) A variable must start with an alphabet and not a number of special characters.
b) Alphabets maybe followed by digits e.g. NUM1, A2, etc.
c) A variable must not have a blank space between it.
d) BASIC keywords cannot be used as a variable name.
e) String variable must end with a dollar sign$.
7. PRINT: this is used to display the output on the screen. More than one value can be printed
through the PRINT statement by separating them with a comma (,) or a semicolon (;).
Comma: if a comma is used, the values are separated by a double space.
Semicolon: values are separated by just one space.
PRINT “hello world”
PRINT 5+2
8. IF-THEN-ELSE: this is a conditional control statement. The instruction causes the program to
perform a conditional branch based on whether the test. If “IF” is true then “THEN” is executed.
If “IF” is false then “THEN” is ignored and “ELSE” is executed.
INPUT “AGE”; A
IF A>18 THEN PRINT “YOU ARE AN ADULT” ELSE PRINT “YOU ARE A MINOR”
18
LET C= 20
LET D= 2
LET SUM= A+B+C+D
PRINT SUM
END
Activity 4:
1. Write a program to enter your name, city, country, and print them
2. Write a program to determine the area of a rectangle {area=L*B}
3. Write a program that accepts mass and volume of a liquid as input from the user. The program
should compute and display the density of the liquid {density= mass/volume}
4. Develop a BASIC program that will Read the age of the following student:
kene, Chelsea, Sammy, nonso, ezinne, and Emmanuel.
Calculate their average.
Determine if kene is older than Emmanuel.
Evaluation:
1. What is BASIC?
2. Name three versions of BASIC.
3. What are character set?
4. What are the different types of character set? Give examples.
5. Differentiate between constants and variables.
6. What are the following commands used for?
a) CLS
b) LET IF-THEN-ELSE
c) PRINT
19
LESSON NOTE 10
Learning objectives: at the end of the lesson you should be able to:
NOTE
They are mathematical function that is built into BASIC. Some common BASIC functions are shown
below:
20
iv. Y=A sin (wt + 2πx)
2. Write a program that will compute the square root of the average of 5 numbers.
3. Write a program that will compute the following mathematical expression
i. J= b2+c2-2bccosA
ii. Y=A sin (wt + 2πx)
𝐛
iii. 𝒙= 𝐬𝐢𝐧 𝐀
𝐛𝐜
iv. 𝒙= 𝐭𝐚𝐧 𝐱
Given that: b=15, c=7.8, cos A= 19.4, sin A= 16.71, w=6, t=15, π= 3.142, x= 17, tan x= 18.8.
Evaluation:
21