Due: Thursday 4/18 10:00am

Submission name: w21_flip

For this, you will need the ExpressionTreeNode and ExpressionTree classes, which you can get here: https://github.com/nextcs-dw/dwsource/tree/main/Expression

Reminder: Test Thursday 4/18

Modify your Expression tree to allow for the following capabilities:

  • When an operator node is selected (via mouse press), it changes to another operation. Cycle through the operations like so: + - * / + ...
  • When a value node is selected, if it is non-zero, change it to zero. If it is zero, change it to an integer in the range [-99, 99]