WELCOME TO
COMPUTER
ONLINE CLASS
INTRODUCTION TO QBASIC
CHAPTER 5
2
1.Find the Command Prompt on your computer. If
you are running DOS, this is the prompt that asks
you for commands. ...
2. When you get a window with the prompt, enter
the command: qbasic then press the ENTER key.
3. QBasic should start up. The pictures in CHAPTER
1 show what you should see
3
Sequential file INPUT in QBasic is just like reading data
from the keyboard, except that all the data exists in a file
before the program is run. Save the file using the menu
system, much like you save a program file: hit ALT+F, and
then S, then in the file dialog box enter a file name
Steps to save a
program in Qbasic
BASIC ELEMENTS IN QBASIC
✣ The elements used in Qbasic are as
follows:
✣ Character set.
✣ Variables.
✣ Constants.
✣ Operator and Operands.
✣ Expression.
✣ Statements.
5
OPEN A SAVED PROGRAM IN QBASIC
Sequential file INPUT in QBasic is just
like reading data from the keyboard,
except that all the data exists in a file
before the program is run. Save the file
using the menu system, much like
you save a program file: hit ALT+F, and
then S, then in the file dialog box enter a
file name. Use DATA. DAT.
6
OPERATORS IN QBASIC

7
✣ here are four types of operators in QBASIC. They
are Arithmetic Operators, Relational
Operators, Logical Operators and Sting
Operator. Arithmetic Operators are used to
perform mathematical calculations like
addition,subtraction, division, multiplication and
exponential.
LETS WATCH
TUTORIAL.
8
https://youtu.be/15p8Q7CttRc
HOME WORK
DO QUESTIONS IN YOUR NOTEBOOK.
1. Write the steps to execute the program.
2. What are the main components of Qbasic screen?
3. How will you open a saved program in Qbasic ?
What are the different types of operators in
Qbasic?
9
Practice at
home
10
Thanks!
Any questions?
11

More on QBASIC

  • 1.
  • 2.
  • 3.
    1.Find the CommandPrompt on your computer. If you are running DOS, this is the prompt that asks you for commands. ... 2. When you get a window with the prompt, enter the command: qbasic then press the ENTER key. 3. QBasic should start up. The pictures in CHAPTER 1 show what you should see 3
  • 4.
    Sequential file INPUTin QBasic is just like reading data from the keyboard, except that all the data exists in a file before the program is run. Save the file using the menu system, much like you save a program file: hit ALT+F, and then S, then in the file dialog box enter a file name Steps to save a program in Qbasic
  • 5.
    BASIC ELEMENTS INQBASIC ✣ The elements used in Qbasic are as follows: ✣ Character set. ✣ Variables. ✣ Constants. ✣ Operator and Operands. ✣ Expression. ✣ Statements. 5
  • 6.
    OPEN A SAVEDPROGRAM IN QBASIC Sequential file INPUT in QBasic is just like reading data from the keyboard, except that all the data exists in a file before the program is run. Save the file using the menu system, much like you save a program file: hit ALT+F, and then S, then in the file dialog box enter a file name. Use DATA. DAT. 6
  • 7.
    OPERATORS IN QBASIC 7 ✣here are four types of operators in QBASIC. They are Arithmetic Operators, Relational Operators, Logical Operators and Sting Operator. Arithmetic Operators are used to perform mathematical calculations like addition,subtraction, division, multiplication and exponential.
  • 8.
  • 9.
    HOME WORK DO QUESTIONSIN YOUR NOTEBOOK. 1. Write the steps to execute the program. 2. What are the main components of Qbasic screen? 3. How will you open a saved program in Qbasic ? What are the different types of operators in Qbasic? 9
  • 10.
  • 11.