SUBJECT: I.C.T.
CLASS: SS 2
DATE:
TERM: 2nd TERM
WEEK 9
TOPIC: INTRODUCTION TO BASIC PROGRAMMING
BASIC stands for BEGINNNERS ALL-PURPOSE SYMBOLIC INSTRUCTION CODE. It is a single easy to use language designed also for beginners. It is not only simple but also powerful. It is science oriented. Professor John Kemeny and Thomas Kurtz developed the language in 1964 at Dartmouth College, U.S.A., as a means of teaching students a simple language for programming a computer. The program can be used to solve problem covering a wide range of application on many different types of digital computer. Because the BASIC Language has been designed for ease of use and is readily available on most computers, program development can be achieved in minimum time.
There are different versions of Basic. They include:
EVALUATION
THE BASIC INTERPRETER
For the computer to execute your instructions in order to produce the desired result, the instruction must be first be interpreted to what the computer can understand by another program called the BASIC INTERPRETER (or TRANSLATOR). The BASIC interpreter converts your program into a form that can be executed directly by the computer.
EVALUATION
KEYWORDS IN BASIC
This is also referred to as BASIC statement or a reserved word. It is an instruction in BASIC, which has a specific means to the compiler or interpreter.
The REM statement is a remark statement. It is used to insert remarks in the program. Such remarks are used to explain what the program is all about.
Example:
10 REM This program finds the average of 5 numbers
The LET statement is used to assign (or give) values to variables.
Examples:
10 LET A = B + C
Input is used to assign or give values to variables while program is running. It can be used with both numeric and string variables.
Examples:
10 INPUT A, B, C
The print statement tells your computer to display the output of the executed program on the screen of the monitor (VDU).
Example:
10 PRINT SUMS
End Statement is an instruction used to terminate the program. One the computer encounters END statement, it automatically terminates the program.
50 END
The RUN statement is used to execute a program. In Q-BASIC, F5 is used to RUN a program. Note that the program will not RUN if any mistake or error is detected in it.
EVALUATION
Reading Assignment: Reading Assignment:
Hiit @ School, Computer Studies for Senior Secondary Education. Pg 110
WEEKEND ASSIGNMENT
THEORY
© Lesson Notes All Rights Reserved 2023