Free Republic
Browse · Search
General/Chat
Topics · Post Article

To: oldvike

“Nothing to brush up on. I’m right. Anybody that comes up with 288 is wrong. Thanks for the advice, though.”

Tell us why you’re right. FYI, if you are right, that means that Excel, Google, bc, and programs written in C, C#, PHP, JavaScript, and my HP50g are wrong. If you’re right it should be easy to explain.

Before you can ask, I’ll tell you why 288 is right. The order of operations is

Parens
Mult and Div (equal to each other)
Add and Subt (equal to each other)
Operators with equal precedence are evaluated from left to right.

48÷2(9+3) =
48÷2(12) = [Because operations inside parens are evaluated first]
24(12) = 288 [Because mult and div have equal precedence & evaluated L to R]

Where is the error in my work?


397 posted on 04/12/2011 6:21:45 PM PDT by RBranha (Captialism is the natural outgrowth of human freedom.)
[ Post Reply | Private Reply | To 389 | View Replies ]


To: RBranha

You forgot C++, Cobold, Fortran,
Pascal, Turbo Pascal. etc ;)

Bikk


479 posted on 04/13/2011 12:32:43 AM PDT by Bikkuri
[ Post Reply | Private Reply | To 397 | View Replies ]

Free Republic
Browse · Search
General/Chat
Topics · Post Article


FreeRepublic, LLC, PO BOX 9771, FRESNO, CA 93794
FreeRepublic.com is powered by software copyright 2000-2008 John Robinson