Answer to Question #228511 in Algorithms for umme habiba sumi

Question #228511

Translate each infix expression into its equivalent prefix and postfix expression.

i) (A+B) / (D-C) ;

ii) (A+BꜛD)/(E-F)+G ;

iii) A *(B+D)/E(G+H/k)


1
Expert's answer
2021-08-23T07:29:22-0400
i) (A+B) / (D-C) ;
Answer:
Prefix : / +AB -DC
Postfix: AB+ DC-/

ii) (A+BꜛD)/(E-F)+G ;
Answer:
Prefix  : +/+AꜛBD-EFG
Postfix : ABDꜛ+EF-/G+
  
iii) A *(B+D)/E(G+H/k)
Prefix  : *A/+BDE+G/Hk
Postfix : ABD+*EGHk/+/ 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS