next up previous
Next: About this document

RPN Calculator Project - 2

CS2500, Spring, 1997

For this project, your are to re-implement your integer RPN calculator (as described in class). Your calculator should handle the same seven operators (+, -, *, /, m, p, q), where +, -, * are integer addition, subtraction and multiplication, / is integer division (i.e., div), m is unary minus (making the top number on the stack negative), p prints the top of the stack, and q quits the calculator.

Your calculator should be able to handle multiple digit numbers. You may assume there will be spaces between integers, and between integers and operators.

You must use a different implementation of a stack for this project than you did for the first RPN project. You are not to change your main program - change only the stack implementation.

This project is due (e-mailed to me) by thursday, March 27.





Tom Carter
Tue Mar 25 11:15:01 PST 1997