Explain the terms infix expression, prefix expression, and postfix expression. Convert the following infix expressions to their postfix equivalents: (A) ((A – B) + D / ((E + F) * G)) (B) ( A – 2 * (B + C) / D * E) + F (C) 14 / 7 * 3 – 4 + 9 / 2
Explain the terms infix expression, prefix expression, and postfix expression. Convert the following infix expressions to their postfix equivalents: (A) …
Share
Infix: The typical mathematical form of expression that we encounter generally is known as infix notation. In infix form, an operator is written in between two operands.
For example:
An expression in the form of A * ( B + C ) / D is in infix form.
Prefix: In prefix expression, an operator is written before its operands. This notation is also known as “Polish notation”.
For example, The above expression can be written in the prefix form as / * A + B C D.
Postfix: In postfix expression, an operator is written after its operands. This notation is also known as “Reverse Polish notation”.
For example, The above expression can be written in the postfix form as A B C + * D
THE FULL ANSWER IS IN THE ATTACHMENT: