Find Jobs
Hire Freelancers

Animal guess game

$7-12 USD

In Progress
Posted over 20 years ago

$7-12 USD

Paid on delivery
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: [login to view URL]~main/[login to view URL] 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
Project ID: 3029420

About the project

1 proposal
Remote project
Active 20 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$9 USD in 2 days
4.5 (33 reviews)
5.2
5.2

About the client

Flag of UNITED STATES
United States
5.0
11
Member since Feb 6, 2003

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.