Important Information

If you are not sure where to get started then try following these steps. Do no proceed to the “next” step until you have finished the one before it. If you get stuck then get help ... but make sure that you are the problem-solver behind each statement!
  1. Create and test a method that has the user enter a guess in the range 1 to 100. The method should return the value entered by the user.
  2. Create and test a method that has the user enter a “y” or an “n” and validates the input. The method should return the value entered by the user.
  3. The program that houses these two programs can be temporarily “set aside” as you continue these steps.
  4. Make a copy of your most recent working guessing game program.
  5. Fix any indentation/documentation shortcomings in the program.
  6. Move the code that actually plays the game into a new method. Be sure to move necessary variable declarations with it. Then call that method from main. Compile and test!
  7. Take some time to look at each variable you've declared. Remove any unncessary variables.
  8. Copy and paste the methods you wrote in the first steps into this program. Compile to make sure that the methods are in the correct location. (You won't even be using them at this point.)
  9. Modify the program so that it calls each of the methods when appropriate. Compile and test.
  10. Make sure all indentation and documentation is up to spec. Compile and test.