Answered step by step
Verified Expert Solution
Question
1 Approved Answer
create a MATLAB program that plays the hot and cold game with the user. The goal of the program is to guess the two integer
create a MATLAB program that plays the hot and cold game with the user. The goal of the program is to guess the two integer values on a by grid selected by the user. However the target value cannot be written into the program, it has to be guessed using hotter, colder, or correct statements asked by the computer. Other information: Program must have an input statement for location in x and an input statement for the location in y
Inputs will be integers between and
Program must pick two points, and using only the relative distances which is hotter choose next steps.
Program is complete when integer position is found.
Program must count the number of steps how many points are tested
I will test the program against three locations.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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