Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

you should use the Java format for Boolean expressions You need only to write the expression (example: A <= (B + 3) ), and not the complete if statement (you do not need to submit a Java program for this question). The Java Boolean expressions that you write for this question should use only the comparison operators (<, >, ==, etc.), logical operators (&&, ||, !), and math operators +, –, *, /, or % (modulo). Use parentheses where necessary. Write a Boolean expression (Java) that is TRUE if the sum of three integers (A, B, C) is even and if the three numbers are all different from each other

OpenStudy (anonymous):

Java booleans? They were ripped from C and C++ :-P

OpenStudy (anonymous):

((((A+B+C) % 2) == 0) && (A != B) && (B != C) && (A != C))

OpenStudy (anonymous):

I may be off on the parenthesis. hard to get them exact when not working in a proper text editor :)

OpenStudy (anonymous):

thanks a lot man, this is due in 15 minutes lol

OpenStudy (anonymous):

Glad I could help :)

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!