Em Andamento

Animal guess game

This is an extension of the animal-guessing game. Call your file that contains the main method AnimalGuess.

Do not write the data as an object. Create a file structure where you use primitive data types and strings. You will chose 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 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 the documentation for your code tell me what **traversal method** you are using and give a **description of the records** you are writing. Don't just print the records. If you use special symbols in the record, tell what they indicate.

Only submit the classes where you have made a change. (That is, if you make no change to EasyReader, don't include it with your submission). In the comments at the start of the class, put your name, the date modified, and a brief description of the change made.

You will probably want to use recursion in this project.

You can download the code from the book at:

[url removed, login to view]~main/[url removed, login to view]

I took out the package statements in BTNode and EasyReader, removed the imports in AnimalGuess, put all three file in the same folder, and compiled.

## Deliverables

Here is the problem statement for those of you without a book:

Revise the animal-guessing program from Figure 9.8 on page 463 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.

BE SURE TO SUBMIT YOUR OUTPUT. I can not give you full credit without the output!

Use a object-oriented solution.

## Platform

java

Habilidades: Engenharia, Java, MySQL, PHP, Arquitetura de software, Teste de Software

Ver mais: animal guessing game java code, animal guessing game java, writing with symbols, writing to a file java, writing to a file in java, writing symbols, writing problem statements, writing problem statement, writing a problem statement, where to start if you want to write a book, when to use recursion, what is tree in data structure, what is tree data structure, what is the problem statement, what is recursion, what is record in data structure, what is problem statement, what is a tree in data structure, what is a tree data structure, what is a problem statement, what do i need to start writing a book, what are the types of data structure, what are problem statements, want to start writing a book, use of tree data structure

Acerca do Empregador:
( 11 comentários ) United States

ID do Projeto: #3029420

Premiar a:

vw988650vw

See private message.

$9 USD em 2 dias
(33 Avaliações)
5.2