Write a Java program that takes as input a fully parenthized, arithmetic expression and converts to a binary expression tree. The program shall allow for leaves to store variables of the form x1, x2, and x3 and so on, which are intially 0 and which can be updated interactively by the user.
The program should then show a menu with the following option.
When item 1 is selected, the program should display the tree in some way and also print the name/value of variables (if any)
If a option for 2, 3, or 4 is selected the program should print out the expression by the corresponding traver
Option 5 requires further input from user. A pair of input, namely
will be provided interactely and your program should search for the var_name and replace its value by new_value
Arithmetic calculation is involved by option 6 which shall display the result
Option 7 terminates the program
the implemention should be based on the generic algorithm Euler tour. In other words you must design specialized classes to implement Display, Preorder, Inorder, Postorder and Calculate by extending the abstract class EulerTour.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request.
3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site).
Hey guys i need this assignment by Oct 16 6:p.m est
If u ppl can do it by then please let me know I might give some bonus as well