Question: i need code in java please. Task 2: Write a program that generates a random integer between 1 and 0 (and display the integer), and

 i need code in java please. Task 2: Write a program
i need code in java please.

Task 2: Write a program that generates a random integer between 1 and 0 (and display the integer), and then asks the user to guess 1 or 0 (input 1 or 0). The game repeats 5 times. Compare the user input with the generated random number each time. Every time the user guesses it right, display "bingo

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!