William D McQuain CS 2604 RPN Calculator ------------------------------------------- Command: enter 4 ------------------------------------------- Command: enter -7 ------------------------------------------- Command: enter + ------------------------------------------- Command: enter 2 ------------------------------------------- Command: enter 3 ------------------------------------------- Command: enter 4 ------------------------------------------- Command: stack 0: 4 1: 3 2: 2 3: -3 ------------------------------------------- Command: enter 5 ------------------------------------------- Command: stack 0: 5 1: 4 2: 3 3: 2 4: -3 ------------------------------------------- Command: enter * ------------------------------------------- Command: accumulator 20 ------------------------------------------- Command: enter * ------------------------------------------- Command: stack 0: 60 1: 2 2: -3 ------------------------------------------- Command: enter * ------------------------------------------- Command: enter * ------------------------------------------- Command: accumulator -360 ------------------------------------------- Command: accumulator -360 ------------------------------------------- Command: stack 0: -360 ------------------------------------------- Command: exit -------------------------------------------