Computer Studies
Correct the mistakes in the following flowchart and write the program. The given flowchart is to accept one positive and one negative number. It also checks whether the sum is a positive number or a negative number.

QBASIC: Conditional Statements
8 Likes
Answer
Flowchart

QBASIC Program
Cls
Input "ENTER TWO NUMBERS"; A, B
Let S = A + B
If S >= 0 Then Print "POSITIVE NUMBER" Else Print "NEGATIVE NUMBER"
End
Output
ENTER TWO NUMBERS? 40,-60
NEGATIVE NUMBER
Answered By
4 Likes
Related Questions
Fill in the blanks:
_________ statement shows the output of a program during execution.
Correct the mistakes in the following flowchart and write the program. The given flowchart is to accept the length in centimeters and express it in metres (if the length exceeds 100 centimeters or more), otherwise in centimeters.
Display the output of the following QBASIC program:
CLS
P = 5
START:
PRINT P
P = P + 5
IF P <= 50 THEN GOTO START:
ENDDisplay the output of the following QBASIC program:
CLS
P = 2
Q = 1
START:
PRINT P*Q
Q = Q + 1
IF Q <=10 THEN GOTO START:
END