Evaluate the following conditional expressions in a step-by-step manner as shown in the examples when x = 1 and y = 2.

Note: In the solutions below, indicate the current logical expression being evaluated according to the rules of precedence.

NOT((x — 2) > = 1 OR (x — 1) < > 0 AND NOT (x = 1)) Evaluates as True


Assign Values NOT ((1 — 2) > = 1 OR (1 — 1) < > 0 AND NOT (1 = 1))
Add Parentheses NOT (((1 — 2) > = 1) OR ((1 — 1) < > 0 ) AND NOT (1 = 1))
Do Arithmetic NOT ((— 1 > = 1) OR (0 < > 0) AND NOT (1 = 1))
Evaluate Relational Exp. NOT (F OR F AND NOT(T))
Evaluate Logical Exp.
Inside Parentheses
NOT NOT ( F OR F AND F) = NOT (F OR F)
AND NOT (F OR F) = NOT (F)
OR NOT (F) =T
Get Result True

Computer Science & Information Technology

You might also like to view...

Write Java statements that compares Objects, O1 and O2, using the getClass() method.

What will be an ideal response?

Computer Science & Information Technology

Partitions are physical divisions of hard drives.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

The Web analytic that measures the number of individual site visitors during a specific period of time is ____.

A. repeat visitors B. unique visitors C. conversion rate D. click-stream analysis

Computer Science & Information Technology

When designing a new database, sketching a(n) ____________________ of the reports and other desired database output can be helpful in identifying the fields that need to be included in the database.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology