Answered step by step
Verified Expert Solution
Link Copied!

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 1000 by 1000 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 0 and 1000
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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Systems On GPUs In Databases

Authors: Johns Paul ,Shengliang Lu ,Bingsheng He

1st Edition

1680838482, 978-1680838480

More Books

Students also viewed these Databases questions

Question

What is the flip side of an investment in equity securities?

Answered: 1 week ago

Question

3 x - y > - 5 5 x - y 9

Answered: 1 week ago

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago