CSC 343 - Data Structure
Dr. R. M. Siegfried
Assignment 2 - p.115/2.3.1, 2.3.2, 2.3.3
Due Wednesday, September 14, 2016
2.3.1. Transform the following expressions into prefix and postfix:
a. A + B - C
b. (A + B) (C - D) $ E * F
c. (A + B) * (C $ (D - E) + F) - G
d. A + (((B - C) * (D - E) + F) / G) $ (H - J)
2.3.2 Transform each of the following prefix expression to infix
a. + - ABC
b. + A - B C
c. + + A - * $ B C D / + E F * G H I
d. + - $ A B C * D * * E F G
2.3.3 Transform each of the following postfix expressions to infix:
a. A B + C -
b. A B C + -
c. A B - C + D E F - + $
d. A B C D E - + $ * E F * -
[Back to the Assignments List]