Please help me with my java class (data structure) final project.
Run <java AnimalGameGUI >to see the effect.
Please rewrite <[url removed, login to view]> by using <[url removed, login to view]> as a template in an object-oriented manner. Your class should work with my <[url removed, login to view]>.
Revise the program so that the initial knowledge tree is obtained by reading information from a file. Also, when the program ends, the knowledge tree at that point is written to the same file. You must carefully specify the format of the data in this file. The format should make it easy to do two things: (a) read the file and set the initial tree and (b) write the knowledge tree to the file using some kind of traversal.
Do not write the tree data as an object. Create a file structure where you use primitive data types and strings. You will choose a format for the records. The easiest is probably to write lines terminated by a new line (using PrintWriter's println method) and then read lines with BuffereredReader's readLine method.
You can construct a PrintWriter like this:
PrintWriter out = new PrintWriter(new FileWriter("[url removed, login to view]"));
then use the println method.
You can construct a BufferedReader like this:
BufferedReader in = new BufferedReader(new FileReader("[url removed, login to view]"));
You also need to decide how to traverse the tree when writing it out to disk. Pick a method that makes it possible to read the file back in and rebuild the tree.
In a comment at the top of your class, tell me what traversal method you are using and give a description of the records you are writing. If you use special symbols in the record, tell what they indicate.
You may use recursion for this part of the project.
Do not modify BTNode or AnimalGameGUI.
Turn in: [url removed, login to view]
Be sure it will run the first time without a stored data file.
1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.
2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):
a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.
b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.
3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).