Question: (loop) Write a program that will generate a random number between 1 and 10 and allow the user to guess the correct number. For every
(loop) Write a program that will generate a random number between 1 and 10 and allow the user to guess the correct number. For every incorrect guess, the computer will either say " high" or " low", and then ask for another input. The user should be allowed to keep guessing until they guess the correct number. They will start with 10 points and will have 2 points deducted for each guess. You should continue to deduct 2 points per guess even when the points become negative.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
