Jss 2 Ict 1st Term Lesson Notes
Jss 2 Ict 1st Term Lesson Notes
Constituents of a Computer
● Hardware
● Software
i. Hardware is the parts of the computer you can see, touch, or handle.
Examples of Hardware:
a. PC Case
b. Motherboard
c. Hard Disk Drive (HDD)
d. Floppy Disk Drive (FDD)
e. Compact Disk Drive (CDD)
f. Digital Video Disk Drive (DVD)
g. Monitor
h. Keyboard
i. Power supply circuit
j. Mouse
k. Cables and wires.
Note
System Unit: System unit is that part of the computer that houses electronic components of the computer
used to process data.
Peripherals: Peripherals refer to all hardware devices that are attached to the computer and are controlled
by the computer system.
Week 3: Computer Software
Definition of Software
Software is a set of instructions and procedures passed to the computer to perform certain activities or
tasks.
Types of Software
1. System Software
System software is programs that help run the computer hardware and application software. These are
Operating system, Utility software and Translators.
● Operating system
Operating System is a software program that manages the hardware and software resources of the
computer.
Examples: Disk Operating System, Microsoft Windows, UNIX, LINUX, MAC, Android, IOS, Ubuntu,
Chrome, etc.
● Utility software
Utility software are used for general housekeeping of the computer.
Examples: File manager or explorer, Anti-virus, Network manager, Disk cleanup software, Data
compression utilities, Disk defragmenter or partitioner, etc.
● Translators
Translators are programs for converting programs in other languages into machine language instruction so
that the computer can execute them.
Examples: Assembler, Compiler, Interpreter and Decompilers.
2. Application Software
These are software that allows humans to accomplish one or more specific tasks.
8 229
8 28 r 5
8 3 r 4
0 r 3
Binary to Hexadecimal
Binary to Hexadecimal Table Conversion
Bin 0000 0001 0010 0011 0100 0101 0110 0111
Hex 0 1 2 3 4 5 6 7
Bin 1000 1001 1010 1011 1100 1101 1110 1111
Hex 8 9 A B C D E F
Next, group the binary digits into sets of four, starting with the least significant (rightmost) digits. Then,
look up each group in the table above.
Decimal to Octal
Example 1: Convert 179210 to base 8
Solution:
8 1792
8 224 r 0
8 28 r 0
8 3 r 4
0 r 3
Therefore 179210 = 34008
Decimal to Hexadecimal
Example 1: Convert 179210 to Hex.
Solution:
16 1792
16 112 r 0
16 7 r 0
0 r 7
Therefore 179210 = 70016
Octal to Decimal
Example 1: Convert 3458 to decimal.
Solution:
Using the usual mathematics method of multiplying each digit by increasing power we have:
3458 = (3 x 82) + (4 x 81) + (5 x 80)
= (3 x 64) + (4 x 8) + (5 x 1)
= 22910
9
Hexadecimal to Octal
When converting from hexadecimal to octal, it is often easier to first convert the hexadecimal number into
binary, and then from binary into octal.
Example 1: Convert A2DE16 to Octal.
Solution:
Binary to Hexadecimal Table Conversion
Bin 0000 0001 0010 0011 0100 0101 0110 0111
Hex 0 1 2 3 4 5 6 7
Bin 1000 1001 1010 1011 1100 1101 1110 1111
Hex: 8 9 A B C D E F
From the above table:
A = 1010
2 = 0010
D = 1101
E = 1110
Therefore A2DE16 = 10100010110111102
Week 6: Units of Storage in Computers.
Definition of Computer Units of Storage.
Units of storage in the computer are the denominators used to quantify the volume of data or instructions
in a computer or on a storage medium.
Units of storage
● Bit (b): Bit is an acronym that stands for Binary digits. It is the smallest unit of data on a binary
computer. A single bit consists of 0 (zero) or 1 (one).
● Nibble: A nibble is a collection of four bits.
● Bytes (B): A byte consists of eight bits. It is the fundamental unit of storage on a binary
computer.
● Word: A word is a collection of 32 bits.
● Kilobyte (KB): A Kilobyte consists of 210 (1,024) Bytes which is approximately 1000 Bytes.
● Megabyte (MB): One Megabyte consists of 220 (1,048,576) Bytes.
● Gigabyte (GB): A Gigabyte is a collection of 230 (1,073,741,824) Bytes.
● Terabyte (TB): A Terabyte consists of 240 (1,099,511,627,776) Bytes.
● Petabyte (PB): A Petabyte consists of 250 (1,125,899,906,842,624) Bytes.
● Exabyte (EB): An Exabyte consists of 260 (1,152,921,504,606,846,976) Bytes.
● Zettabyte (ZB): A Zettabyte consists of 270 (1,180,591,620,717,411,303,424) Bytes.
● Yottabyte (YB): A Yottabyte consists of 280 (1,208,925,819,614,629,174,706,176) Bytes.
The conversion process from one unit to another can be done using the relationships below.
1 bit = 0 or 1
1 nibble = 4 bits
1 byte = 8 bits
1 word = 16 bits
1 kilobyte = 1024 bytes
1 MB = 1024 KB
1 GB = 1024 MB
1 TB = 1024 GB
1 PB = 1024 TB
1 EB = 1024 PB
1 ZB = 1024 EB
1 YB = 1024 ZB
Example 1: Convert 1200 bits to byte
Solution:
1 byte = 8 bits
1200÷8 = 150 bytes
Assignment
Convert 1.22 mb to bytes
WEEK 7: MID-TERM BREAK
Week 8: Programming Language
Definition of Terms:
● Program: A computer program is a sequence of related instructions (commands) that tell the
computer how to accomplish a specific task.
● Programming: Programming is the act of writing computer programs.
● Computer language: Computer language is a language used by, or associated with the computer.
● Programming Language: Programming language is a means through which a programmer
communicates with the computer in solving different categories of problems.
● Syntax: Syntax are a set of rules governing how the words in the language are written.
● Semantics: Semantics are meanings associated with each word used in a particular language.
Advantages
1. It is directly understood by the computer.
2. Programs written in machine language run very fast.
3. Programs written in machine language needs less memory to run
Disadvantages
1. All operation codes have to be remembered
2. It is machine dependent
3. It is hard to amend or find errors in a program written in machine language.
Operation Operators
Addition +
Subtraction -
Multiplication *
Division /
Exponentiation ^
Rules for BASIC Arithmetic Expressions.
Every arithmetic expression must appear on a single line. There is no superscript in BASIC as we find in
algebra.
BASIC Variables.
Variables are names that are used to represent some storage location.
Types of Variables
● Numeric Variables: These are used to store numeric values such as 23, 98, 1.44 etc. Examples of
numeric variables are; N, Y, P, SUM, AVERAGE, etc.
● String Variables: These are used to store alphabetic and alpha-numeric values. The last character
in a string variable names is the dollar ($) sign. E.g. Name$, Color$, X$, etc.
Constants
Constants are values stored or assigned to variables.
● READ-DATA Statement
READ and Data statements are BASIC key statements that must be used together to put data in a line of
the program and to read the data when it is needed.
Example:
READ A, B, C
DATA 5, 6, 7
LET SUM = A+B+C
PRINT SUM
END
● PRINT statement
This statement is used to transmit data from the computer memory to the output device.
Examples:
PRINT A, B, C
PRINT “I Like Writing Program”
● GO TO statement
This statement transfers program control from the line number that contains the statement to the specific
number after the GOTO statement.
Example:
10 REM GO TO statement
20 GOTO 40
30 PRINT “Good morning”
40 END
In the case above the program’s control is transferred from line 20 to line 40. This means that the program
would end when the execution gets to line 20.
Example 2:
Program to calculate the perimeter and Area of a Rectangle