Stacks _ Arithmetic Expressions [B]

# Stacks _ Arithmetic Expressions [B] - Mallard ECE 290...

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

Mallard ECE 290: Computer Engineering I - Spring 2007 - Graded Web. .. https://mallard.cites.uiuc.edu/ECE290/webgrade.cgi?SessionID=mding3. .. 1 of 2 4/23/2007 4:01 PM Graded WebQuiz: Stacks / Arithmetic Expressions You have submitted this WebQuiz 2 times (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: (A + B) * C + (D - E) * F Postfix form: AB+C*DE-F*+ Warning: The calculation must be done in the exact order specified: in particular, do not use commutativity

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

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

### Page1 / 2

Stacks _ Arithmetic Expressions [B] - Mallard ECE 290...

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

View Full Document
Ask a homework question - tutors are online