Answered You can hire a professional tutor to get the answer.

QUESTION

Haskell must be used for guessNum. guessNum is required to guess a number between 1-99, every time the program make a wrong guess, the system will...

Haskell must be used for guessNum. guessNum is required to guess a number between 1-99, every time the program make a wrong guess, the system will show a feedback as either "too big" or "too small". guessNum must use the feedback to automatically generate the next reasonable guess, until the correct number is guessed.

For example, if the target number is 57 and your initial guess is 30, the output will look something like:

Your guess: 30

Feedback: too small

Your guess: 70

Feedback: too big

Your guess: 50

Feedback: too small

Your guess: 57

Feedback: Congratulations! You got the number 57

Show more
LEARN MORE EFFECTIVELY AND GET BETTER GRADES!
Ask a Question