Write a program with explanation comments with a method


Please someone else anwswer this it has been answered twice by the same person and is incorrect IN C++ (microsoft visual studios 2013)

Write a program (with explanation //comments) with a method that plays the guess a number game. The program should allow the user to pick a number between 1 and 1000 in his head.

The method should guess the user's number in a minimal amount of attempts. The method should ask the user "is the number greater than or less than the number " and the program gives a particular number.

The user in some way just inputs (higher or lower) or (greater than or less than). There also has to be a way for the user to say the number has just been guessed. Of course, the user cannot answer incorrectly or change the number midstream. Note - if written efficiently, the method should be able to guess any number in 10 or less attempts.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Write a program with explanation comments with a method
Reference No:- TGS02893586

Expected delivery within 24 Hours