Grade 7 Computer Science
Grade 7 Computer Science
What is a computer?
A computer is an electronic device that process or converts data into information.
A computer receives, stores, organizes and processes data into information.
A computer uses programs which are sets of instructions which a computer follows to perform
tasks
What is Data?
Data refers to raw facts such as numbers, symbols, images and letters that are not processed and
have no meaning to the user.
Data is plural while in singular it is datum.
Data is not meaningful to the user until it is processed.
What is information?
It refers to processed data that is meaningful to the user.
Information is meaningful to the user.
Examples of computers.
Notebook.
Desktop.
Laptop.
Tablets.
PDA (Personal Digital Assistant)
Electronic calculators.
ATM Machines.
Smartphone.
characteristics of Computers.
Speed-computers perform tasks faster compared to human beings.
Accuracy-a computer performs tasks without any errors if the correct data is entered.
Reliability-a computer is reliable as it gives consistent output results for similar tasks.
Automation-a computer is an automatic machine. It starts a task from beginning to end
without requiring human assistance.
Versatility –versatility is the capability of a computer to perform different tasks. A
computer can be applied in education, agriculture, military and medical fields.
No logical decision-a computer cannot work on its own without being instructed by a
user hence it is not intelligent enough on its own.
Diligence –a computer can perform millions of tasks without getting tired. It does not get
fatigue or loss concentration like human beings.
Storage-computers have onboard storage facilities or memory for storing data and
information either temporarily or permanently which can be retrieved to be used later.
USES OF COMPUTERS.
A computer is used to store, process and retrieve data.
A computer can be used to perform calculations such as addition, division, multiplication and
subtraction.
It can also be used to draw diagrams, listen to music, play games and search for information
from the internet.
A person can use a computer to type documents and send electronic mails (e- mails.
Computer processing cycle means the process that take place in a computer from the time data is
entered into the computer through an input device to the time processed data(information) is
presented to the user through an output device. Stages of Computer Processing Cycle.
1. Input.
2. Processing.
3. Storage.
4. Output.
A computer receives data and instructions during the input stage through the input devices.
The instructions are applied to data during the processing stage. These instructions help in
performing operations on the data entered in the computer in order to produce information.
The information is saved in a computer during the storage stage. Storing is done to avoid re-
entering data and instructions or reprocessing information. The stored data is always available
for future use.
The computer presents information at the output stage through an output device.
Application of Computers.
Computers are used in businesses-to enable scanning of products and making payments
through mobile banking services, processing bills and keeping stock records.
Computers are used in military-military uses drones to monitor the security of a country.
The drones are controlled by computers.
Computers are used in education-to support teaching and learning through online classes
and research. They also help to prepare lesson plans and store learners’ records.
Computers are used in banks- to carry out transactions like opening accounts, depositing and
withdrawing money, checking balances, exchanging foreign currency, money transfer and
applying loans.
Computers are used in communication- they are used to send electronic mails (e- mails),
host video meetings, chat and make audio calls.
Computer are used in law enforcement agencies of the government-to keep records. The
Directorate of Criminal Investigation (DCI) keeps records of fingerprints taken from
different people.
Closed-circuit television (CCTV) cameras are also installed to monitor security.
People can access government services like filing returns, applying for birth certificates, land
title deeds and passports using computers.
At home computers and smartphones are used to prepare budgets, shopping lists and keep
dates about family members birthdays.
Education
For online reading
To maintain class notes and registers.
For research and to do assignments
Business
To make payments.
To keep records.
To order for goods.
To sell goods and services online
Banking
To facilitate online and internet banking.
To operate ATM machines.
For money transfer from one bank to another.
To keep account and customer information.
Health care.
To conduct research.
To store patient data.
Manufacturing
Government.
Communication
Engineering design
EVOLUTION OF COMPUTERS.
JACQUARD LOOM
ANALYTICAL ENGINE It was designed by Charles Babbage in 1837.
It used punch cards to perform addition,
subtraction, multiplication and division.
Digital devices Use the binary number system Have larger processors Have large storage Use
electrical components
GENERATIONS OF COMPUTERS.
Computer technology has been advancing in many ways since the invention of the
first electronic digital computer.
There are five generations of computers as follows:
1. 1ST generation 1940-1956
2. 2nd generation 1957-1963
3. 3rd generation 1964-1970
4. 4th generation 1971-1990
5. 5th generation 1991 – present and beyond
computers
They are the present day or current computers that were developed from the
year 1991.
They are the most advanced computers capable of mimicking human brains.
They are cheaper and faster than other generations.
They have very large storage capacity.
They can perform one than one task at the same time.
They are smaller and portable.
They consume less electricity.
They are easier to use.
Examples of fifth generation computers are:
Notebooks.
Smartwatches.
Tablets.
Smartphones.
Desktops.
Laptops.
Computer Computer technology used
generation
First generation Vacuum tubes These computers used
thousands of
electronic gadgets
called vacuum tubes
They were used for
storage, calculations
and control.
. CLASSIFICATION OF COMPUTERS
Computers can be classified according to the following factors:
1. Physical size & processing power.
2. Purpose for which they are designed.
3. Functionality (Method/ mode of operation).
Supercomputers.
Supercomputers are the fastest, largest, most expensive & also the most powerful computers
available.
They are very fast in processing. They can perform many complex calculations in a fraction
of a second.
Supercomputers are very large & heavy, and are usually kept under special environmental
conditions (i.e., in a special room).
They are operated by computer specialists. A Supercomputer can be operated by over 500
users at the same time.
Areas where supercomputers are used:
Supercomputers are mainly used for complex scientific applications that involve many
calculations & require a lot of computational power.
Weather forecasting.
Petroleum research.
Defence and weapon analysis.
Aerodynamic design and simulation.
Note. These tasks use large amounts of data, which need to be manipulated within a very
short time.
Mainframe computers.
Mainframes are less powerful & less expensive than supercomputers.
They are big in size but smaller compared to Supercomputers.
They can handle hundreds of users at the same time, e.g., they can be operated by 200 users
at a time.
Mainframe computers are general-purpose, and can handle all kinds of problems whether
scientific or commercial.
Areas where mainframe computers are used:
Minicomputers.
A Minicomputer is physically smaller than a mainframe. However, it can support the same
peripheral devices supported by a mainframe.
A Minicomputer can support several users at a time, e.g., can be operated by 6 users at a
time.
Minicomputers are easier to manufacture & maintain compared to mainframes..
They handle small amounts of data, are less powerful, & have less memory than the
mainframes.
Minicomputers are slow compared to mainframe computers.
An Embedded computer.
This is a computer that is within another device or system but is not accessed directly. E.g.,
there are embedded computers operating within Petrol pumps, Watches, Cameras & Video
recorders.
Special-purpose computer.
A special-purpose computer is designed to handle/accomplish a particular specific task only.
Such computers cannot perform any other task except the one they were meant to do.
Examples of special-purpose computers:
Robots used in a manufacturing industry for production only.
Calculators that carry out calculations only.
Computers used in Digital watches.
Computers used in Petrol pumps.
Dedicated computer.
A Dedicated computer is a general-purpose computer that is committed to some processing
task; though capable of performing a variety of tasks in different application environments.
E.g., the computer can be dedicated to carrying out Word processing tasks only.
Examples:
A Television with a button which is pressed to increase or decrease the volume.
Digital watches.
Calculators.
Microcomputers. They are said to be digital because they posses the ALU.
Analogue computers.
An Analogue computer is a computer that operates on continuous data.
They carry out their data processing by measuring the amount of change that occurs in
physical attributes/quantities, such as changes in electrical voltage, speed, currents, pressure,
length, temperature, humidity, etc.
An Analogue computer is usually a special-purpose device that is dedicated to a single task.
For example, they are used in specialized areas such as in:
- Scientific or engineering experiments,
- Military weapons,
- Controlling manufacturing processes like monitoring & regulating furnace temperatures
and pressures.
- Weather stations to record & process physical quantities, e.g., wind, cloud speed,
temperature, etc.
.
Hybrid computers.
Hybrid computers are designed to process both analogue & digital data. They combine
both the functional capabilities of the digital and analogue computers.
Hybrid computers are designed by interconnecting the elements of a digital computer &
analogue computer directly into one processor, using a suitable interfacing circuitry.
Hybrid computers are more expensive.
Example;
Medical monitoring systems: Measure physical phenomena like heart rate (analog data)
and display it digitally.
Advanced weather forecasting systems: Measure environmental data (e.g., wind speed)
and analyze it digitally for precise predictions.
Accessibility.
-Computer user environment should be set up in a place where the intended
user can easily reach.
Good lighting.
-The room should be well it.
Ventilation.
-The environment should be well ventilated, have free circulation of air and be
free from heat, dust and moisture which can damage a computer
system.
Power source.
-A computer user environment should have a reliable source of power
to prevent loss of data and damage of computers.
Space.
-The floor space should allow free movement of people using the computer user
environment.
Security.
-A computer user environment should be secure with strong doors and windows.
It should also have system in place to prevent unauthorised access.
Firefighting equipment.
-Should be available at all times in case of a fire.
Proper cabling.
-Should be done from the power sources to the devices.
-The cable must be insulated and laid away from busy areas of the room to
prevent people from getting electrocuted or tripping.
Proper furniture
-it should be used at workstations ensuring there is enough chairs for each
workstation and all tables have proper cable management to avoid cables
running across the room.
Starting a computer
Switch on the power source.
Press the power button of the monitor then press the power button of the system
unit to start your computer.
Wait for the computer to finish the booting process.
Click on your user account.
Type your username, enter your password and press enter to sign in to the
computer.
Pointing Devices.
A pointing device is used to control the movement of a cursor on the
computer screen. Most computers use a mouse as the pointing device.
Examples of computer pointing devices include
A mouse.
Joystick.
Stylus.
Trackball.
COMPUTER SYSTEM.
A system is a group of things, objects or people that collectively work together to achieve a
common goal
A computer system is mainly made up of the hardware, software and
liveware. These components work together to accept data, process it and
store the information in order to give the desired output.
Computer hardware are the physical parts of a computer system that a
computer needs in order to function. They include: the monitor, keyboard,
scanner, system unit, mouse, speaker, printer, web-camera, hard disk and
central processing unit. (CPU)
The computer software is a set of instructions or programs that tells the
computer what to do. Examples of computer softwares are the Operating
systems and computer applications like web browser, Microsoft office
components such as Ms word, Ms excel among others.
The computer liveware is also known as the computer user. Computer
liveware operates a computer using the hardware and software components
installed in the computer. Liveware are the users who command or direct
computers to perform a given task. The computer liveware operates a
computer using the hardware and software components. Computer liveware
include programmers and system analysts.
Functions of the Computer System components.
a.) Computer hardware.
To accept data and instructions.
To process data.
To store data.
To produce information.
Communicates with
devices and users.
b.)Computer software.
Manages computer resources/
Provides computer interface.
Stores and retrieves data and instructions.
Does mathematical calculations.
c.) Computer liveware.
To design and develop software and hardware.
Operates the computer system.
Enters data and instructions into the computer.
Controls the computer environment.
Linkage among Computer system components.
The various applications in the computer are the softwares.
The user of the computer is the liveware and the computer itself is the hardware.
The liveware uses hardware components to input data and give instructions to
the software.
The software then processes the data and executes the instructions then gives
the information through hardware.
The information is then used by the liveware for decision making or it is fed
back into the computer as data.
What is the Importance of Computer System?
Computer system enable fast and efficient process through automation such
as in record keeping, bookings, transactions and payments take shorter time
since the processes have been automated.
Communication has been enhanced in the society through computer system
such as social media, emailing, voice and video calls which allow faster and
cheaper communications.
Research has improved through the use of computers system as
knowledge is acquired easily.
Computer system enables storing and retrieving of data for better
access and reference.
Computer system performs calculations faster and accurately as
compared to human beings.
Shopping-computer has helped people to shop online goods and services and
pay for them using online channels.
Employment-computer system has provided employment opportunities
such as software development and design.
Entertainment-people can access music, films and computer games
in their computers.
Education- the internet holds large amount of information that is easily
accessible compared to textbooks. Learners can learn online without the
need to attend classes physically.
Computer Hardware Concepts
The physical parts of the computer make up the computer hardware.
Computer hardware is made up the following categories of:
🢖 Central processing unit.
🢖 Input devices (keyboard, mouse, camera,
microphone, scanner)
🢖 Output devices (monitor, speaker, projector, printer)
🢖 Storage devices (hard disks, flash disk, CD)
Functions of Computer hardware
Input devices are used to enter data and instructions into the computer.
They include; mouse, keyboard, touchpad, joystick, scanner, camera,
microphone and stylus.
CPU-it processes the data entered into the computer according to the
instruction given by the computer user. It is the brain of the computer and it is
also called the processor. It is made up of Arithmetic Logic Unit. (ALU),
Control Unit and the registers.
It retrieves and executes instructions by coordinating and processing
all the functions of a computer.
Keying devices- they help in entering data by pressing the keys on them.
They include keyboard, keypads, touch screen keypads and television
remotes.
Scanning device- they capture data directly from the source and convert it
into a form a computer can understand. They include barcode readers,
optical character readers, optical mask readers, magnetic stripe reader and
magnetic ink character readers.
Voice input devices-they enter data and instructions into a computer in
form of speech. The microphone is an example of a voice input device.
Others
Gaming controller-they are used when playing computer games. Example
includes joystick and steering wheel.
Visual and imaging devices-They include digital camera, image scanner and
video recorders.
Resistive touch screen-allow both fingers and non-fingers input. They are
used in feature phones, global positioning system (GPS), some printers and
digital cameras. They support single-finger touch and basic gestures.
Capacitive touch screen -uses the conductive touch of human finger for
input. They work by sensing the electrical properties of the human body.
The phone touch screen and smartwatch’s touch screen are examples of
capacitive screens.
b.) Registers
They are found in the processor.
They are a type of computer memory that quickly accept, store and
transfer data and instructions that are being used immediately by the
CPU.
They enhance the performance of the CPU.
Central Processing
Unit
Control Unit
Registers
Types of Processors
To find the type of processor in a computer, follow the following
steps as outlined in the table below.
Click start.
Click settings.
Click system.
Click about.
You can also use the following procedure.
NOTE:
You can also press the Windows Key + Pause break button on your
keyboard to instantly open the Settings window.
OUTPUT DEVICES.
Processed data can be given out in form of audio, text, pictures,
graphics or videos.
Output devices are used to give out information from the computer.
It does not need electricity, special devices or It is not easy to move from one place to another.
software to display/show
When properly stored it is not easily lost It requires a lot of physical storage space.
It is not subjected to data stealing and cyber attacks It can be stolen or destroyed through wear and tear
or be subjected to factors such as fire and water.
It is easy to move from one place to another. It is vulnerable to cyber and data stealing.
It is cheap to produce as it does not require paper It requires electricity, a device and software to be
or ink. displayed or shown.
Large amount of data and information can be It is considered temporary data which can be altered or
stored without the need for a lot of physical manipulated.
space.
4. Audio cables.
`They are used in a computer audio application.
They can be used for connecting mini-stereo
audio devices, earphones and headphones to the
system.
5. The Universal Serial Bus (USB)
It is a standard cable used to connect universal devices or
personal computers.
Currently, the USB cable is used to charge devices like
smartphones and Bluetooth speakers.
```
The Mouse and keyboard are also connected to a USB port
as they have USB cables.
System unit.
Monitor.
Screw driver.
Speakers.
Cables.
Keyboard.
UPS.
Power tester.
Surge protector.
Mouse.
Power extension cables.
Applying appropriate Instructions to set up computers.
Some ways of ensuring safety when setting up computers include the following:
Before installing any devices, always read through the user manual that
comes with the device.
Remember to follow all the instructions of setting up a computer and exercise
caution as you set up computer.
Ensure there is a stable power supply that can power a computer before the
connection.
Use a UPS or surge protector for power connection to the CPU and monitor.
Make sure your hands are completely dry to avoid electric shock and
damaging any computer parts with moisture.
Handle all the parts of a computer with care. Place each component on a hard-flat
surface. Be careful not to drop any parts.
Ensure your computer has enough room to allow proper ventilation. If there is
no free flow of air the computer can be damaged or cause fire.
Be sure to connect all cables to the appropriate ports.
If a cable does not connect easily to a port, do not forcefully push it in to
avoid damaging it. Check that you are connecting it to the right port and
that the pins and holes align.
Manage cables properly when setting up a computer by ensuring nothing is
pressing on them and that they are not located in a place where they can be
stepped on or tripped over.
Do not spill foods or liquids on the computer.
Always switch on the monito before the CPU to display any errors or
messages while booting.
Lightning.
Floods.
Earthquakes.
Extreme sunshine.
Ways of mitigating/reducing physical threats caused by natural disasters
to computers.
To protect computers from lightning attacks, use lightning arresters.
Putting up computer rooms on raised grounds helps to avoid effects of flooding.
Fitting computer rooms with curtains will help to reduce direct sunlight on computers
Health and Safety.
Prolonged and inappropriate use of computers can lead to health complications.
Health complications associated with the use of Computers and the
prevention. Some of the health issues associated with use of computers
include:
🢖 Back & neck pains.
🢖 Obesity.
🢖 Arm pains.
🢖 Fatigue.
🢖 Eyestrain.
🢖 Itchy eyes
Computers and other devices can be interconnected to exchange data and share
resources.
Examples of networks in today’s world.
Railway.
Power lines.
Telephone lines.
Internet networks.
A network is an interconnection between two or more devices
A computer network-is a connection of two or more computers linked
together using a transmission media for the purpose of communication and
sharing resources.
A computer network can also be defined as an interconnection of two or
more computers through a medium.
A sender-is the computing device from which data is sent to other devices
in the network.
A receiver-is a device that accepts the transmitted data or information.
Message -is data or information being transmitted from the sender to the
receiver through a transmission media.
Protocol -refers to rules and regulations governing how devices communicate
in a network.
2. Wireless networks.
They deliver data and information in form of airwaves rather than through
physical cables.
Wireless connectivity may be achieved through satellites, radio waves, Wireless
Fidelity (Wi-Fi), infrared and Bluetooth.
The Internet is a vast network that connects computers all over the world. Through the Internet, people
can share information and communicate from anywhere .
The word internet is derived from International network.
No one owns the internet but the users operate by following a set of guided rules and
regulations.
Uses of the Internet
1. Send and receive Emails.
2. Finding information.
3. Making online Payments.
4. Communicating with others.
5. Online shopping.
6. Entertainment.
7. Playing games
Navigation bar-contains the forward and back buttons that enable the
user to load previous and next pages during browsing.
Refresh button-is used to reload a web page.
The address bar-is used to enter website addresses.
The bookmark button- redirects the user to a list of chosen websites from the
sites that are often visited.
The home button-loads the home page of a browser
• Browsers have features that allow a user to open multiple web pages or
tabs at the same time, refresh and stop web pages during loading, move to the home
page, block and prevent unwanted windows that may interfere with browsing.
Website
A website is a collection of many web pages containing information about
individuals or organisations
web pages are digital files that are written using HTML(HyperText Markup
Language). To make your website available to every person in the world, it must be
stored or hosted on a computer connected to the Internet round a clock. Such
computers are known as a Web Server.
Types of Website:
Static Website
Dynamic Website
Homepage : It is the first webpage that appears when a visitor visits the website.
Hyperlink
In a website, a hyperlink (or link) is an item like a word or button that points to another
location. When you click on a link, the link will take you to the target of the link, which may be a
webpage, document or other online content.
Cookies
are files set on the user’s device while the user is browsing a website and are stored for a range
of purposes such as uniquely identifying users, managing their browsing sessions, facilitating
personalized user experiences, ad targeting, and much more.
Uniform Resource Locator (URL)
• Each web has a unique address known as Uniform Resource Locator (URL).
• Most URLs contain the protocol needed to access a resource, a prefix of
www, domain name, domain type, region, path to reach the file and the file name. for
example;
• Therefore, the components of a URL are:
• Protocol.
• Sub domain.
• Domain name.
• Domain type.
• Region.
COMPUTER PROGRAMMING.
4.1 Computer Programming Concepts.
Introduction.
There are a set of step by step instructions that directs a computer on
how to perform tasks and produce results.
These instructions are developed by programmers and installed in computers.
Importance of Programming.
🢝 Computer programming reduces errors during processes because it
produces accurate results. It enables an efficient and accurate flow of
processes.
🢝 Many job opportunities have been created through programming. Computer
programmers, computer system analysis and web developers are career
people in programming.
🢝 Computer programming fastens processes through automation. Automation
saves time, reduces costs and increases productivity through software robots
that
emulate human actions interacting with digital systems and software.
🢝 Computer programming enhances critical thinking and problem solving
hence making it easy to solve problems.
🢝 Programming stimulates creativity.
🢝 Programming improves functioning of devices.
🢝Programming enhances business activities
Feature Function
Sprite It is also called the coding area. it is where codes (scripts) area created
for a sprite to do a specific action.
Sprite area Are blocks shaped differently and are used to create codes in Scratch.
Code blocks A small graphic character that performs actions such as moving around
the stage.
Sprite pane Shows information about the size of each sprite.
Sprite info Displays all the sprites in a project
A sprite is a small graphic character that performs actions such as moving
around the stage.
The script area is also called the coding area; it is where codes (scripts) are
created for a sprite to do a specific action. Codes are dragged and dropped
here then snapped together to create a program.
Code blocks are blocks shaped differently and are used to create codes in
Scratch. The codes connect to each other vertically like a jigsaw.
The sprite info shows information about the size of each sprite.
The sprite pane displays all the sprites in a project. A selected sprite has a
blue border around it.
Activity
Launch the scratch application in your computer and practice
using it as in the text book page 170.
NB
🢖 To move the sprite, add a move block from the motion category.
🢖 To add sound, click on sound category and choose a sound block.
🢖 To move the sprite back, use a negative value on the move back block. The
block can be repeatedly severally to generate the desired animation.
The sensing category helps one to enable input from the mouse, keyboard
and other input devices. ’IF’ is used to choose between two output. For
example, it can be used to perform mathematical calculations and state
whether the answer given is correct or not
Activity
Text book page 176
Using Scratch to create a sequence of instructions.