Question: Hello Please, don't answer with your handwriting, Thank you.. This question is related to java language Write a full Java program that: 1. Generate an
Hello
Please, don't answer with your handwriting, Thank you..
This question is related to java language


Write a full Java program that: 1. Generate an integer random number between 0 and 6. 2. Then make a loop that keeps asking the user to guess the generated random number. If the user input is not equal to the generated random number, then print, "Try again" and allow the user to input another guess until the user guess correctly 3. If the user input is equal to the generated random number, then prints, "Good guess". And print how many times did the user guess until he/she guessed correctly Show a screenshot of the output (if there is no screenshot of the output, the student shall get a zero mark for this question). Program typical run: Scenario 1 Problems lavadoc Declaration Console cterminated> week6while (lava Application CProgram Filesavare-1 A random number was generated from e to 6 Please enter your guess: good guess Number of guesses:1 Scenario 2: Problems JavadocDeclarationConsole cterminated> weekbwhile LJava Applicationl CAProgram F A random number was generated from e to 6 Please enter your guess: 6 good guess Number of guesses:1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
