Transforming infix notation to postfix, calculating postfix notation and calculating infix notation by using RPN rules.