Question

In: Computer Science

List the arithmetic operators used in BASIC and state their priorities of execution in a statement....

List the arithmetic operators used in BASIC and state their priorities of execution in a statement. Also give a list and briefly explain the functions of the most popular statements.(IN OWN WORDS MIUST BE)

Solutions

Expert Solution

ANSWER:

Arithmetic operations in BASIC are represented by the following

symbols:

+ - ADDITION

− - SUBTRACTION AND NEGATION

* - MULTIPLICATION

/ - DIVISION

** or ↑ - EXPONENTIATION

Exponentiation has the highest priority of execution; multiplication and division are executed next; addition and subtraction are done last. If 2 or more equally "powerful" operators are present in the statement, their execution goes from left to right.
Operations in parenthesis are always done first.

The most popular BASIC statements are:

LET variable = expression

(The arithmetic assignment statement)

INPUT variable list

(Statement for data entry from terminal into a program during the

execution phase)

READ variable, variable, etc.

(Statement for data entry from the DATA statement)

DATA constant, constant, etc.

(Information supplier statement for READ statement)

PRINT variable, constant, "junk", etc.

(Primary output statement)

REM comments

(Comments, insertion statement)

GO TO n

("Sends" the computer to the statement labelled n)

More complicated statements will be explained in later problems.


Related Solutions

Lisp In the language Lisp1 , each of the four basic arithmetic operators appears before an...
Lisp In the language Lisp1 , each of the four basic arithmetic operators appears before an arbitrary number of operands, which are separated by spaces. The resulting expression is enclosed in parentheses. The operators behave as follows: (+ a b c ...) returns the sum of all the operands, and (+) returns 0. (- a b c ...) returns a - b - c - ..., and (- a) returns -a. The minus operator must have at least one operand....
Explain how to use the C# shortcut arithmetic operators -=, *=, and /=.
Explain how to use the C# shortcut arithmetic operators -=, *=, and /=.
USING C++: Consider the precedence levels of the relational, logical, and arithmetic operators of the PySub...
USING C++: Consider the precedence levels of the relational, logical, and arithmetic operators of the PySub language to be as follows (NOTE: 5 has highest precedence and 0 lowest): 5 *, /, % 4 +, - 3 <, <=, >, >=, !=, == 2 not 1 and 0 or 1.  Infix-Postfix Conversion and Evaluation with Logical and Relational operators – Convert the following infix expression to a postfix expression and evaluate the result (assume that true=1 and false=0). Provide both the...
Using the descriptions below, write a scanner for numbers, symbols, comments, arithmetic operators, and parenthesis in...
Using the descriptions below, write a scanner for numbers, symbols, comments, arithmetic operators, and parenthesis in Racket or scheme. - a number is one or more digits | zero of more digits followed by a decimal point followed by one or more digits | one or more digits followed by a decimal point followed by zero or more digits - a symbol is      one or more characters from the set [_A-Za-z] followed by zero or more characters from the...
State clearly if statement is true or false. [7pts] There are two basic types of the...
State clearly if statement is true or false. [7pts] There are two basic types of the form of association: positive and negative. A coefficient of determination is obtained by squaring a correlation coefficient. Whole area under the normal curve is equal to 100% or 10. The CLT is applied if a sample is chosen from the population Confidence level of 80% gives the probability that obtained confidence interval contains true population parameter. For confidence level of 99%, the z* value...
C++ OOP Make a program to evaluate infix arithmetic expressions containing integer operands and the operators...
C++ OOP Make a program to evaluate infix arithmetic expressions containing integer operands and the operators + (addition), - (subtraction), * (multiplication), / (division) and pairs of parentheses, properly nested. Use the following two-stack algorithm (by E. W. Dijkstra): If the next token in the expression is an integer, push the integer onto the value stack. If the next token in the expression is an operator, If the operator stack is empty or the priority of the operator is greater...
using python without external libaries Using integer arithmetic operators '+' and '-', print all combinations that...
using python without external libaries Using integer arithmetic operators '+' and '-', print all combinations that sum up to 'sum' by inserting the operators between digits in 'number'. example for 'number=123456789' and 'sum = 0' Print the output using the terminal: Output should be exactly like this from 1 - 22 1 : +1+2-34-56+78+9=0 2 : +1-2-34+5+6+7+8+9=0 3 : +1-23-4-56-7+89=0 ... 12 : -1+2+34-5-6-7-8-9=0 13 : -1+23+4+56+7-89=0 14 : -1-2+34+56-78-9=0 ... 22 : -12-34+56+7-8-9=0
Relational Operators For Cpp Discuss why relational operators can be used with enumeration types. Provide at...
Relational Operators For Cpp Discuss why relational operators can be used with enumeration types. Provide at least 2 examples of relational expressions with enumeration types. Explain your examples
Assume that the state of the 8086 registers and memory just prior to the execution of...
Assume that the state of the 8086 registers and memory just prior to the execution of each instruction is given as below: (AX) = 0000 H (BX) = 0010 H (CX) = 0105 H (DX) = 1111 H (SI) = 0100 H (DI) = 0200 H (CF)= 0 (DS:100H) = 0F H (DS:200H) = 22 H (DS:220H) = AA H (DS:221H) = 55 H (DS:400H) = AA H (DS:401H) = 55 H Examine the following instructions independently and calculate the...
1. List anode usually used in thin film solid state battery 2. List cathode usually used...
1. List anode usually used in thin film solid state battery 2. List cathode usually used in thin film solid state battery 3. List electrolyte usually used in thin film solid state battery 4. What is the depositing method of the cathode material and how it works? What is the depositing method of the anode material? 5. Simply describe the layer configuration of a thin film solid state battery. answer all the 5 questions solid battery
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT