Discussion Locked

Using the stack ADT

0 helpful
0 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
Source code for program that simulates the operation of a calculator by scanning an integer expression in postfix form and displaying its result.The program should push each integer operand onto the stack.When an operator is encountered, the top two operand are popped,the operation is perfomed on its operands, and its result is pushed back onto stack.The final result should be the value remaining on the stack when the end of the expression is reached.The scientific calculator should at least handle the +,-,*,/,(,) operations.

0 replies

No replies were posted before this discussion closed.

This discussion is closed to new replies.