The following with be located in a seperate test file ABC*D+* A AB+CD+EF%G--* Wr
ID: 3807457 • Letter: T
Question
The following with be located in a seperate test file
ABC*D+*
A
AB+CD+EF%G--*
Write a program that repeatedly reads a postfix expression from the file and stores it in a string, calls a function that converts postfix to fully parenthesized infix, and prints both expressions.
The function accepts a postfix expression stored in a string as its only parameter and returns a string that contains the corresponding fully parenthesized infix expression. The function uses the standard stack based postfix evaluation with fully parenthesized infix expressions as partial results.