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

need help desperately! How do I evaluate the following logical expressions the way a C++ program would evaluate them? (a) 3>6<=9&&21==(11+10) (b) 9==9&&(1<1||25>=50) (c) x>4&&x <=7 (evaluate for x=3,5,and 8) (d) 4

OpenStudy (kva1992):

A. (3>6<9=9) && (21==(11+10) (first expression) and (second expression) B. (9==9) && ((1<1) || (25>=50)) (first expression) and (second expression) or (third expression) C. (x>4) && (x<=7) (first expression) and (second expression) I believe it should be something like this but dont quote me

OpenStudy (mathmate):

Hint: Use the table below: http://en.cppreference.com/w/cpp/language/operator_precedence and note the order of operations left-to-right or right-to-left.

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!
Latest Questions
Arriyanalol: i need help
17 hours ago 7 Replies 1 Medal
Arriyanalol: CONGRATS to me
20 hours ago 8 Replies 2 Medals
Legomaster346: What colleges are good that are near Arab Alabama?
1 week ago 5 Replies 0 Medals
Arriyanalol: i need help
1 week ago 6 Replies 2 Medals
Arizona: does anyone know the percentage rate of 30,000 and 40,000
1 week ago 0 Replies 0 Medals
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!