ung.view.usg.edu/d2l/1e/content/1953147/viewContent/34216968/View Instructions Use the eclipse program for this assignment. Upload your completed program to the assignment folder on D2L. Write a program that plays the Hi-Lo guessing game with numbers. The program should pick a random number between 1 and 100 (inclusive), then repeatedly prompt the user to guess the number. On each guess, report to the user that he or she is correct or that the guess is high or low. Continue accepting guesses until the user guesses correctly or chooses to quit. Use a sentinel value (ie. Enter 0 to quit.) to determine whether the user wants to quit. Count the number of guesses and report that value when the user guesses correctly. Note: I will also be checking for comments and style. Program modules should be indented within programming blocks. At a minimum, you should have a comment block at the top with name of program, brief description of the program and author. GuessANumber.java Diane Stephens This program generates a random number between 1 and 100 then. Name the class GuessANumber. (Note: the file must be named GuessANumber.java.)
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here