needOfHelpCMath
- 70
- 0
Code:
Here is my problem a*b/c+d/e/f:
*there is no code because professor ask me do hand write it out*
My answer: abc*/def//+is this correct?
The correct postfix expression for the infix notation "a*b/c+d/e/f" is "ab*c/de/f/+". This conclusion is based on the evaluation of operators with the same priority, specifically multiplication (*) and division (/), which are processed from left to right. The expression is structured as ((a*b)/c)+((d/e)/f), ensuring accurate conversion to postfix notation.
PREREQUISITESStudents learning about data structures, computer science enthusiasts, and anyone interested in understanding expression evaluation and conversion techniques.
Here is my problem a*b/c+d/e/f:
*there is no code because professor ask me do hand write it out*
My answer: abc*/def//+is this correct?
needOfHelpCMath said:Code:Here is my problem a*b/c+d/e/f: *there is no code because professor ask me do hand write it out* My answer: abc*/def//+is this correct?
I like Serena said:Hi needOfHelpCMath! (Smile)
It should be: [M]ab*c/de/f/+[/M]
That's because * and / have the same priority and are evaluated left to right.
So the expression is evaluated as [M]((a*b)/c)+((d/e)/f)[/M].
The postfix expression reflects that.