Question

Convert the following arithmetic expressions from reverse Polish notation (RPN) to infix notation : A B...

Convert the following arithmetic expressions from reverse Polish notation (RPN) to infix notation :

  1. A B C * + D / E F + *
  2. A B C D E F G + * + * + *
0 0
Add a comment Improve this question Transcribed image text
Answer #1

A)infix notation:

(A+B*C)/D* (E+F)

Because

Авск + р/ EF 4 x Reading Expression Stack СВх с) В C + Сря в хо)

(A + B + c) / ICA+B+C)/01 CATB+C) / 1 F F F ICA+B+C) / 1 + E + F Eff (A+B+C) 10 * (A+B+C) 10* (Et F) so infixi CA+B+C)/ox(E+Fb ans:

Infix:A*(B+C*(D+E*(F+G)))

Because

& & & & F G & A B C D staus reading Expression B o E

Oo oo + (fta)

& & & Ceta) sx FtG o loco & Cotex (FAG)) DSCF & cx (0 + E + CHG7) + (B+C LD + E + (F26))) [(B + C + (0+ EX (FAG)

Cote & C F * G7] so intit and ) A (B+C * (Dt & X CFAG)

#if you have any doubt or more information needed just comment below..I will respond as possible as soon..if you like give thumbs up..thanks..

Add a comment
Know the answer?
Add Answer to:
Convert the following arithmetic expressions from reverse Polish notation (RPN) to infix notation : A B...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT