Question

In: Computer Science

Write two simple logical statements in English. Negate your second simple statement. Then write out a...

Write two simple logical statements in English. Negate your second simple

statement. Then write out a compound statement using your first simple statement and the

negated statement with the following connectives. In each case evaluate the truth value of your

compound statement.

(a) Logical AND

(b) Logical OR

(c) Logical XOR

(d) Logical implication

Solutions

Expert Solution

Statement 1: I'm 24 years old

Statement 2: I'm a boy

The negation of Statement 2: I'm not a boy

a) Logical AND

I'm 24 years old AND I'm not a boy

I'm 24 years old I'm not a boy I'm 24 years old AND I'm not a boy
T F F
T T T
F F F
F T F

b) Logical OR

I'm 24 years old OR I'm not a boy

I'm 24 years old I'm not a boy I'm 24 years old OR I'm not a boy
T F T
T T T
F F F
F T T

c) Logical XOR

Either I'm 24 years old, or I'm not a boy, but not both

I'm 24 years old I'm not a boy Either I'm 24 years old, or I'm not a boy, but not both
T F T
T T F
F F F
F T T

d) Logical implication

if I'm 24 years old, then I'm not a boy

I'm 24 years old I'm not a boy if I'm 24 years old, then I'm not a boy
T F F
T T T
F F T
F T T

Please don't forget to give a positive rating to the answer. Your rating motivates experts to help other students also. Thank you :)


Related Solutions

1.Logical equivalence of two English statements. Define the following propositions: j: Sally got the job. l:...
1.Logical equivalence of two English statements. Define the following propositions: j: Sally got the job. l: Sally was late for her interview r: Sally updated her resume. Express each pair of sentences using a logical expression. Then prove whether the two expressions are logically equivalent. (a) If Sally did not get the job, then she was late for interview or did not update her resume. If Sally updated her resume and was not late for her interview, then she got...
most important part c) Determining whether a quantified logical statement is true and translating into English,...
most important part c) Determining whether a quantified logical statement is true and translating into English, part 2. infoAbout In the following question, the domain of discourse is a set of male patients in a clinical study. Define the following predicates: P(x): x was given the placebo D(x): x was given the medication A(x): x had fainting spells M(x): x had migraines Suppose that there are five patients who participated in the study. The table below shows the names of...
Python Programming Write a simple implementation of a card deck to deal cards out randomly. Your...
Python Programming Write a simple implementation of a card deck to deal cards out randomly. Your Deck class will contain a list of card objects. Initially, the deck will contain one instance of each of the 52 possible cards. Your deck should implement a deal() method that chooses a random location from the list and "pops" that card. You should also implement a cardsLeft method that tells how many cards are left in the deck. Please type code and include...
For java. It's your turn to write a test suite! Let's start out simple. Create a...
For java. It's your turn to write a test suite! Let's start out simple. Create a public class TestArraySum that provides a single void class method named test. test accepts a single parameter: an instance of ArraySum. Each ArraySum provides a method sum that accepts an int[] and returns the sum of the values as an int, or 0 if the array is null. However, some ArraySum implementations are broken! Your job is to identify all of them correctly. To...
Discret Math MATH/CSCI2112 (3) (a) Write the following premises and the conclusion as logical statements and...
Discret Math MATH/CSCI2112 (3) (a) Write the following premises and the conclusion as logical statements and prove the conclusion correct: (use the symbols in brackets). If the flight is late, I will spend the night in Toronto. If I miss my flight I will spend the night in Winnipeg. Either my flight is not late, or I did not miss my flight from Winnipeg, but not both. Therefore either I will spend the night in Toronto, or I will spend...
5. Write a C++ statement or statements that will:       Print the first two digits and the  last...
5. Write a C++ statement or statements that will:       Print the first two digits and the  last two digits of any 4 digit number stored in an integer variable n.         For example, given int n = 5623, print 56    23. 6. Write  C++ statements that will align the following three lines as printed in two 20 character columns. Name                                                 Years President Abraham Lincoln                                 1860-1865 Thomas Jefferson                               1801-1809 7.  Write a C++ statement or statements that will Output if a string has a length greater than 10, equal...
Please write in paragraph format. Write two paragraph on this statement in your own words: Distinguish...
Please write in paragraph format. Write two paragraph on this statement in your own words: Distinguish between de jure discrimination and de facto discrimination. Why is the latter form of discrimination more difficult to overcome?
Write A if both statements are true. Write B if the first statement is true and...
Write A if both statements are true. Write B if the first statement is true and the second statement is false. Write C if the first statement is false and the second is true. Write D if both statements are false. a. Asset diversification results in the reduction of asset variance, compared with a simple linear combination of the variances, that comes from holding two or more assets held in the portfolio, provided that these asset’s returns are not perfectly,...
Write out code for a nested if statement that allows a user to enter in a...
Write out code for a nested if statement that allows a user to enter in a product name, store the product into a variable called product name and checks to see if that product exists in your nested if statement. You must include 5 product names to search for. If it is then assign the price of the item to a variable called amount and then print the product name and the cost of the product to the console. If...
Write a program in C++ to implement Lamport’s logical clocks. Your program should take as input...
Write a program in C++ to implement Lamport’s logical clocks. Your program should take as input a description of several process schedules (i.e., lists of send, receive or print operations). The output of your program will be a linearization of these events in the order actually performed, annotated with Lamport clock values. The input of the program will be a collection of processes, each with a list of operations to perform. The processes are named p1...pn for some n (you...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT