Question
Make The Reverse Polish Notation Calculator Work. We Went Through The Implementation Of An RPN Calculator In Class. Make the Reverse Polish Notation calculator work.
Make The Reverse Polish Notation Calculator Work. We Went Through The Implementation Of An RPN Calculator In Class.
Make the Reverse Polish Notation calculator work.
We went through the implementation of an RPN calculator in class.
Make it into a complete C++ program and make sure it works properly.
And make it work for doubles, rather than just ints.
Make sure you define your own struct for a vector of doubles, and
use it in your implementation.
Here's a small sample of the sort of thing that should work:
(The dots at the end of each RPN expression are to mark the end of the expression)
1 2 3 4 5 + + + + .
result is 15
12.3 45.6 + .
result is 57.9
1 2 + 3 + 4 + 5 + 10 / .
result is 1.5
1 2 * 3 4 * + 5 + .
result is 19
1 2 + 3 4 + * 5 * .
result is 105
Your program should be crash-proof. That means that it should continue running no
matter what bad inputs the user provides.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started