Homework : Create Guessing Game

Create the guessing game program outlined in lesson 13. This is challenging. I suggest that you try to code it without looking at the solution.   When you get stuck, look at the completed program to solve that problem and then go back to coding. The idea is to write as much of the program on your own as possible. Use the completed program to help you find what is needed, but don't copy code from that program and paste it in yours. Type each line in your program.

The game asks the user to guess a number between 1 and 100. ( You could change this to any range - say 1 and 1000). The program will tell users if their guess is too high or too low.   To make the game easier (especially if they are guessing a number between 1 and 1000), you could modify the program to tell them when they are "way to high" or "way to low".    For example, if their guess was more than 30 greater than the correct answer the program could display ("Your number is WAY too high").

Also, you could put the program in a loop and ask the user if they want to play again each time they complete a game.