I'm not adding a rule - I'm saying that an operation has to operate within a defined set of 'visible' parameters.
The equation couldn't be written with ambiguity - IOWs I would make it a mandatory rule to write it as such:
(5 + 5 + 5) - 5 + (5 + 5) - 5 + (5 x 0) = 15
No one here would get the wrong answer IMO. And if one's goal is to produce the correct answer then the logic makes sense.
The equation is already without ambiguity - the rules for precedence are clear and unambiguous and if you apply them you always get the answer 15: You can't arbitrarily ignore the rules and then complain they're not clear!
^^^ Yes. With no parenthesis in the original stated equation, what keeps it from being this?
(5+5+5-5+5+5-5+5)X0= or anything else? Rules say do the parenthesis first, but where are they? Is there a rule for that when they aren't given?
Dale
PEMDAS keeps it from being that or anything else - the rules are an order of precedence and you just follow this order from left to right and apply even if some of the items are "missing":
Parentheses, Exponents, Multiplication and Division, Addition and Subtraction
or (if you prefer BODMAS)
Brackets, Orders (exponents), Division and Multiplication, Addition and Subtraction
If there are no parentheses you just move along to the next item on the list. As there's no exponent either, you carry on to the next item in the list, which is multiplication.
There
is a multiplication in this equation so you do that first:
5 x 0 = 0
Now you have
5 + 5 + 5 - 5 + 5 + 5 - 5 + 0
As Addition and Subtraction have the same order of precedence you can do them in any order as long as you do them in the same step (same with multiplication and division), so you can either do
5 - 5 = 0
Then
5 + 5 + 0 + 5 + 0
or just in the order it's written, and either way you get the same answer
The rules are
very clear and following them gives you the answer 15