Qbasic Programming; Write a program
It is coded or artificial language used to write instructions that a computer can understand to do what the user wants.
A programming langage is therefore a practical way for us to give instructions to a computer.
Question:- Write a program to input your roll number and to check which class room belongs to you.
Solution:-
Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
Features of QBasic Programming:-
It is simple and easy to learn
It is an interpreter having its own editor.
It has dynamic program debugging.
It supports the local and global variable.
It supports modular programming.
It capitalizes the reserved words automatically.
The syntaxes of the statements are checked automatically.
Starting QBASIC
QBASIC may not be on your computer. At first, you need to have QBASIC in your computer. It is freely available. You can download it from internet as well.
Downloading QBASIC Software:-
In Windows 7, 8, 10:-
I have written a post before this. In this post, I have provided detailed experimental information on how to download and run Qbasic software on your computer.
You can find out how to download Qbasic by looking at this post. After downloading Qbasic you should run Application file.
Click on Link: CLICK HERE TO DOWNLOAD QBASIC SOFTWARE
If there is any problem, please comment in the comment box below..
Now you will see the QBASIC window where you have to write QBASIC Statements to make your program.
Please if the following Images do not clearly displays, click on images to view largely images.
https://www.pschelper.com/2022/04/Qbasic-Program-Write-a-program-to-input-your-roll-number-and-to-check-which-class-room-belongs-to-you.html
Qbasic Program; Write a program to input your roll number and to check which class room belongs to you? The following Qbasic Code is used to solve to above query. Write down the following Qbasic Code clearly in the Qbasic software that you have opened
Question:- Write a program to check your School Result. You have Pass or Fail.
Solution:-
Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
Features of QBasic Programming:-
It is simple and easy to learn
It is an interpreter having its own editor.
It has dynamic program debugging.
It supports the local and global variable.
It supports modular programming.
It capitalizes the reserved words automatically.
The syntaxes of the statements are checked automatically.
Starting QBASIC
QBASIC may not be on your computer. At first, you need to have QBASIC in your computer. It is freely available. You can download it from internet as well.
Downloading QBASIC Software:-
In Windows 7, 8, 10:-
I have written a post before this. In this post, I have provided detailed experimental information on how to download and run Qbasic software on your computer.
You can find out how to download Qbasic by looking at this post. After downloading Qbasic you should run Application file.
Click on Link: CLICK HERE TO DOWNLOAD QBASIC SOFTWARE
If there is any problem, please comment in the comment box below..
Now you will see the QBASIC window where you have to write QBASIC Statements to make your program.
Please if the following Images do not clearly displays, click on images to view largely images.
Now we will start write code for the above query.
https://www.pschelper.com/2022/04/Qbasic-Program-Write-a-program-to-check-your-School-Result.html
Qbasic Program; Write a program to check your School Result. IF .... THEN .... ELSE Statement: It allows contional ex*****on based on the evalutation of an expression that must be true.
Question:- Write a program to display any input word five times.
Solution:-
Before starting a Qbasic program you need to know what a program is. So I'm going to tell you a little bit about the program and so on.
Computer Program:-
A computer Program is a set of instructions given to the computer to perform a particular task. It is writtern in a programming language such as QBASIC, C, C++ etc. given by the users that are translated into machine level language to obtain the desired result.
Computer Programming:-
Computer Programming is the process of designing, writing, testing, debugging and maintaining the source code written in a particular computer language.
Programmer:-
A programmer is a person who is involved in the different processes of computer programming.
Programming Language:-
It is coded or artificial language used to write instructions that a computer can understand to do what the user wants.
A programming langage is therefore a practical way for us to give instructions to a computer.
Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
https://www.pschelper.com/2022/04/Qbasic-Program-Write-a-program-to-display-any-input-word-five-times.html
Qbasic Program; Write a program to display any input word five times. A computer Program is a set of instructions given to the computer to perform a particular task.It is writtern in a programming language such as QBASIC
Before starting a Qbasic program you need to know what a program is. So I'm going to tell you a little bit about the program and so on.
Computer Program:-
A computer Program is a set of instructions given to the computer to perform a particular task. It is writtern in a programming language such as QBASIC, C, C++ etc. given by the users that are translated into machine level language to obtain the desired result.
Computer Programming:-
Computer Programming is the process of designing, writing, testing, debugging and maintaining the source code written in a particular computer language.
Programmer:-
A programmer is a person who is involved in the different processes of computer programming.
Programming Language:-
It is coded or artificial language used to write instructions that a computer can understand to do what the user wants.
A programming langage is therefore a practical way for us to give instructions to a computer.
Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
https://www.pschelper.com/2022/04/Write-a-program-to-check-whether-the-supplied-number-is-prime-or-not.html
Qbasic Program; Write a program to check whether the supplied number is prime or not. Looping is the process of repeating the ex*****on of a statement or a block of statements guided by a condition.
Qbasic Program; Write a program to find the area of the triangle.
Solution:-
Before going on code, i will you introduce about Qbasic Programming.
QBASIC (Quick Beginner's All purpose Symbolic Instruction Code) is a high level programming language delveloped by Microsoft Corporation in 1985. It is a modular Programming Language, where program is divided into different modules or procedure. QBasic is simple and easy to learn. It uses English like Keywords and mathematical symbols to write a program.
Features of QBasic Programming:-
It is simple and easy to learn
It is an interpreter having its own editor.
It has dynamic program debugging.
It supports the local and global variable.
It supports modular programming.
It capitalizes the reserved words automatically.
The syntaxes of the statements are checked automatically.
Starting QBASIC
QBASIC may not be on your computer. At first, you need to have QBASIC in your computer. It is freely available. You can download it from internet as well.
QBASIC
In Windows 7, 8, 10,
Use following steps to Download QBASIC Software and run in your computer.
Step 1:- Open Web Browser (Google Chrome, Mozilla) from your computer.
Step 2:- Type qb64.org in the web address bar.
Step 3:- Click on windows file.
Step 4:- Github site opens, click on the operating system you have.
If you have 64 bit windows computer, Click on 7z or Zip file from window 64 bit options.
7z file:- Download HERE
Zip file:- Download HERE
If you have 32 bit windows computer, Click on 7z or Zip file from window 32 bit options.
7z file:- Download HERE
Zip file:- Download HERE
Note:- You need 7z or Zip extractor software to extract files of QBASIC.
7Z Software Downlaod :- Link (32 BIT windows)
7Z Software Downlaod :- Link (64 BIT windows)
Step 5:- After clicking on link, download starts on browser.
Step 6:- After download complete, go to download folder of your computer.
Step 7:- Now copy (Ctrl + c) folder to D: or other Drive (Not to c drive) of your computer.
Step 8:- I will paste that folder to E: Drive.
Step 9:- Right click on that folder to extract files. I have 7z software installed on my computer. So i extract from 7z software.
If you need to install 7z software, Click on DOWNLOAD LINK
Step 10:- Files Extract start, you can also see on below image.
Step 11:- Now Double Click on extract folder. Again double click. Now you have successfully extract install files on your computer.
Step 12:- But you need to create shortcut of Application file on your compouter desktop. So Right click on qb64 file, then click on Send to option and again Desktop (create shortcut) option
Step 13:- Go to desktop, you will see qb64 - Shortcut file, Double click on it.
Step 14:- Now you will see the QBASIC window where you have to write QBASIC Statements to make your program.
That's all for downloading and running QBASIC software in your computer.
Now we will start write code for the above query.
QBASIC CODE:-
Step 1:- Open Qbasic Software from your computer.
Step 2:- The following Qbasic Code is used to solve to above query. Write down clearly in the software.
Cls
Input "Enter the base" ;b
Input "Enter the height" ;h
let T = 1/2*b*h
Print " The area of triangle=" ;T
End
In the above Syntax:-
CLS
To clear the screen
Input Statement (Input)
Input Statements are used to supply the data during the ex*****on of the program from the keyboard.
Print Statement (Print)
To display the output on the screen.
Step 3:- To run this program, Go to Run Tab menu, click to start. You can also press Shortcut F5 key from the keyboard.
Step 4:- After running the program, following window is display.
Step 5:- After running, enter base as you required and Press enter Key.
Again Type breadth of a circle and Press enter button.
Step 6:- The area of triangle calculates and display on the screen. That's all.
If you want to solve above question with practically (figures also) go below link.
https://www.pschelper.com/2022/04/Qbasic-Program-Write-a-program-to-find-the-area-of-the-triangle.html
Qbasic Program; Write a program to find the area of the triangle. Qbasic Program; Write a program to find the area of the triangle.
Question:- Write a program to check whether the supplied number is prime or not.
Before starting a Qbasic program you need to know what a program is. So I'm going to tell you a little bit about the program and so on.
Computer Program:-
A computer Program is a set of instructions given to the computer to perform a particular task. It is writtern in a programming language such as QBASIC, C, C++ etc. given by the users that are translated into machine level language to obtain the desired result.
https://www.pschelper.com/2022/04/Write-a-program-to-check-whether-the-supplied-number-is-prime-or-not.html
Qbasic Program; Write a program to check whether the supplied number is prime or not. Looping is the process of repeating the ex*****on of a statement or a block of statements guided by a condition.