Question: 1 ) first explore using the tree.java program in this week s learning module. This program inserts 1 1 data nodes. Play around with the
first explore using the tree.java program in this weeks learning module. This program inserts data nodes. Play around with the binary tree after these data nodes on inserted by entering the first letter as shown below.
Enter first letter of show, insert, find, delete, or traverse.
Modify the program to insert nodes in ascending order and display the resulting Binary tree. What do you notice?
Modify the program to insert nodes in descending order and display the resulting Binary tree. What do you notice?
For one of the above insert steps, using the first letter for insert, to insert all the nodes.
Create a Word document with the results you can take screenshots along with a few sentences about what you observed in steps &
Also take a screenshot after you played around with the program in step
Put all the group member names in this document and email to me
tree.java
demonstrates binary tree
to run this program: Cjava TreeApp
import java.io;
import java.util.; for Stack class
class Node
public int iData; data item key
public double dData; data item
public Node leftChild; this node's left child
public Node rightChild; this node's right child
public void displayNode display ourself
System.out.print;
System.out.printiData;
System.out.print;
System.out.printdData;
System.out.print;
end class Node
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
