Question: For the given input values of A and B, use the program to find the output values of X. LET C = A + B

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

Step by Step Solution

3.30 Rating (168 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a A 2 0 and C 2 2 4 0 so the condition is met and X 100 b C 2 2 0 so t... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Document Format (1 attachment)

Word file Icon

1385-M-S-L-P(3230).docx

120 KBs Word File

Students Have Also Explored These Related Statistics Questions!