Question: * Use a hardcoded array of 1 0 - 1 5 values to then insert into the 2 - 3 Tree. Do not ask the
Use a hardcoded array of values to then insert into the Tree. Do not ask the user to insert the values here are values:
After inserting all values from the array into the Tree, your program should print the following information about the tree:
LevelOrder traversal
Leaf Nodes
Minimum value
Maximum value
Count of nodes in tree
Sum of all values
Average value
This information should be calculated using functions from within the Tree Class itself. Do not keep track of values in main, and attempt to find the min, max, etc that way. Instead, you should write a functions such as showMinValues that can be called from your main function: tree.showMinValues
Next, add a second array of values to delete from the tree. Delete all necessary values and reprint the same information about the tree again.
Next, add a third array of values search from. Search the tree for the given values and print if they were found or not found
Example Output
Inserting values into tree:
LevelOrder:
Leaf Nodes:
Min:
Max:
Node Count:
Sum:
Average:
Deleting values from tree:
LevelOrder:
Leaf Nodes:
Min:
Max:
Node Count:
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
