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