456 Answered Questions for the topic logic
Logic Philosophy
04/20/19
Give me three features that make alive things different from things that are not alive?
Logic Philosophy
04/20/19
How can one become a better thinker?
Logic Philosophy
04/20/19
How do I find my real purpose in life?
04/20/19
Are there any philosophy books for an intelligent nine-year-old?
I would like to buy some books on philosophy for the child of a friend. He is very intelligent and mathematically able and clever for a nine-year-old. I remember near that age really enjoying the...
more
Logic
04/18/19
Please solve this proof ASAP.
(J v A) > [(S v K) > (~I • Y)]
(~I v ~M) > E
// J > (S > E)
Logic Algebra 2
04/18/19
Critical Thinking
The owner of a hotel needs to decorate 20 rooms. He has found prices for four different types ofinterior wood paint and calculated the volume of paint he needs for each room. He will use thesame...
more
C: XNOR / Exclusive-Nor gate?
I am trying to find the most effective way of writing a XNOR gate in C.
if(VAL1 XNOR VAL2)
{
BLOCK;
}
Any suggestions?
Thanks.
Logic Proof
04/17/19
I need help finding out how to solve this proof
04/16/19
Can you prove anything in philosophy?
I don't understand philosophy very well, and so I am wondering whether you can "prove" anything in philosophy. It always seems you can go a layer down, and find another question, almost endlessly...
more
Logic Python
04/16/19
How to do while loops with multiple conditions?
I have a while loop in python
condition1=False
condition1=False
val = -1
while condition1==False and condition2==False and val==-1:
val,something1,something2 = getstuff()
if...
more
04/15/19
Is there a way to understand material implication without truth-tables?
I understand how, given the truth-functional definition of the conditional, any sentence of the formIf P then Q is truth-functionally equivalent to Either not-P or QOr, to put it symbolically: P →...
more
04/14/19
In Java, what are the boolean "order of operations"?
Let's take a simple example of an object `Cat`. I want to be sure the "not null" `cat` is either orange or grey.
if(cat != null && cat.getColor() == "orange" || cat.getColor() == "grey")...
more
04/12/19
Multi-variable switch statement in c#?
I would like use a switch statement which takes several variables and looks like this:
switch (intVal1, strVal2, boolVal3)
{
case 1, "hello", false:
break;
case 2, "world", false:
break;
...
more
04/12/19
Distinguishing extra element from two arrays?
One of my friend was asked this question in an interview -
- You have given two integer arrays each of size 10.
- Both contains 9 equal elements (say 1 to 9)
- Only one element is...
more
Dynamically evaluating simple boolean logic in Python?
I've got some dynamically-generated boolean logic expressions, like:
* (A or B) and (C or D)
* A or (A and B)
* A
* _empty - evaluates to True_
The placeholders get replaced with booleans. Should...
more
04/07/19
Python simple if or logic statement?
How would you write, in python:
if key < 1 or key > 34:
I've tried every way I can think of, and am finding it very frustrating.
Logic Python
04/07/19
Reason for "all" and "any" result on empty lists?
In Python, the built-in functions [`all`](http://docs.python.org/library/functions.html#all) and [`any`](http://docs.python.org/library/functions.html#any) return `True` and `False` respectively...
more
04/05/19
Is 1+1=2 true by definition ?
Logic C
04/04/19
1 = false and 0 = true?
I came across an is_equals() function in a c API at work that returned 1 for non-equal sql tables (false) and 0 for equal ones (true). I only realized it after running test cases on my code, one...
more
&& operator behaves like || operator?
I am a beginner and I've been trying to run a program that prints all the numbers from 1 to N (user input) except for those that are divisible by 3 and 7 at the same time. What my code does...
more
In Java XOR with three true inputs returns true. Why?
The following code
System.out.println("1 0 0: " + (true ^ false ^ false));
System.out.println("1 0 1: " + (true ^ false ^ true));
System.out.println("1 1 0: " + (true ^ true ^ false));
...
more
04/02/19
Help to understand this question from reading comprehension in my GRE textbook?
> *The organizers of tomorrow's outdoor concert announced that it will go on tomorrow on schedule unless bad weather is forecast or too few advance tickets are sold. If the concert is canceled,...
more
03/31/19
What's so fallacious about the Slippery Slope Fallacy?
When you look at the world, I think it's a rather non-controversial statement that a good percentage, if not a majority, of social problems are caused by people making choices based solely on...
more
03/30/19
Singular Plural?
Is the word "**gene**" a countable noun? I'm asking you this question to answer the problem below:"Proponents argue that this particular strain is altered only by the removal of **the gene**...
more
Still looking for help? Get the right answer, fast.
Ask a question for free
Get a free answer to a quick problem.
Most questions answered within 4 hours.
OR
Find an Online Tutor Now
Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.