N Ngoc Hue New member Sep 16, 2021 #1 Evaluate the following infix expression using algorithm and choose the correct answer. a+b*c-d/e^f where a=1, b=2, c=3, d=4, e=2, f=2. A. 6 B. 8 C. 9 D. 7
Evaluate the following infix expression using algorithm and choose the correct answer. a+b*c-d/e^f where a=1, b=2, c=3, d=4, e=2, f=2. A. 6 B. 8 C. 9 D. 7
N Nguyễn Hương Chà New member Sep 16, 2021 #2 Answer: A Explanation: ^ has the highest order of precedence. Hence, 2^2 is evaluated first, and then, 2*3 and 4/4 are evaluated. Therefore, 1+6-1=6. Upvote 0 Downvote
Answer: A Explanation: ^ has the highest order of precedence. Hence, 2^2 is evaluated first, and then, 2*3 and 4/4 are evaluated. Therefore, 1+6-1=6.