Computer Science, asked by sasha008, 2 months ago

Write a QBASIC
program
to create a horizontally moving
dot​

Answers

Answered by jaybibhutiyadav0208
1

Answer:

The question mark (?) is optional, but no matter which version of the PRINT command you use, the PRINT command will be there. If you type PRINT, nothing happens, since PRINT is a command, but when you type ?, then it is automatically turned into PRINT for you. Either way is fine and either way ends up in PRINT, so feel free to choose.

—————————————————————————————————————————————————————

Now, let’s put some arithmetic in our programs.This will only be basic arithmetic in this lesson. More complicated may come later, possibly. First off, remember that you need to remember the order of operations. There is a special order of operations for programming too, but in this lesson that is not important. Right now, you only need to know the arithmetic order of operations, which is PEMDAS:

Parentheses

Exponents

Multiplication

Division

Addition

Subtraction

Remember that the operations are performed in that way. Let’s start using it then, but first, the symbols for each of these is the following:

Parentheses ()

Exponents ^

Multiplication *

Division /

Addition +

Subtraction –

So in one program, let’s apply all of these. The following does such a job.The question mark (?) is optional, but no matter which version of the PRINT command you use, the PRINT command will be there. If you type PRINT, nothing happens, since PRINT is a command, but when you type ?, then it is automatically turned into PRINT for you. Either way is fine and either way ends up in PRINT, so feel free to choose.

—————————————————————————————————————————————————————

Now, let’s put some arithmetic in our programs.This will only be basic arithmetic in this lesson. More complicated may come later, possibly. First off, remember that you need to remember the order of operations. There is a special order of operations for programming too, but in this lesson that is not important. Right now, you only need to know the arithmetic order of operations, which is PEMDAS:

Parentheses

Exponents

Multiplication

Division

Addition

Subtraction

Remember that the operations are performed in that way. Let’s start using it then, but first, the symbols for each of these is the following:

Parentheses ()

Exponents ^

Multiplication *

Division /

Addition +

Subtraction –

So in one program, let’s apply all of these. The following does such a job.The question mark (?) is optional, but no matter which version of the PRINT command you use, the PRINT command will be there. If you type PRINT, nothing happens, since PRINT is a command, but when you type ?, then it is automatically turned into PRINT for you. Either way is fine and either way ends up in PRINT, so feel free to choose.

—————————————————————————————————————————————————————

Now, let’s put some arithmetic in our programs.This will only be basic arithmetic in this lesson. More complicated may come later, possibly. First off, remember that you need to remember the order of operations. There is a special order of operations for programming too, but in this lesson that is not important. Right now, you only need to know the arithmetic order of operations, which is PEMDAS:

Parentheses

Exponents

Multiplication

Division

Addition

Subtraction

Remember that the operations are performed in that way. Let’s start using it then, but first, the symbols for each of these is the following:

Parentheses ()

Exponents ^

Multiplication *

Division /

Addition +

Subtraction –

So in one program, let’s apply all of these. The following does such a job.

Similar questions