Question: please use java! Thanks! In the first part of this assignment, you will design a data structure (by drawing it out on paper) that a
please use java! Thanks!





In the first part of this assignment, you will design a data structure (by drawing it out on paper) that a computer could use to play a game of "twenty questions" where all the possible questions and answers are known ahead of time. (Another similar application of this which you may have seen can be found in video games, where non-player characters (NPCs) often ask you a series of questions and give you appropriate responses based on your answers.) Consider the following yes-or-no questions: . Is it a mammal? Does it live with humans? . Is it intelligent? Does it have more than 2 legs? . Is it used for food? . Do we use it for clothes? . Is it a pet? . Is it a bird? Is it aquatic? . Is it a pack hunter? Is it an arthropod? . Is it an insect? Is it aggressive? In the first part of this assignment, you will design a data structure (by drawing it out on paper) that a computer could use to play a game of "twenty questions" where all the possible questions and answers are known ahead of time. (Another similar application of this which you may have seen can be found in video games, where non-player characters (NPCs) often ask you a series of questions and give you appropriate responses based on your answers.) Consider the following yes-or-no questions: . Is it a mammal? Does it live with humans? . Is it intelligent? Does it have more than 2 legs? . Is it used for food? . Do we use it for clothes? . Is it a pet? . Is it a bird? Is it aquatic? . Is it a pack hunter? Is it an arthropod? . Is it an insect? Is it aggressive
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
