question about boolean vriables

Discussion in 'Programming' started by vegalinks, Apr 9, 2007.

  1. #1
    Hi, I have a expression to solve please help me in that.
    Here is the question:

    x, y and z are Boolean variables. Determine the truth table for the expression given below.

    ( xXORy)’ . z


    Note: The following two points must be kept in mind while attempting this question

    Ø Write the binary values for the variables x, y, z in correct order. Correct order means that decimal equivalent of binary zero comes first, then comes the decimal equivalent of one, two and so on.
    x y z
    0 0 0
    0 0 1
    Ø In the above expression x, y, z are variables colored green while ’is the sign of NOT operator and. is the sign of AND operator. And XOR is the sign of exclusive–OR operator.

    This is a question which I found on some site while developing my computer skills:p , but can't solve it myself:(

    Please HELPPPPP:confused:
     
    vegalinks, Apr 9, 2007 IP
  2. giraph

    giraph Guest

    Messages:
    484
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Okay I'll show you how to do the last one, which is,
    x = 1
    y = 1
    z = 1

    x XOR y is 0

    so you have (0)' . z

    (0)' is 1

    so you have 1 . z

    1 . 1 is 1, so the answer is 1.

    Remember to follow order of operations.



    so the first line of the truth table would be (where A is the solution):
    
    x y z A
    1 1 1 1
    
    Code (markup):
    You should be able to do the rest.
     
    giraph, Apr 9, 2007 IP