Question: You are developing a simple calculator application for a futuristic handheld device. The calculator uses a unique postfix notation where each operator follows its
You are developing a simple calculator application for a futuristic handheld device. The calculator uses a unique postfix notation where each operator follows its operands, and the user enters expressions without the need for parentheses. The user can input numbers, basic arithmetic operators (+,-, *, /), and they expect an immediate result. Implement an application that needs to handle these types of expressions and provide an answer instantly. The application produced by you implements a function that takes user's input in postfix notation and returns the simplified result otherwise it returns -1' if the post fix evaluation is incorrect.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
