Write a program that makes the user guess a particular float. Now, recall that you should not compare floats to determine if they are exactly equal. In this program, the user wins if their guess is accurate to within 2 decimal places. (Note: The user should be able to enter a number with more than 2 decimal places and the program should check if that value rounded to 2 decimal places matches the number to guess to 2 decimal places.) Because of this, you will have to use round in your comparison of their guess to your number. If the user’s guess was too high, you should print to the console Too high!. Similarly, if the guess was too low, you should print to the console Too low!. Finally, if the user guesses the correct number, you should print Correct! to the console. Ensuring you print these specific texts is important for the exercise grader.
Too high!
Too low!
Correct!