Hey, I'm brand new to Java and I just got an assignment in which I have to create a number guessing game. When you guess wrong, it is supposed to tell you the number is lower or higher depending on how you guess. when you get it right, it is supposed to tell you that you are correct and give you the amount of guesses you have taken. I was able to get up to here done. And hereafter is where I get really confused as to how to go about writing it.
After this, I am supposed to prompt the player by asking if they would like to play again (allowing the user to type a "yes" or "no" regardless of case), and they can keep playing. When they finally answer "no", my program is supposed to say how many games they played and the players average amount of guesses per game.
I have been working and working on this problem for nearly 4 hours now, getting it wrong every time. I know I'm going to have to have a loop inside of a loop, but as of right now I am completely lost and am looking for a push in the right direction. Any help would be great.