Page 1 of 1

Write a code in Java in ANDROID STUDIO. Generate a random number and ask the user to guess it, continue asking until yo

Posted: Sat Nov 27, 2021 2:43 pm
by answerhappygod
Write a code in Java in ANDROID STUDIO.
Generate a random number and ask the user to guess
it,
continue asking until you receive the number.
After 5 trials, show a message “Game Over”
Here is how it will work:
 Show a welcome message
 Ask the user’s name and say hello to the user.
 Ask if the game should be started
 Generate a random number after receiving a positive answer.
 Show a congratulations message if the number is correct
and
quit the game.
 Ask again for input if the number is not correct
 If the user fails 5 times, display a game over message.
Also attach screnshots of clases and activites.