CMSC 10700 Spring 2004
Sharon Salveter

Homework #3
Due Wednesday 21 April 11:59pm

Expression Evaluation with Stacks

For both problems, the programs you turn in must use the data provided on the website, available Tuesday 20 April.

1. Text page 323-4 #4. (Infix -> Postfix, evaluate postfix)
Print both the postfix expression and the result of the evaluation.

2. Text page 324 #6. (Evaluate infix expression)