Answered step by step
Verified Expert Solution
Question
1 Approved Answer
use java Guessing game: Create a java class called Guessing Game. Your program should pick a random integer between 1 and 100. Then, it should
use java
Guessing game: Create a java class called Guessing Game. Your program should pick a random integer between 1 and 100. Then, it should ask the user to guess the number and should give feedback whether the number is greater than or less than the original number. You should create a loop, either ask the user for a number of times or until the user guessed the number correctly. The loop should end when the user guesses the number. Challenge 1: Give points to the users based on how fast they guess the number and negative points if it takes more than a certain amount of guesses Challenge 2: Ask the users whether they want to play the game again or you can allow them to play repeatedly. Users should be able to exit the game whenever they wantStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started