17. Write a program that generates a random number andasks the user to guess what the
number is. If the user’s guess is higher than the randomnumber, the program should display
“Too high, try again.†If the user’s guess is lower thanthe random number, the program
should display “Too low, try again.†The program shoulduse a loop that repeats until the
user correctly guesses the random number.
18. Enhance the program that you wrote for ProgrammingChallenge 17 so it keeps a count
of the number of guesses that the user makes. When theuser correctly guesses the random
number, the program should display the number ofguesses.
In Java Programming Please..
Can you please give me unique answer free from plagiarism?
I want varied opinions...