Question: Write a stack class. The stack class must include at least push, pop, top, isEmpty, isFull methods. You can implement any additional methods, as they
Write a stack class. The stack class must include at least push, pop, top, isEmpty, isFull methods. You can implement any additional methods, as they needed. Write your class in stack.h and stack.cpp. The part 1 does not needed to be tested.
Create the postfix.cpp file the converts an infix expression into a postfix expression. You must use the stack.h and stack.cpp implemented in Part 1. The program must allow the user inputs, and the inputs should not include any alphabets. You need to handle (, ), +, -, /, * and % operators. ^ will not be considered in this program. Also, please consider only one digit numbers
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
