Jss 2 Computer
Jss 2 Computer
CONTENT
PROGRAMMING LANGUAGE
A vocabulary and set of grammatical rules for instructing a computer to
perform specific tasks. The term programming language usually refers to high-
level languages, such as
BASIC ,
C,
C++ ,
COBOL,
FORTRAN,
Ada , and
Pascal.
Each language has a unique set of keywords (words that it understands) and a
special syntax for organizing program instructions .
High-level programming languages, while simple compared to human
languages, are more complex than the languages the computer actually
understands, called machine languages .
Each different type of CPU has its own unique machine language.
MACHINE LANGUAGE
Programming language that can be directly understood and obeyed by a
machine (computer) without conversion (translation). Different for each type of
CPU, it is the native binary language (comprised of only two characters: 0 and
1) of the computer and is difficult to be read and understood by humans.
Questions
1. What is a programming language ?
2. Gives examples of a programming Language
Assignments
Define the following
1. Machine Language
2. Low level language
3. High level language
WEEK 2
CONTENT
ELEMENTS OF QBASIC
INTRODUCTION
Every programming language consists of some basic elements which are required to make a
program. The element required to construct a BASIC program consists of a set of characters,
keywords, constants, variables, operators and expressions.
1. CHARACTER SET
The BASIC Character Set consists of alphabets (both small and capital), numbers (0 to 9) and
special characters. These special characters have their own meaning and function.
2. KEYWORD
Keywords are those words which have special meanings in BASIC. Keywords are statements or
Reserved Words, commands, and names of operators. Some reserved words are CLS, REM,
INPUT, LET, PRINT, FOR, DO, SELECT, MID$, ASC, SQR, LEN, LEFT$, TIME$ and INT.
3. CONSTANTS
Constants are the data or the values in a program that cannot be changed during the program
execution. The data may be a letter, words, numbers, or special characters. Types of constant are
a. Sting Constant
b. Numeric Constant
4. VARIABLE
A variable is an entity that stores data needed to be used in a program. Each program defines
different number of variables.
There are mainly two types of variables. They are:
i. String Variable
ii. Numeric Variable
5. OPERATOR
Operators are symbols that indicate the type of operation BASIC has to perform on the data
There are four types of operators in BASIC. They are Arithmetic Operators, Relational Operators,
Logical Operators and Sting Operator.
OBJECTIVES:
Using QBasic Math Operators
Use Order of Operation
Store the results of calculations in variables
Print the result of calculations
A Math Operator is a symbol use for addition, subtraction, multiplication, division, or other
calculations
* Multiplication
/ Division
+ Addition
- Subtraction
^ Exponentiation
\ Integer division
MOD Modulus
Example: (95/2=47.5)
Formula Results
8\2 4
95\2 47
95.0\2 47
95\2.0 47
95.0\2.0 47
WEEK 3
CONTENT
Q-BASIC PROGRAMS
CLS
Input 'Enter you name';n$
Print 'The name is';n$
End
2)Write a program to enter your name, city, country, age and print them.
CLS
Input " Enter the name ";N$
Input " Enter the city";C$
Input " Enter the country";CO$
Input " Enter the age";A
Print " The name is ";N$
Print " The city is ";C$
Print " The country is ";CO$
Print " The age is ";A
End
Cls
Input " enter the length " ;l
Input " enter the breadth " ;b
let A = l*b
Print" the area of rectangle=" ;a
End
Cls
Input " enter the base" ;b
Input " enter the height" ;h
let T = 1/2*b*h
Print" The area of triangle=" ;T
End
Cls
Input" Enter the radius " ;R
Let Circumference=22/7*R*2
Print " The area of circle =" ;Circumference
End
Cls
Input" Enter the number" ;n
Let square= n^2
Print" The area of square=" ;Square
End
Cls
Input" Enter the number" ;n
Let square= n^2
Let Cube = n^3
Print" The area of square=" ;Square
Print" The area of cube=" ; Cube
End
WEEK 4
CONTENT
GRAPHICS PACKAGES
A graphics package is an application that can be used to create and manipulate images
on a computer.
painting packages
drawing packages
Painting packages
A painting package is a graphic application that can be used for processing
photographs by manipulating features like colors, effects, brightness, etc
A painting package produces images by changing the colour of pixels on the
screen.
Advantages
The main advantage offered by this type of graphic is that it can be used for
adjusting and beautifying photographs
Drawing packages
A drawing package produces images that are made up from coloured lines and
shapes such as circles, squares and rectangles.
When an image is saved it is stored in a vector graphics file as a series of
instructions, which can be used to recreate it.
Questions
Assignment
WEEK 5
CONTENT
Title bar
The title bar is a bar located at the top of a window or a dialog
box that displays the name of the window or software program
being used. For example, in the picture below, the title bar
displays the name of the program
Toolbar
Sometimes referred to as a bar, the toolbar is a row of boxes,
often at the top of an application window that control various
functions of the software. The boxes often contain images that
correspond with the function they control, as demonstrated in
the image below
Menu bar
A thin, rectangular window containing dropdown menus, a
menu bar is used in many computer programs. Its primary
function is to house application or window-specific menus that
provide an assortment of functions to the user. These functions
include interactions like opening files, editing text, bringing up
software-related help menus.
Colour palette
This comprises of different colours for your drawing. The colour can be
selected by clicking on them.
Printable Area
this is portion where our drawing and pictures are maniputed and placed
for printing.
PRACTICAL
WEEK 5
TOPIC: Graphic Packages-Paint tools
Paint tools
Tool
Description
Use Free-Form Select to select any irregularly shaped part of the picture
Tool
Description
Use Select to select any square or rectangular part of the picture.
Tool
Description
Use the Eraser to erase areas of your picture.
Tool
Description
Use Fill With Color to fill the entire picture or an enclosed shape with color.
Tool
Description
Use Pick Color to set the current foreground or background color.
Tool
Description
Use the Magnifier to zoom in on a section of your picture.
Tool
Description
Use the Pencil to draw thin, freeform lines or curves.
Tool
Description
Use the Brush to paint thick or shaped freeform lines and curves.
Tool
Description
Use the Airbrush to create an airbrush effect in the picture.
Tool
Description
Use Text to enter text in the picture.
Tool
Description
Use Line to draw a straight line.
Tool
Description
Use Curve to draw a smooth, curved line.
Tool
Description
Use Rectangle to draw rectangular shapes.
Tool
Description
Use Polygon to make a shape with any number of sides.
Tool
Description
Use Ellipse to make ellipses and circles.
Tool
Description
Use triangle to draw triangular shapes.
Tool
Description
The Color box indicates the current foreground and background colors.
Tool
Description
Choose the desired line thickness when you draw lines and curves.
Option
Description
Choose the desired fill effect when you draw shapes.
PRACTICAL
WEEK 7-8
Benefits of ICT
Disadvantages of ICT
1. It can lead to job losses as a result of computerized transactions in offices
2. ICT threatens other areas and fields of human Endeavour.
3. Virus are contacted through the internet and could damage files in the
computer systems
4. Some seawares can be difficult for people to use
5. People are almost completely relying on computer which becomes nearly
impossible to do much without computer.
6. Repetitive strain injure, strain on tendon of the arms, back problems and
painful eyes are caused from prolong use of the computer.
7. Youth often abuse the internet by using it mostly entertainment, watching
pornographic shows, and using it to commit crime.
8. Ict use can lead to computer addiction ,obsessive computing behaviuor and
stress
9. People prefer to send emails or call their friends on phones rather than visit
them.
Quesiotns
1. Define the ICT
2. State the ICT gadgets
Assignment
States the Benefits and Disadvantages of ICT
WEEK 9
TOPIC: ICT Gadgets – the GSM
TECHNICAL DETAILS
The GSM network can be divided into three broad parts
The subscriber carries the mobile station
The base station subsystem controls the radio link with the
mobile station
The network subsystem performs the switching of calls
between the mobile users and other mobile and fixed
network users
Questions
1. State the full meaning of GSM
2. State how to send messages of GSM
WEEK 10
TELEPHONE
Telephone, or phone, is a telecommunications device that permits two or
more users to conduct a conversation when they are too far apart to be heard
directly. A telephone converts sound, typically and most efficiently the
human voice, into electronic signals suitable for transmission via cables or
other transmission media over long distances, and replays such signals
simultaneously in audible form to its user.