Back to: DATA PROCESSING SS 2
Welcome to class!
In today’s class, we will be talking about the introduction to BASIC programming. Enjoy the class!
Introduction to BASIC Programming
BASIC stands for BEGINNERS 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.
Different versions of BASIC
- Turbo Basic (T-BASIC)
- BASIC PLUS
- GW-BASIC
- QUICK BASIC (Q-BASIC)
- VISUAL BASIC (V-BASIC)
Evaluation
- What is BASIC?
- List FIVE versions of BASIC.
The BASIC interpreter
For the computer to execute your instructions 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.
Keywords 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.
-
REM statement:
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
-
LET statement:
The LET statement is used to assign (or give) values to variables.
Examples:
10 LET A = B + C
-
INPUT statement:
Input is used to assign or give values to variables while the program is running. It can be used with both numeric and string variables.
Examples:
10 INPUT A, B, C
-
PRINT statement:
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:
End Statement is an instruction used to terminate the program. One of the computers encounters the END statement, it automatically terminates the program.
50 END
-
RUN statement:
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.
General evaluation
- Write the function of the following BASIC keywords (a) LET (b) INPUT (c) PRINT (d) REM (e) RUN
- ……………… converts your program into a form that can be executed directly by the computer (a) Software (b) Interpreter (c) Hardware
- What is BASIC?
- Write the function of the following BASIC keywords (a) LET (b) INPUT (c) PRINT (d) REM (e) RUN
We hope you enjoyed the class.
Should you have any further question, feel free to ask in the comment section below and trust us to respond as soon as possible.
Ready to make school management easy? Book your free onboarding session nowGet more class notes, videos, homework help, exam practice on Android [DOWNLOAD]
Get more class notes, videos, homework help, exam practice on iPhone [DOWNLOAD]