Create an appropriate Java Postfix calculator class (Carrano & Henry, 2019, Exercise 8- p. 176 - I'll attach it below ). Your program should accept at least five elements (data1, data2, data3, data4, data5) and will perform an appropriate postfix operation given the following scenarios:
- data1 data + data3 * data4 –
- data1 data2 * data3 data1 - / data4 data5 * +.
Use the following values for each input:
data1 = 1; data2 = 2; data3 = 4; data4 = 5; data5 = 3……..
Ensure that your program has the required class and a test class. Submit Exercise 8 and screenshots of your program's execution and output compiled into a single document. Also, attach all appropriate source code in a zip file. Attached are the instructions, the chapter that we went over, and my lecture notes.
Sample Solution