Question: Using java, help me write program following the instructions in the picture, such as if/if else and switch and boolean. And for the guesses that
Overview In this assignment you'll be creating a single class called GuessingGame. Its main method will implement a version of the classic road trip game Animal, Mineral, Vegetable (aka, 20 questions). Your job is to ask the user to think of something and then use a series of questions to make an informed guess about what they are thinking of Goals Practice writing Boolean expressions and conditions using a variety of datatypes . Practice selection statements by writing multiple forms of if statements . Reinforce your ability to read and interpret data from the user Explore basic concepts a basic concept of machine learning (i.e., decision trees) Overview In this assignment you'll be creating a single class called GuessingGame. Its main method will implement a version of the classic road trip game Animal, Mineral, Vegetable (aka, 20 questions). Your job is to ask the user to think of something and then use a series of questions to make an informed guess about what they are thinking of. In the attached diagram you will see a decision tree. As you can see it narrows the field with each step until it comes to a conclusion at the end. Decision trees are one of the basic building blocks of machine learning algorithms used in modern computer systems. In this assignment, the decision tree is specified upfront, but in machine learning the objective is for the computer to construct such a tree by itself based on the data it has observed so far. It does this either with or without the aid of a human (i.e., supervised or unsupervised learning) SPECIAL CAVEAT: This program will get somewhat long and the nested if statements will make it challenging to keep track of what is going on as you write the code. Use proper indentation and add good comments about the purpose of each block to help you keep you place Overview In this assignment you'll be creating a single class called GuessingGame. Its main method will implement a version of the classic road trip game Animal, Mineral, Vegetable (aka, 20 questions). Your job is to ask the user to think of something and then use a series of questions to make an informed guess about what they are thinking of Goals Practice writing Boolean expressions and conditions using a variety of datatypes . Practice selection statements by writing multiple forms of if statements . Reinforce your ability to read and interpret data from the user Explore basic concepts a basic concept of machine learning (i.e., decision trees) Overview In this assignment you'll be creating a single class called GuessingGame. Its main method will implement a version of the classic road trip game Animal, Mineral, Vegetable (aka, 20 questions). Your job is to ask the user to think of something and then use a series of questions to make an informed guess about what they are thinking of. In the attached diagram you will see a decision tree. As you can see it narrows the field with each step until it comes to a conclusion at the end. Decision trees are one of the basic building blocks of machine learning algorithms used in modern computer systems. In this assignment, the decision tree is specified upfront, but in machine learning the objective is for the computer to construct such a tree by itself based on the data it has observed so far. It does this either with or without the aid of a human (i.e., supervised or unsupervised learning) SPECIAL CAVEAT: This program will get somewhat long and the nested if statements will make it challenging to keep track of what is going on as you write the code. Use proper indentation and add good comments about the purpose of each block to help you keep you place
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
