Create a hot and cold game in Matlab to find a point in an (X,Y) 2D...

70.2K

Verified Solution

Question

Advance Math

Create a hot and cold game in Matlab to find a point in an (X,Y)2D coordinate plane. The user answers two inputs: x=Input('x')y=Input('y'). THE INPUTS WILL ONLY BE INTEGERS FROM 0 TO100. This means no negative numbers. You write the programso the computer plays the game. The computer must play the game(comparing distances only) and give the same point as the userinputs. To keep it simple the code will check distances untildistance = 0 (right on the point). certain section can beeliminated by comparing distances. You will use mostly loops andif-then statements. ONLY PROMPT THE USER TO INPUT THE \"SECRET\" XAND Y LOCATION once. THE COMPUTER WILL FIND THE POINT. DO NOT KEEPPROMPTING THE USER TO KEEP GUESSING.

Answer & Explanation Solved by verified expert
3.7 Ratings (519 Votes)
Matlab code for hot and cold gameclear allclose allpromt for    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students