Computer Studies - Junior Secondary 2 - BASIC

BASIC

Term: 2nd Term

Week: 8

Class: Junior Secondary School 2

Age: 13 years

Duration: 40 minutes of 2 periods each

Date:

Subject:      Computer studies

Topic:-       BASIC

SPECIFIC OBJECTIVES: At the end of the lesson, pupils should be able to

  1. List and explain the operators in BASIC

INSTRUCTIONAL TECHNIQUES: Identification, explanation, questions and answers, demonstration, videos from source

INSTRUCTIONAL MATERIALS: Videos, loud speaker, textbook, pictures

INSTRUCTIONAL PROCEDURES

PERIOD 1-2

PRESENTATION

TEACHER’S ACTIVITY

STUDENT’S ACTIVITY

STEP 1

INTRODUCTION

The teacher revises the previous lesson on BASIC

Students pay attention

STEP 2

EXPLANATION

She lists the operators in BASIC

Students pay attention and participates

STEP 3

DEMONSTRATION

She explains each of the operators in BASIC

Students pay attention and participate

STEP 4

NOTE TAKING

The teacher writes a summarized note on the board

The students copy the note in their books

 

NOTE

BASIC

OPERATORS IN BASIC

Operators in BASIC Operators are symbols used in carrying out operations in any program.

There are three types of operators in BASIC. These are;

  1. Arithmetic operators: These are symbols used to perform arithmetic operations like bracket, addition, subtraction, division, multiplication and exponential.

The following table shows arithmetic operators used in BASIC.

Arithmetic operator

Meaning

Example

+ (Plus sign)

Addition

6 + 8

- (Minus sign)

Subtraction

15 - 7

* (Asterisk)

Multiplication

9 * 4

/ (Forward slash)

Division

30 / 6

^ (Caret sign)

Exponentiation

6 ^ 2 (ie 6 * 6)

 

The order of operation is based on BEDMAS, alternatively PEMDAS.

E.g Convert the following arithmetic expressions to BASIC equivalent:

  1. 4 x 5 + 15
  2. (ab + cd)

          2

  1. 4 x 5 + 15

Solution

4 * 5 + 15

20 + 15 =35

  1. (ab + cd)

           2

Solution

(a * b + c * d)

         2

  1. Relational operators: Relational operators are used to perform comparison on two values of same type. E.gs are =, >, =, <=, <>.

The following table shows the relational operators used in BASIC.

Comparison operator

Meaning

Example

=

Equal to

C4 = B2

Less than

A < B

Greater than

D1 > B2

<=

Less than or equal to

A<=B

>=

Greater than or equal to

A>=B

<> 

Not equal to

A<>B

 

  1. Logical operators: These operators are used to combine two or more relational expressions. Examples of logical operators used in BASIC are AND, OR and NOT.

EVALUATION:    1. List and explain the operators in BASIC

  1. Convert the following arithmetic expression to BASIC equivalent:
  2. 6 x 4 + (2 + 3)2 - 7
  3. a2 + b3 + c4

CLASSWORK: As in evaluation

CONCLUSION: The teacher commends the students positively