Let's start to learn computer programming with the Q-BASIC

An overview about Q-BASIC:
                                               Before learning about Q-BASIC ,let's talk about the BASIC. BASIC stands for Begineers All Purpose Symbolic Instructions Code. It is the high level programming language specially designed for learners or begineers. It was designed by professor J.G Kemeny and Thomas Kurtz at Darthmouth college New Hampshire U.SA. 

  Different versions of BASIC are:
                                     i)BASICA         ii)GWBASIC

                                     iii)QBASIC        iv)Turbo BASIC
Q-BASIC is language processing software which contains many facilities required by a programmer including compiler.It was developed by Microsoft Company in 1985 A.D. It stands for Quick-Begineers All Purpose Symbolic Instuction Code. Some of it's features are as follow:
  • It has full screen editor which checks syntax errors.
  • It supports structural programming.
  • It checks syntax of statement automatically.
  • Q-BASIC editor has it's own interpreter
As Q-BASIC is called Smart editor because it checks the line for syntax error and translate the line to executable form if the syntax is correct.

Modes of Q-BASIC:
a.Immediate mode:  
                                Immediate mode is check syntax and displays immediately result to the next line after pressing Enter key

b.Programming Mode: 
                                 Programming mode is used to write whole program and execute by pressing F5 key


Some important technical terms about the Q-BASIC:


  1. Commad :  Command is the keyword that instructs the computer to carryout the action.
  2. Statement: The set of instructions written using keywords or commands to write program is called statements
  3. Variable: Variable is a data item whose values are changeable during the time of program executing
  4. Constant: Constant are the data items whose values remain during the time of program execution.
  5. Syntax: Syntax is the rule that is needed to follow while writing meaning in Q-BASIC.

Now, let's do programming in Q-BASIC


1)Write a programme (WAP)to find the perimeter a rectangle.

             CLS
            Input "enter the lenght";L
            Input "enter the breadth";B
            Let P=2*(L+B)
            Print "Perimeter of rectangle";P
            END
2)WAP to find sum of any three numbers.
          CLS
          Input "enter the value";a
          Input "enter the value";b
          Input "enter the value";c
          sum=a+b+c
          print"the sum of the three numbers";sum
         END
3)WAP to input the temperature is celsius and convert it in farenheit.
            CLS
            Input "enter temperature in celcius";c
            Let  F= 9/5*c+32
            Print"equivalent temperature in fareheit is";F
           END

Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Sir interesting xa aaru dherai programming post garnu xa

    ReplyDelete
    Replies
    1. thank you samarpan khadka for supporting us
      we will be looking forward to post new programmings
      Stay Connected with us

      Delete
  3. Interesting Sir It's very good so I like it plz sir post more programming about Q-BASIC.
    I want to get more knowledge about this program.

    ReplyDelete
    Replies
    1. Thank you Shiva Budhathoki ;
      we will be always attentive for your knowledge bulid up and we will be more eager to post
      q basic programming
      just stay connected with us

      Delete
    2. welcome sir as well as tq sir

      Delete

  4. Good job.. keep doing...

    ReplyDelete
    Replies
    1. thank you soo muchh........!!!!!!!!!!!!!!! :) :) :)

      Delete
    2. Stay connected with us Sir
      For more information
      wish it helped you

      Delete

Post a Comment