This Java program entails a basic game wherein the user is tasked with guessing a random number between 1 and 100 within 5 attempts. After each guess, the program provides hints, indicating whether the guessed number is greater or lesser. Should the user fail to guess the number within 5 attempts, the program discloses the number
HOW TO PLAY
1.OPEN THE CODE IN THE TERMINAL AND HIT RUN
2.THE SCREEN WILL PROMPT
number is chosen by the system (between 1 and 100) and total guesses are 5. Good luck!
3.START GUESSING THE NUMBER
4.Continue guessing until you either guess the number correctly or have used up all 5 trials
5.If you guess the number correct, the program will print THE BELOW MESSAGE
Congratulations! You have guessed the correct number.
6.If you are unable to guess the number, the program will reveal the number.