Specifications:
1. Create a Project3 class under the project package.
2. In the Project3 class you will create a static void test() method. In this test method you will do the following:
a. Utilize the MyStack and MyQueue classes to convert infix expressions involve single digit integer number, +, -, *, /, %, and together with ( ) into postfix expressions then evaluate the postfix expressions.
b. The infix expressions are located in a file named “COSC602_P3_Input.txt”. Each line contains an infix expression (whitespaces and empty lines should be ignored.).
c. The corresponding postfix expressions and results should be written into a file named
“COSC602_P3_Output_
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
29 | 30 | 1 | 2 | 3 | 4 | 5 |
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | 1 | 2 |