Week 4 - 5 Ict Year 10
Week 4 - 5 Ict Year 10
Class: S.S.1
Time Fit / Previous Knowledge Students have learnt BASIC programming in their
junior secondary school
Main Aim(s) At the end of the lesson the students should be able to
explain the meaning of BASIC programming
Subsidiary Aims By the end of the lesson, the students should be able
to:
Anticipated Problem Some of the students may not understand the term
“BASIC”
MEANING OF BASIC
BASIC is an acronym for Beginners All-Purpose Symbolic Instruction Code. It is a high
level programming language designed to enhance teaching and problem solving of all kinds. It
was designed in 1964 by John George Kemeny and Thomas Eugene Kurtz at Dartmouth College
in New Hampshire, USA. It was designed to provide computer access to non-science students.
CHARACTERISTICS OF BASIC
BASIC programming language has some character settings or qualities which
distinguishes it from other programming languages. These qualities are;
1. All BASIC program statement must have a line number. This means that
you must start the statement with a line number. The numbering could range
from 1 to 100 or gaps of 5 or 10.
2. BASIC reserved words should not be used as data name. The reserved words
are LIST, RUN, LOAD, SAVE and CLS.
3. BASIC program is case sensitive. This means that all basic instructions must
be written only in capital letters, small letters are not allowed.
4. In basic program, Execution (or program running) is always done
sequentially
5. End statement terminates or stops a program
6. Character sets and special characters are allowed but variable rules must be
obeyed.
TYPES OF DATA
1. Variable: A variable is a program entity of data item whose value changes
during the course of program execution. It is a name used to reserve
computer memory space for a data entity whose value is liable to change
during the course of program execution.
2. Constants/Literals: These are static actual values that BASIC works on
during program execution. They can be assigned to variables.
3. Numeric: They are positive or negative numbers which can be used for
calculation. Numeric data are of two types, Integer and real numbers.
Integers are whole numbers (54, 33, 22), while real numbers have decimals
(74.9, 23.7, 19.8).
4. String: This data type makes use of alpha-numeric. It combines letters and/or
numbers. E.g. Student name, vehicle number, e.t.c. It is usually enclosed by
quotations. E.g. “How are you?” “DB 594 LSR”. A string variable is always
written along with a dollar sign ($) as the last character. E.g. N$, REG$
40 LET C=A+B
4. END Statement: It tells the computer that the program has finished or
terminated.
Example: 60 END
Some other BASIC statements or reserved words include IF, NEXT, READ,
DATA, OR, TO, SQR, AND, THEN, GOTO e.t.c.