For the given input values of A and B, use the program to find the output values

Question:

For the given input values of A and B, use the program to find the output values of X.
LET C = A + B
IF ((A > 0) OR (B > 0)) AND (C > 0)
THEN LET X = 100
ELSE LET X = -100
(a) A = 2, B = 2
(b) A = 2, B = -2
(c) A = 2, B = -5
(d) A = -2, B = -5
(e) A = -5, B = 3
(f) A = -5, B = 8
Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Finite Mathematics and Its Applications

ISBN: 978-0134768632

12th edition

Authors: Larry J. Goldstein, David I. Schneider, Martha J. Siegel, Steven Hair

Question Posted: