Write a C++ program that translates a postfix expression into machine instructions in assembly code. The assembly code will use the following instructions:
For example, the postfix expression
a b c + * d e * -
Should give the following sequence of instructions and save the instructions to a text file.
Use two different algorithms for this homework. There must be two source code (main.cpp) file. The first main.cpp is for first algorithms. The other one is for second. First main you must include Stack.h library the other main you must include LinkedStack.h library. For example: There are two folders. The first one which is first algorithm (Stack.h) includes; main.cpp and stack.h header file. The second folder includes other type of algorithms(LinkedStack.h).
Ex: If you use if () in first main.cpp, you should use switch case in other main.cpp for +-*/ operand.
Ex: If you include stack.h header file in first main.cpp, you should include LinkedStack.h in other.