COMP 110 Fall 2007

Program 5: Reverse Polish Calculator

75 points

Assigned: Wednesday, November 26, 2007
Due: Monday, December 3 at 11:59 pm

In this assignment, you are to start with ReversePolishTest.java, and modify it to accept
subtraction, multiplication, division, and modulo operations.  Additionally, make the
program double precision.

I will test your modified ReversePolishTest.java with expressions such as these:

5 4 + 3 - 4 %                            ------> should result in 2.0

10 5.1 %                                   ------> should result in 4.9

10 5 - 6 * 6 2 - %                     ------> should result in 2.0
 

What to Turn in

What to Do