Question: Create java code that will grab an expression from the user and evaluate it . The expression can contain + - / * ( )

Create java code that will grab an expression from the user and evaluate it. The expression can contain +-/*()
The expression will not contain any spaces. All the numbers will be single digit (between 0 and 9). No error checking is necessary.
Must have 5 classes in program: Node, Stack, Queue, Postifix and Driver
Example:
Give me an expression: 2*(6-3)
What will be displayed on the screen:
Postfix expression: 263-*
Answer: 6
Do not use any of the built-in stack functions. Convert to postfix and evaluate.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!