This is C++ code to Evaluate RPN expressions using a stack, store intermediate results in a queue,
Question:
This is C++ code to Evaluate RPN expressions using a stack, store intermediate results in a queue, and use input files to simulate user input in your program. I need help to complete the code listed below.
Below is the input file, P1.in.
For the P1.in example given above, your program should exactly generate the following output:
The output for each RPN expression is comprised of four lines of output, as follows:
• expression number
• expression with one space after each operand or operator
• value of the expression or a message if it is invalid
• intermediate results, with one space after each
Must have the following files:
• Stack.h
• Stack.cpp
• Queue.h
• Queue.cpp
• RPNEval.h
• RPNeval.cpp
• Prog1.cpp
Code that needs to be updated:
Prog1.cpp
RPNEval.cpp
RPNEval.h
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill