Question
USE JAVA (Binary guessing tree) Write a Java program using a binary tree that asks the user a series of yes or no questions about
USE JAVA
(Binary guessing tree) Write a Java program using a binary tree that asks the user a series of yes or no questions about a pre-selected topic. You will implement the binary tree structure yourself using your course notes so far. This binary tree should be a full (perfect) tree of height 4 - this means it will have 15 nodes in total. A test run of this binary guessing tree may look like this:
Think of a musical instrument and I will guess it.
Does it have strings? YES
Do you play it with a bow? NO
Does it have 6 strings? NO
Is your instrument a Ukulele? YES
I win! Play again? NO
You should implement this guessing tree with your own question ideas.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started