Stacks _ Arithmetic Expressions [A]

Stacks _ Arithmetic Expressions [A] - Mallard ECE 290:...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Mallard ECE 290: Computer Engineering I - Spring 2007 - Graded Web. .. https://mallard.cites.uiuc.edu/ECE290/webgrade.cgi?SessionID=mding3. .. 1 of 3 4/23/2007 3:37 PM Graded WebQuiz: Stacks / Arithmetic Expressions You have submitted this WebQuiz 1 time (including this time). You may submit this WebQuiz a total of 10 times and receive full credit. Please refer to an online source for definitions of postfix and infix. See e.g. http://en.wikipedia.org/wiki/Reverse_Polish_notation Be certain your answers are precise: you may insert spaces as you wish, but other deviations from the "official" response are liable to be marked wrong. And be certain that you keep variables in the given order: i.e., do not use commutativity . Whoops: Stack is upside down in the last problem. Question #1 Put the following expression into postfix (RPN) form: F * (D + C + (B - A) * E) Postfix form: FDCBA-E*++* Warning: The calculation must be done in the exact order specified: in particular, do not use commutativity
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 3

Stacks _ Arithmetic Expressions [A] - Mallard ECE 290:...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online