Evaluation of Expression
Create a program that would let the user choose what type of conversion will the program run. The program should be able to convert prefix/postfix to infix form and from infix to prefix/postfix form.
Sample Program 1
[1]Prefix to infix [2]Infix to prefix [3]Postfix to infix [4]Infix to postfix
Enter the type of conversion the program to run: 1
Enter an expression in a Prefix form to convert it into an Infix form: +-+A-B/CDFG
Infix: (((A+(B-(C/D)))-F)+G) OR A+(B-C/D)-F+G
Sample Program 2
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 2
Enter an expression in an Infix form to convert it into Prefix form: A+(B-C/D)-F+G or (((A+(B-(C/D)))-F)+G)
Prefix: +-+A-B/CDFG
Sample Program 3
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 3
Enter an expression in a Postfix form to convert it into an Infix form: ABCD/-+F-G+
Infix: (((A+(B-(C/D)))-F)+G) or A+(B-C/D)-F+G
Sample Program 4
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 4
Enter an expression in an Infix form to convert it into Postfix form: (((A+(B-(C/D)))-F)+G) or A+(B-C/D)-F+G
Postfix: ABCD/-+F-G+
Create a program that would let the user choose what type of conversion will the program run. The program should be able to convert prefix/postfix to infix form and from infix to prefix/postfix form.
Sample Program 1
[1]Prefix to infix [2]Infix to prefix [3]Postfix to infix [4]Infix to postfix
Enter the type of conversion the program to run: 1
Enter an expression in a Prefix form to convert it into an Infix form: +-+A-B/CDFG
Infix: (((A+(B-(C/D)))-F)+G) OR A+(B-C/D)-F+G
Sample Program 2
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 2
Enter an expression in an Infix form to convert it into Prefix form: A+(B-C/D)-F+G or (((A+(B-(C/D)))-F)+G)
Prefix: +-+A-B/CDFG
Sample Program 3
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 3
Enter an expression in a Postfix form to convert it into an Infix form: ABCD/-+F-G+
Infix: (((A+(B-(C/D)))-F)+G) or A+(B-C/D)-F+G
Sample Program 4
[1]Prefix to Infix [2]Infix to Prefix [3]Postfix to Infix [4]Infix to Postfix
Enter the type of conversion the program to run: 4
Enter an expression in an Infix form to convert it into Postfix form: (((A+(B-(C/D)))-F)+G) or A+(B-C/D)-F+G
Postfix: ABCD/-+F-G+