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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!