Question: java code please explain Modify the code shown in the video lecture. Instead of an organizational chart of the DOE, make the code represent some
Modify the code shown in the video lecture. Instead of an organizational chart of the DOE, make the code represent some other tree structure from the real world. Implement two operations with your new tree structure: 1. Print out the tree structure with indentation that shows the hierarchy. 2. Perform some computation, for example, adding up values from all the tree nodes and printing the sum. Example 1: Your tree structure could show the languages of the world, each language having a name and the number of native speakers of that language. The languages are derived from each other, for example English is derived from Latin. Example 2: Your tree structure could show the species of life in the world, each having a name and the number of living creates of that species. Species descend from each other, for example lions are mammals and mammals are vertebrates. Your tree should have at least ten nodes and at least three levels. Turn in the following. - The source files (no zip file, just the individual java files). - A screen shot of your program in action. It should show the result of the test run
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
